|
||||||||||
| 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.ParamGroupsEditor.ParamGroupsTable
public class ParamGroupsEditor.ParamGroupsTable
A JTable that holds a list of DataGroup 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 | |
|---|---|
ParamGroupsEditor.ParamGroupsTable(List infos,
boolean editable)
Create the table |
|
| Method Summary | |
|---|---|
void |
add(DataGroup i)
Add the DataGroup into the table |
void |
addBeginning(DataGroup i)
Add the DataGroup into the table |
void |
addNewRow()
Add a new row |
boolean |
editRow(DataGroup dataGroup)
Edit the param info |
boolean |
editRow(DataGroup dataGroup,
boolean removeOnCancel)
Edit row |
protected void |
errorMsg(String msg)
Helper to show an error message |
DataGroup |
findByName(String name)
Find the DataGroup from the name |
DataGroup |
getDataGroup(int row)
Return the DataGroup |
List |
getDataGroupList()
Return the list of DataGroup-s held by this table |
List |
getSelectedDataGroupList()
Get the list of selected param infos |
String |
getToolTipText(MouseEvent event)
Tool tip for the table |
protected void |
removeRow(int row)
Remove the given row |
void |
selectDataGroup(DataGroup info)
Select the param info |
void |
tableChanged()
Table changed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ParamGroupsEditor.ParamGroupsTable(List infos,
boolean editable)
infos - List of DataGroupeditable - Are the DataGroups editable| Method Detail |
|---|
public void selectDataGroup(DataGroup info)
info - infopublic List getDataGroupList()
DataGroup-s held by this table
public List getSelectedDataGroupList()
public DataGroup getDataGroup(int row)
DataGroup
row -
public boolean editRow(DataGroup dataGroup)
dataGroup - info to edit
public boolean editRow(DataGroup dataGroup,
boolean removeOnCancel)
dataGroup - param inforemoveOnCancel - Should remove param info if user presses cancel_
protected void errorMsg(String msg)
msg - The messagepublic String getToolTipText(MouseEvent event)
getToolTipText in class JTableevent - The event
public DataGroup findByName(String name)
name - name
public void add(DataGroup i)
i - public void addBeginning(DataGroup i)
i - public void addNewRow()
protected void removeRow(int row)
row - The given rowpublic void tableChanged()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||