|
Arch4J 1.1 | |||||||||
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.arch4j.ui.tree.TreeBrowser
Nested Class Summary | |
protected class |
TreeBrowser.TBTreeWillExpandListener
declare inner class to catch TreeWillExpand events. |
Field Summary | |
protected JPanel |
cardPanel
|
protected CommandManager |
commandMgr
|
protected Vector |
copyBuffer
|
protected JPanel |
currentEditor
|
protected boolean |
deleting
|
protected TreeBrowserSelectionListener |
listener
|
protected NullPanel |
nullEditor
|
protected Performer |
performer
|
protected ResourceManager |
resourceMgr
|
protected JSplitPane |
splitPane
|
protected JTree |
tree
|
protected DefaultMutableTreeNode |
treeStructure
|
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 | |
TreeBrowser()
TreeBrowser constructor comment. |
|
TreeBrowser(AbstractSplashScreen aSplashScreen)
TreeBrowser constructor comment. |
Method Summary | |
void |
addListener()
|
protected void |
addNullEditor()
|
void |
copy()
This method was created in VisualAge. |
void |
createCardPanel()
This method was created by a SmartGuide. |
SortingParentNode |
createSortingParentNode(Object userObject,
String name,
String iconAccessor,
String action)
|
SortingParentNode |
createSortingParentNode(String name,
String iconAccessor,
String action)
|
void |
createSplitPane()
This method was created by a SmartGuide. |
void |
createTree()
|
BrowserTreeNode |
createTreeNode(Object userObject,
String name,
String iconAccessor,
String action)
|
BrowserTreeNode |
createTreeNode(String name,
String iconAccessor,
String action)
|
void |
createTreeStructure()
|
void |
cut()
This method was created in VisualAge. |
void |
delete()
This method was created in VisualAge. |
void |
deleteNode(BrowserTreeNode nodeToRemove)
|
protected boolean |
displayConfirm(String aMessage,
String aTitle)
Display an Confirmation dialog to the user |
void |
displayError(String anError,
String aTitle)
Display an error to the user. |
void |
displayInformation(String aMessage,
String aTitle)
Display information to the user. |
void |
displayWarning(String aWarning,
String aTitle)
Display a warning to the user. |
void |
exitApplication()
Exit normally from the application. |
CommandManager |
getCommandManager()
This method was created by a SmartGuide. |
double |
getDividerLocation()
Gets the relative location of the divider bar. |
ImageIcon |
getIcon()
This method was created in VisualAge. |
ImageIcon |
getIconFor(String iconAccessor)
Get the icon for the name given. |
protected JMenu |
getMenu(String menu)
Gets the menu with the given name. |
JMenuBar |
getMenubar()
Gets the menubar for the application. |
protected String |
getNameForBase(String baseName,
BrowserTreeNode parent)
This method was created in VisualAge. |
BrowserTreeNode |
getNode(String name)
Look for a node with the specified name. |
JPanel |
getNullEditor()
|
JPopupMenu |
getPopupMenu(String name)
|
ResourceManager |
getResourceManager()
This method was created by a SmartGuide. |
BrowserTreeNode |
getSelectedNode()
This method was created by a SmartGuide. |
Vector |
getSelectedNodes()
This method was created by a SmartGuide. |
Object |
getSelectedObject()
This method was created by a SmartGuide. |
JSplitPane |
getSplitPane()
This method was created by a SmartGuide. |
String |
getTitle()
This method was created in VisualAge. |
JToolBar |
getToolbar()
Gets the toolbar for the application. |
JTree |
getTree()
|
DefaultTreeModel |
getTreeModel()
This method was created by a SmartGuide. |
BrowserTreeNode |
getTreeNodeAt(int x,
int y)
|
protected DefaultTreeCellRenderer |
getTreeNodeRenderer()
Gets the renderer for the tree nodes. |
DefaultMutableTreeNode |
getTreeStructure()
|
void |
initialize()
|
void |
initializeButtonState()
Initialize the buttons to be enable/disable buttons when the interface comes up. |
protected void |
initializeCommandManager()
|
protected void |
initializeResourceManager()
|
protected void |
insertNode(BrowserTreeNode nodeToInsert,
BrowserTreeNode parentNode)
|
protected void |
insertNode(BrowserTreeNode nodeToInsert,
SortingParentNode parentNode)
|
protected void |
insertNodeAtSelection(BrowserTreeNode nodeToInsert,
boolean selectInsertedNode)
|
void |
nextNode()
Position the selection to the next node in the tree. |
protected void |
nodeIsCollapsing(BrowserTreeNode aNode)
|
protected void |
nodeIsExpanding(BrowserTreeNode aNode)
|
void |
paste()
This method was created in VisualAge. |
void |
previousNode()
Position the selection to the previous node in the tree. |
void |
removeListener()
|
void |
requestFocus()
Overriden to set the focus on the tree. |
void |
saveChangesOnCurrentPanel()
Invoked when a node has changed and the panel has changes to be completed. |
void |
selectionChanging(BrowserTreeNode node)
|
void |
selectNode(BrowserTreeNode aNode)
Select the node in the tree panel. |
void |
setDefaultCursor()
Set the wait cursor. |
void |
setDividerLocation(double aRelativePosition)
Set the split pane divider location. |
void |
setResourceManager(ResourceManager aResourceManager)
|
void |
setWaitCursor()
Set the wait cursor. |
void |
setWindowTitle()
Find the top level frame and set its title.. |
protected void |
showNullEditor()
|
protected void |
showPanel(String aName)
Display the card panel with the given name. |
protected void |
showStartupStatus(String aStatus)
Display the status string in the splash screen. |
void |
updateTreeStructure()
This method was created in VisualAge. |
protected void |
useTreeExpansionListener(boolean abUseIt)
|
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 |
protected CommandManager commandMgr
protected ResourceManager resourceMgr
protected Performer performer
protected JTree tree
protected DefaultMutableTreeNode treeStructure
protected TreeBrowserSelectionListener listener
protected JPanel cardPanel
protected JSplitPane splitPane
protected NullPanel nullEditor
protected JPanel currentEditor
protected boolean deleting
protected Vector copyBuffer
Constructor Detail |
public TreeBrowser()
public TreeBrowser(AbstractSplashScreen aSplashScreen)
Method Detail |
public void addListener()
protected void addNullEditor()
public void copy()
public void createCardPanel()
public SortingParentNode createSortingParentNode(Object userObject, String name, String iconAccessor, String action)
public SortingParentNode createSortingParentNode(String name, String iconAccessor, String action)
public void createSplitPane()
public void createTree()
protected DefaultTreeCellRenderer getTreeNodeRenderer()
public BrowserTreeNode createTreeNode(Object userObject, String name, String iconAccessor, String action)
public BrowserTreeNode createTreeNode(String name, String iconAccessor, String action)
public void createTreeStructure()
public void cut()
public void delete()
public void deleteNode(BrowserTreeNode nodeToRemove)
public void displayError(String anError, String aTitle)
anError
- The error message.aTitle
- The title for the dialog.protected boolean displayConfirm(String aMessage, String aTitle)
aMessage
- The confirmation message.aTitle
- The title for the dialog.
public void displayWarning(String aWarning, String aTitle)
aWarning
- The warning message.aTitle
- The title for the dialog.public void displayInformation(String aMessage, String aTitle)
aMessage
- The informational message.aTitle
- The title for the dialog.public void exitApplication()
public CommandManager getCommandManager()
getCommandManager
in interface JApplicationPanel
public double getDividerLocation()
public ImageIcon getIcon()
getIcon
in interface JApplicationPanel
public ImageIcon getIconFor(String iconAccessor)
iconAccessor
- The name of the icon to get.protected JMenu getMenu(String menu)
public JMenuBar getMenubar()
getMenubar
in interface JApplicationPanel
protected String getNameForBase(String baseName, BrowserTreeNode parent)
public JPanel getNullEditor()
public JPopupMenu getPopupMenu(String name)
public ResourceManager getResourceManager()
getResourceManager
in interface JApplicationPanel
public BrowserTreeNode getSelectedNode()
public Vector getSelectedNodes()
public Object getSelectedObject()
public JSplitPane getSplitPane()
public String getTitle()
getTitle
in interface JApplicationPanel
public JToolBar getToolbar()
getToolbar
in interface JApplicationPanel
public JTree getTree()
public DefaultTreeModel getTreeModel()
public BrowserTreeNode getTreeNodeAt(int x, int y)
public DefaultMutableTreeNode getTreeStructure()
public void initialize()
public void initializeButtonState()
initializeButtonState
in interface JApplicationPanel
protected void initializeCommandManager()
protected void initializeResourceManager()
protected void insertNode(BrowserTreeNode nodeToInsert, BrowserTreeNode parentNode)
protected void insertNode(BrowserTreeNode nodeToInsert, SortingParentNode parentNode)
protected void insertNodeAtSelection(BrowserTreeNode nodeToInsert, boolean selectInsertedNode)
public BrowserTreeNode getNode(String name)
name
- the name of the node to search for
public void previousNode()
public void nextNode()
protected void nodeIsCollapsing(BrowserTreeNode aNode)
protected void nodeIsExpanding(BrowserTreeNode aNode)
public void paste()
public void removeListener()
public void requestFocus()
requestFocus
in class JComponent
FocusEvent
,
Component.addFocusListener(java.awt.event.FocusListener)
,
Component.processFocusEvent(java.awt.event.FocusEvent)
,
Component.isFocusTraversable()
public void saveChangesOnCurrentPanel()
public void selectionChanging(BrowserTreeNode node)
public void selectNode(BrowserTreeNode aNode)
aNode
- The node to select.public void setDefaultCursor()
public void setDividerLocation(double aRelativePosition)
aRelativePosition
- The position for the split pane.public void setResourceManager(ResourceManager aResourceManager)
public void setWaitCursor()
public void setWindowTitle()
protected void showNullEditor()
protected void showPanel(String aName)
aName
- The name of the panel to show.protected void showStartupStatus(String aStatus)
public void updateTreeStructure()
protected void useTreeExpansionListener(boolean abUseIt)
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |