public class LaunchPanel
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
dataPanel |
protected javax.swing.JEditorPane |
descriptionPane |
protected javax.swing.JScrollPane |
descriptionScroller |
protected javax.swing.JTabbedPane |
htmlTabs |
protected Launcher |
launcher |
protected boolean |
showAllNodes |
protected javax.swing.JSplitPane |
splitPane |
protected static java.lang.String |
TEXT_TYPE |
protected javax.swing.JTree |
tree |
protected javax.swing.tree.DefaultTreeModel |
treeModel |
protected java.util.Map |
visibleNodeMap |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
LaunchPanel(LaunchNode rootNode,
Launcher launcher)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
createGUI()
Creates the GUI.
|
protected void |
createTree(LaunchNode rootNode)
Creates the tree.
|
protected void |
displayHTML(LaunchNode node)
Displays the html for the specified node.
|
protected LaunchNode |
getClone(LaunchNode node)
Returns the node with the same file name as the specified node.
|
protected java.util.Collection |
getExpandedNodes()
Returns a collection of nodes that are currently expanded.
|
LaunchNode |
getRootNode()
Gets the root node.
|
int |
getSelectedHTMLPage()
Gets the selected html page.
|
LaunchNode |
getSelectedNode()
Gets the selected node.
|
protected void |
setExpandedNodes(java.util.Collection expanded)
Expands the specified nodes.
|
void |
setSelectedNode(LaunchNode node)
Sets the selected node.
|
void |
setSelectedNode(LaunchNode node,
int pageNumber)
Sets the selected node.
|
void |
setSelectedNode(LaunchNode node,
int pageNumber,
java.net.URL url)
Sets the selected node and displays a URL.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected static final java.lang.String TEXT_TYPE
protected javax.swing.JTree tree
protected javax.swing.tree.DefaultTreeModel treeModel
protected javax.swing.JSplitPane splitPane
protected javax.swing.JPanel dataPanel
protected javax.swing.JTabbedPane htmlTabs
protected javax.swing.JEditorPane descriptionPane
protected javax.swing.JScrollPane descriptionScroller
protected boolean showAllNodes
protected java.util.Map visibleNodeMap
protected Launcher launcher
public LaunchPanel(LaunchNode rootNode, Launcher launcher)
rootNode
- the root nodelauncher
- the Launcher that is creating this panelpublic void setSelectedNode(LaunchNode node)
node
- the node to selectpublic void setSelectedNode(LaunchNode node, int pageNumber)
node
- the node to selectpageNumber
- the html page to displaypublic void setSelectedNode(LaunchNode node, int pageNumber, java.net.URL url)
node
- the node to selectpageNumber
- the html page to displayurl
- the URL to display in the pagepublic LaunchNode getSelectedNode()
public int getSelectedHTMLPage()
public LaunchNode getRootNode()
protected LaunchNode getClone(LaunchNode node)
node
- the node to matchprotected void displayHTML(LaunchNode node)
node
- the LaunchNodeprotected void createGUI()
protected void createTree(LaunchNode rootNode)
rootNode
- the root nodeprotected java.util.Collection getExpandedNodes()
protected void setExpandedNodes(java.util.Collection expanded)
expanded
- the nodes to expand