Public Member Functions | |
MultiListExplorer () | |
MultiListExplorer (SelectionListener selectionListener, int listCount) | |
MultiListExplorer (SelectionListener selectionListener, int width, int height) | |
MultiListExplorer (SelectionListener selectionListener, int listCount, int width, int height, boolean twoRows) | |
void | addNotify () |
void | removeNotify () |
void | setRootNode (GPNode node) |
ComponentCreator | getTopComponentCreator () |
void | setTopComponentCreator (ComponentCreator componentCreator) |
ComponentCreator | getBottomComponentCreator () |
void | setBottomComponentCreator (ComponentCreator componentCreator) |
void | setListCount (int listCount) |
int | getListCount () |
void | setAutomaticSelection (boolean automaticSelection) |
boolean | getAutomaticSelection () |
Static Public Attributes | |
final int | DEFAULT_WIDTH = 600 |
final int | DEFAULT_HEIGHT = 400 |
final int | DEFAULT_LIST_COUNT = 4 |
Protected Member Functions | |
ExplorerManager | getExplorerManager (int listIndex) |
Static Protected Member Functions | |
void | selectNthChildren (ExplorerManager explorerManager, int n) |
Private Member Functions | |
javax.swing.JComponent | createExplorerPanelRows (int width, int height, int listCount) |
javax.swing.JComponent | createExplorerPanelRow (int width, int height, int listCount, int preceedingExplorerCount, ExplorerPanel prevRightPanel) |
ExplorerPanel | createExplorerPanel (int listIndex, ExplorerPanel prevRightPanel) |
Private Attributes | |
ExplorerPanel[] | _explorerPanels |
int | _listCount = DEFAULT_LIST_COUNT |
boolean | _twoRows |
boolean | _automaticSelection = true |
ComponentCreator | _bottomComponentCreator |
ComponentCreator | _topComponentCreator |
SelectionListener | _selectionListener |
The number of lists is parameterizable.
It is possible to register a java.beans.PropertyChangeListener
to be notified of the selection in the different list. The method getExplorerManager(int)
allow to register such a listener on one particular list.
It is possible to customize the top and bottom component of each list by setting a ComponentCreator
for top or bottom before adding the explorer to the gui.
|
|
|
|
|
|
|
|
|
|
|
Creates one ExplorerPanel representing one list.
|
|
Creates all ExplorerPanels (one per list) making the MultiListExplorer. This method is recursive and creates list from right to left
|
|
Creates all ExplorerPanels (one per list) making the MultiListExplorer. This method is recursive and creates list from right to left
|
|
Returns if the selection in one list triggers the selection in the subsequent lists.
|
|
Returns the bottomComponentCreator that is used to create the top component of each list in the explorer or null if none is set.
|
|
Returns the explorer manager of the list of given index
|
|
Returns the number of lists in the explorer.
|
|
Returns the topComponentCreator that is used to create the top component of each list in the explorer or null if none is set.
|
|
|
|
|
|
Sets if the selection in one list triggers the selection in the subsequent lists. This property is true by default.
|
|
Sets the bottomComponentCreator that is used to create the top component of each list in the explorer. Null can be used to remove an existing creator. The bottomComponentCreator cannot be changed once the explorer has been included in a gui. It can only be changed after instantiation before adding the Explorer into a container.
|
|
Sets the number of lists in the explorer. Cannot be inferior to 2. The number cannot be changed once the explorer has been included in a gui. The number can only be changed after instantiation before adding the Explorer into a container.
|
|
set the root node of the hiearachy to be explored |
|
Sets the topComponentCreator that is used to create the top component of each list in the explorer. Null can be used to remove an existing creator. The topComponentCreator cannot be changed once the explorer has been included in a gui. It can only be changed after instantiation before adding the Explorer into a container.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|