All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xu.xu_ToolBarButtonElement

java.lang.Object
   |
   +----com.sun.java.swing.tree.DefaultMutableTreeNode
           |
           +----xg.xg_Node
                   |
                   +----xg.xg_Element
                           |
                           +----xu.xu_ToolBarButtonElement

public class xu_ToolBarButtonElement
extends xg_Element
An XML element to represent a Swing toolbar button.


Variable Index

 o IdAttName
The name of the attribute which holds the ID of this toolbar button.
 o RegisteredName
The element type name normally used in XML for this sort of element.
 o TheButton
The toolbar button created by this element.
 o ToolTipAttName
The name of the attribute which holds the tool tip for this toolbar button.

Constructor Index

 o xu_ToolBarButtonElement()
Construct a toolbar button element with no type and no name.
 o xu_ToolBarButtonElement(String)
Construct a toolbar button with a name.

Method Index

 o getButton()
Get the toolbar button created by this element.
 o getSummaryString()
Get a summary descriptive string suitable for display in the tree view or elsewhere.
 o toString()
Return a string representation of the element (intended for use as debug output).
 o verify()

Verify that this node is correct (ie.

Variables

 o TheButton
 protected JButton TheButton
The toolbar button created by this element.

 o RegisteredName
 public static final String RegisteredName
The element type name normally used in XML for this sort of element.

 o IdAttName
 public static final String IdAttName
The name of the attribute which holds the ID of this toolbar button.

 o ToolTipAttName
 public static final String ToolTipAttName
The name of the attribute which holds the tool tip for this toolbar button.

Constructors

 o xu_ToolBarButtonElement
 public xu_ToolBarButtonElement()
Construct a toolbar button element with no type and no name.

 o xu_ToolBarButtonElement
 public xu_ToolBarButtonElement(String InputNodeName)
Construct a toolbar button with a name.

Parameters:
InputNodeName - The name of the element

Methods

 o verify
 public void verify() throws xg_VerificationException

Verify that this node is correct (ie. internally correct and/or consistent with other nodes - such as its parent). The node is OK iff it has a 'Name' attribute and it lives inside a "FrameConfig".

Throws: xg_VerificationException
Description of verification problem
Overrides:
verify in class xg_Node
 o getButton
 public JButton getButton()
Get the toolbar button created by this element.

Returns:
The toolbar button itself
 o getSummaryString
 public String getSummaryString()
Get a summary descriptive string suitable for display in the tree view or elsewhere.

Returns:
A description suitable for display in the tree view
Overrides:
getSummaryString in class xg_Node
 o toString
 public String toString()
Return a string representation of the element (intended for use as debug output).

Returns:
String representing the node's name.
Overrides:
toString in class xg_Element

All Packages  Class Hierarchy  This Package  Previous  Next  Index