|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JTable
ucar.unidata.idv.ui.ParamDefaultsEditor.ParamDefaultsTable
public class ParamDefaultsEditor.ParamDefaultsTable
A JTable that holds a list of ParamInfo objects and provides display and
editing capabilities
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTable |
|---|
JTable.AccessibleJTable, JTable.DropLocation, JTable.PrintMode |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParamDefaultsEditor.ParamDefaultsTable(List infos,
boolean editable)
Create the table |
|
| Method Summary | |
|---|---|
void |
add(ParamInfo i)
Add the ParamInfo into the table |
void |
addBeginning(ParamInfo i)
Add the ParamInfo into the table |
void |
addNewRow()
Add a new row |
boolean |
editRow(ParamInfo paramInfo)
Edit the param info |
boolean |
editRow(ParamInfo paramInfo,
boolean removeOnCancel)
Edit row |
protected void |
errorMsg(String msg)
Helper to show an error message |
ParamInfo |
findByName(String name)
Find the ParamInfo from the name |
protected ColorTable |
getColorTableFromName(String name)
Map the name of the color table to the ColorTable |
ParamInfo |
getInfo(int row)
Return the ParamInfo |
List |
getParamInfoList()
Return the list of ParamInfo-s held by this table |
List |
getSelectedParamInfoList()
Get the list of selected param infos |
String |
getToolTipText(MouseEvent event)
Tool tip for the table |
ArrayList |
makeCTMenuItems(int row)
Make the color table menu items |
protected void |
removeRow(int row)
Remove the given row |
void |
selectParamInfo(ParamInfo info)
Select the param info |
void |
tableChanged()
Table changed |
protected void |
viewColorTable(int row)
Show the colortable in the color table editor for the given row |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParamDefaultsEditor.ParamDefaultsTable(List infos,
boolean editable)
infos - List of ParamInfoeditable - Are the ParamInfos editable| Method Detail |
|---|
public void selectParamInfo(ParamInfo info)
info - infopublic List getParamInfoList()
ParamInfo-s held by this table
public List getSelectedParamInfoList()
public ParamInfo getInfo(int row)
ParamInfo
row -
public boolean editRow(ParamInfo paramInfo)
paramInfo - param info to edit
public boolean editRow(ParamInfo paramInfo,
boolean removeOnCancel)
paramInfo - param inforemoveOnCancel - Should remove param info if user presses cancel_
protected void viewColorTable(int row)
row - The given rowprotected void errorMsg(String msg)
msg - The messagepublic String getToolTipText(MouseEvent event)
getToolTipText in class JTableevent - The event
public ParamInfo findByName(String name)
name - name
public void add(ParamInfo i)
i - public void addBeginning(ParamInfo i)
i - public void addNewRow()
protected void removeRow(int row)
row - The given rowpublic ArrayList makeCTMenuItems(int row)
row - The given row
public void tableChanged()
protected ColorTable getColorTableFromName(String name)
ColorTable
name - Name of the color table
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||