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.


Variable Index

 o CurrentNode
The document currently being worked on.
 o EditTabbedPane
Tabbed pane for the display of the various aspects of a node (and any other which derived classed may add).

Constructor Index

 o xc_NodeCustomizer()
Default constructor.

Method Index

 o addInternalsTab()
Add 'Internals' tab to display mainly derivative information about the node (ie.
 o addSourceTab()
Add 'Source' tab to display the XML source of the node.
 o 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).
 o generateSource()
Generate the source of the current node, for display in the source tab.
 o getSelectedIndex()
Get the index of the currently-selected tab.
 o setNode(xg_Node)
Set the node to edit.
 o setSelectedIndex(int)
Set the index of the currently-selected tab.

Variables

 o CurrentNode
 protected xg_Node CurrentNode
The document currently being worked on.

 o EditTabbedPane
 protected JTabbedPane EditTabbedPane
Tabbed pane for the display of the various aspects of a node (and any other which derived classed may add).

Constructors

 o xc_NodeCustomizer
 public xc_NodeCustomizer()
Default constructor.

Methods

 o 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).

 o addInternalsTab
 public void addInternalsTab()
Add 'Internals' tab to display mainly derivative information about the node (ie. largely calculated values - not its prime content).

 o addSourceTab
 public void addSourceTab()
Add 'Source' tab to display the XML source of the node.

 o generateSource
 public void generateSource()
Generate the source of the current node, for display in the source tab.

 o setNode
 public void setNode(xg_Node InputNode)
Set the node to edit.

Parameters:
InputNode - The node to edit
 o setSelectedIndex
 public void setSelectedIndex(int InputTabIndex)
Set the index of the currently-selected tab.

Parameters:
The - index of the tab to select
 o 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