ix.iface.ui
Interface IXEditorPanel

All Known Implementing Classes:
AbstractEditorPanel

public interface IXEditorPanel

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

setLabel

public void setLabel(java.lang.String label)
Sets the panel's label

getName

public java.lang.String getName()
Gets the panel's name

getItemComponent

public javax.swing.JComponent getItemComponent()
Gets the panel's item component

getData

public java.lang.Object getData()
Gets the current data of the panel's item component.
Returns:
an array of objects that are the current data model of the list

setData

public void setData(java.lang.Object data)
Sets the current data of the item component.
Parameters:
data - an object that is to be put into the item component

removeData

public void removeData()
Removes all data from the item component

isListItem

public boolean isListItem()
Checks whether the item component can take lists (e.g. JList/JComboBox)

setRenderer

public boolean setRenderer(javax.swing.ListCellRenderer r)
Sets the renderer if the itemComponent is a JList or a JComboBox;
Returns:
true if the renderer was set, false if not.

setEnabled

public void setEnabled(boolean isEditable)
Makes the item editable or not (default is editable).