|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.Component | +--java.awt.Container | +--javax.swing.JComponent | +--javax.swing.JSplitPane | +--org.newsml.toolkit.explorer.ExplorerPanel
Split panel for viewing a NewsML package.
This class extends the Java Swing JSplitPane
class to
provide a view of a NewsML package: the left side of the panel
contains a tree view, and the right side contains a tabular summary
of the tree node currently selected.
The ExplorerFrame
class embeds an instance of this
class, and links the menu commands to public methods. Application
developers can embed this ExplorerPanel objects directly in other
applications or applets (Java2 required) if they wish.
ExplorerFrame
, Serialized FormInner classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
Fields inherited from class javax.swing.JSplitPane |
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, LEFT, ONE_TOUCH_EXPANDABLE_PROPERTY, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, TOP, VERTICAL_SPLIT |
Fields inherited from class javax.swing.JComponent |
TOOL_TIP_TEXT_KEY, 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 | |
ExplorerPanel(NewsML newsml)
Public constructor. |
Method Summary | |
NewsML |
getNewsML()
Get the NewsML object being displayed. |
void |
hideAll()
Collapse all of the nodes in the tree. |
void |
highlight(BaseNodePredicate predicate)
Highlight nodes that match a predicate. |
void |
setNewsML(NewsML newsml)
Set the NewsML object to display. |
void |
showAll()
Expand all of the nodes in the tree. |
void |
valueChanged(TreeSelectionEvent e)
Respond to user selections in the tree. |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, removeContainerListener, setLayout, validate |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExplorerPanel(NewsML newsml)
newsml
- The NewsML package to explorer.Method Detail |
public NewsML getNewsML()
public void setNewsML(NewsML newsml)
newsml
- A new NewsML package to explore.public void highlight(BaseNodePredicate predicate)
predicate
- A predicate that will be tested against
every main node in the tree.public void showAll()
hideAll()
public void hideAll()
showAll()
public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
e
- The event with the change information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |