All Packages Class Hierarchy This Package Previous Next Index
Class xc.xc_NodeCustomizer
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JPanel
|
+----xc.xc_NodeCustomizer
- public class xc_NodeCustomizer
- extends JPanel
xc_NodeCustomizer is a JPanel for editing an xg_Node.
-
CurrentNode
- The document currently being worked on.
-
EditTabbedPane
- Tabbed pane for the display of the various aspects of a node (and any
other which derived classed may add).
-
xc_NodeCustomizer()
- Default constructor.
-
addInternalsTab()
- Add 'Internals' tab to display mainly derivative information about the node
(ie.
-
addSourceTab()
- Add 'Source' tab to display the XML source of the node.
-
addTabs()
- Add all required tabs - which is expected to be overridden in derived
classes (which is why its contents are not merely called directly from the
constructor).
-
generateSource()
- Generate the source of the current node, for display in the source tab.
-
getSelectedIndex()
- Get the index of the currently-selected tab.
-
setNode(xg_Node)
- Set the node to edit.
-
setSelectedIndex(int)
- Set the index of the currently-selected tab.
CurrentNode
protected xg_Node CurrentNode
- The document currently being worked on.
EditTabbedPane
protected JTabbedPane EditTabbedPane
- Tabbed pane for the display of the various aspects of a node (and any
other which derived classed may add).
xc_NodeCustomizer
public xc_NodeCustomizer()
- Default constructor.
addTabs
public void addTabs()
- Add all required tabs - which is expected to be overridden in derived
classes (which is why its contents are not merely called directly from the
constructor).
addInternalsTab
public void addInternalsTab()
- Add 'Internals' tab to display mainly derivative information about the node
(ie. largely calculated values - not its prime content).
addSourceTab
public void addSourceTab()
- Add 'Source' tab to display the XML source of the node.
generateSource
public void generateSource()
- Generate the source of the current node, for display in the source tab.
setNode
public void setNode(xg_Node InputNode)
- Set the node to edit.
- Parameters:
- InputNode - The node to edit
setSelectedIndex
public void setSelectedIndex(int InputTabIndex)
- Set the index of the currently-selected tab.
- Parameters:
- The - index of the tab to select
getSelectedIndex
public int getSelectedIndex()
- Get the index of the currently-selected tab. The purpose of this is to
allow us to attempt to display the same tab for the next node. (It is
not ideal, because the index may mean something different for a different
type of node. The answer is to create a Vector of the tab names, get the
tab name instead of the index here, and set according to the tab name for
the next node.)
- Returns:
- The index of the currently-selected tab
All Packages Class Hierarchy This Package Previous Next Index