|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JPanel | +--org.moyoman.client.reference.admin.AbstractAdminPanel | +--org.moyoman.client.reference.admin.AbstractListPanel
Provides base functionality for administration list edit panels.
Nested Class Summary |
Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private JList |
_listUI
List widget. |
Fields inherited from class org.moyoman.client.reference.admin.AbstractAdminPanel |
|
Fields inherited from class javax.swing.JPanel |
|
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.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.moyoman.client.reference.util.IGUIConstants |
DEBUG, DIRTY_PROPERTY, GAP, MARGIN, TRANSPARENT_COLOR |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
AbstractListPanel(JDialog dialog)
Construct this dialog. |
Method Summary | |
void |
addListSelectionListener(ListSelectionListener listener)
Add the given listener. |
protected void |
checkComponents()
Check components for their enable state. |
protected JComponent |
createMainPanel()
Create the main panel. |
protected Action[] |
getButtonActions()
Return the desired button actions. |
protected List |
getListData()
Return the list data. |
protected JList |
getListUI()
Return the module list. |
protected Action |
getMoveDownAction()
Return the move down action. |
protected Action |
getMoveUpAction()
Return the move up action. |
protected void |
move(int delta)
Move the selected item in the delta direction in the list. |
void |
moveDownActionPerformed(ActionEvent event)
Callback for the move down action. |
void |
moveUpActionPerformed(ActionEvent event)
Callback for the move up action. |
protected abstract void |
orderData(List list)
Order the data. |
void |
removeListSelectionListener(ListSelectionListener listener)
Remove the given listener. |
protected abstract void |
updateData()
Update the contents of the data list. |
protected boolean |
usesMoveDownAction()
Return true if this panel uses the move down action. |
protected boolean |
usesMoveUpAction()
Return true if this panel uses the move up action. |
protected boolean |
usesScrollPane()
Return true if this panel uses a scroll pane around the main panel. |
Methods inherited from class org.moyoman.client.reference.admin.AbstractAdminPanel |
createButtonPanel, getActionManager, getDeleteAction, getNewAction, getParentDialog, usesDeleteAction, usesNewAction |
Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private JList _listUI
Constructor Detail |
public AbstractListPanel(JDialog dialog)
Method Detail |
public void addListSelectionListener(ListSelectionListener listener)
public void moveDownActionPerformed(ActionEvent event)
public void moveUpActionPerformed(ActionEvent event)
public void removeListSelectionListener(ListSelectionListener listener)
protected abstract void updateData()
protected Action[] getButtonActions()
getButtonActions
in class AbstractAdminPanel
protected List getListData()
protected JList getListUI()
protected Action getMoveDownAction()
protected Action getMoveUpAction()
protected void checkComponents()
checkComponents
in class AbstractAdminPanel
protected JComponent createMainPanel()
createMainPanel
in class AbstractAdminPanel
protected void move(int delta)
protected abstract void orderData(List list)
protected boolean usesMoveDownAction()
protected boolean usesMoveUpAction()
protected boolean usesScrollPane()
usesScrollPane
in class AbstractAdminPanel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |