|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A simple panel with a label (title), a component, and optional buttons. The given label will be at the top, the given component at the left and buttons with given labels on the right. Adds the given listener to the buttons and the list.
Method Summary | |
java.lang.Object |
getData()
Gets the current data of the panel's item component. |
javax.swing.JComponent |
getItemComponent()
Gets the panel's item component |
java.lang.String |
getName()
Gets the panel's name |
boolean |
isListItem()
Checks whether the item component can take lists (e.g. |
void |
removeData()
Removes all data from the item component |
void |
setData(java.lang.Object data)
Sets the current data of the item component. |
void |
setEnabled(boolean isEditable)
Makes the item editable or not (default is editable). |
void |
setLabel(java.lang.String label)
Sets the panel's label |
boolean |
setRenderer(javax.swing.ListCellRenderer r)
Sets the renderer if the itemComponent is a JList or a JComboBox; |
Method Detail |
public void setLabel(java.lang.String label)
public java.lang.String getName()
public javax.swing.JComponent getItemComponent()
public java.lang.Object getData()
public void setData(java.lang.Object data)
data
- an object that is to be put into the item componentpublic void removeData()
public boolean isListItem()
public boolean setRenderer(javax.swing.ListCellRenderer r)
public void setEnabled(boolean isEditable)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |