com.borland.primetime.viewer
Interface Hideable
- public interface Hideable
Viewers implement this interface to indicate that they may be hidden. A
node's ContentView
will always instantiate all interested
NodeViewer
s from every registered NodeViewerFactory
,
but if the viewer is Hideable
it may not be added to the
ContentView
's tabbed pane, which hides the viewer. The tabbed
pane is automatically populated with viewers when the ContentView
is first constructed, and should be manually updated whenever a node changes
state such that a viewer may be hidden or revealed.
- See Also:
AbstractNodeViewer
,
Browser.updateViewers(com.borland.primetime.node.Node)
Method Summary |
boolean |
canShowViewer()
Determines whether the viewer should appear in the ContentView 's
tabbed pane. |
canShowViewer
public boolean canShowViewer()
- Determines whether the viewer should appear in the
ContentView
's
tabbed pane. Typically, the viewer has access to its node, and the node will
maintain some sort of state that the viewer can check to determine whether
it can be shown.
- Returns:
- Whether to display the viewer