com.altair.hwm.toolkit.preferences
Class HWMPreferenceNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by com.altair.hwm.toolkit.preferences.HWMPreferenceNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode
Direct Known Subclasses:
HWMMenuBarPrefNode, HWMToolBarPrefNode

public abstract class HWMPreferenceNode
extends javax.swing.tree.DefaultMutableTreeNode

Title: HWMPreferenceNode

Description:

Company: Altair Engineering, Inc.

See Also:
Serialized Form

Field Summary
static java.lang.String VERSION_HWMPREFERENCENODE
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
EMPTY_ENUMERATION
 
Constructor Summary
HWMPreferenceNode()
          Constructor
HWMPreferenceNode(java.lang.Object objUserObject)
          Constructor
HWMPreferenceNode(java.lang.Object objUserObject, boolean bAllowsChildren)
          Constructor
 
Method Summary
 java.lang.String GetActionCommand()
          Return the action command
 java.lang.String GetComponentType()
          Return the component type
 java.lang.String GetName()
          Return the name
 java.lang.String GetTooltip()
          Return the tooltip
 boolean IsMandatory()
          Return the mandatory flag
 boolean IsVisible()
          Return the visible flag
 boolean IsVisibleInPM()
          Return the visible in PM flag
 void Load(java.io.ObjectInputStream streamIn)
          Load the pref node variables
 void LoadVersion1_0(java.io.ObjectInputStream streamIn)
          Load the pref node variables for v1.0
 void LoadVersion2_0(java.io.ObjectInputStream streamIn)
          Load the pref node variables for v2.0
 void LoadVersion3_0(java.io.ObjectInputStream streamIn)
          Load the pref node variables for v3.0
 void Save(java.io.ObjectOutputStream streamOut)
          Save the pref node
 void SetActionCommand(java.lang.String szActionCommand)
          Set the action command
 void SetComponentType(java.lang.String szType)
          Set the component type
 void SetMandatory(boolean bMandatory)
          Set the mandatory flag
 void SetName(java.lang.String szName)
          Set the name
 void SetTooltip(java.lang.String szTooltip)
          Set the tooltip
 void SetVisible(boolean bVisible)
          Set the visible flag
 void SetVisibleInPM(boolean bVisibleInPM)
          Set the visible in PM flag
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

VERSION_HWMPREFERENCENODE

public static java.lang.String VERSION_HWMPREFERENCENODE
Constructor Detail

HWMPreferenceNode

public HWMPreferenceNode()
Constructor


HWMPreferenceNode

public HWMPreferenceNode(java.lang.Object objUserObject)
Constructor

Parameters:
objUserObject - The object to store in the node

HWMPreferenceNode

public HWMPreferenceNode(java.lang.Object objUserObject,
                         boolean bAllowsChildren)
Constructor

Parameters:
objUserObject - The object to store in the node
bAllowsChildren - True if allows children, false if not
Method Detail

SetVisible

public void SetVisible(boolean bVisible)
Set the visible flag

Parameters:
bVisible - The visible flag

IsVisible

public boolean IsVisible()
Return the visible flag

Returns:
boolean The visible flag

SetVisibleInPM

public void SetVisibleInPM(boolean bVisibleInPM)
Set the visible in PM flag

Parameters:
bVisibleInPM - The visible in PM flag

IsVisibleInPM

public boolean IsVisibleInPM()
Return the visible in PM flag

Returns:
boolean The visible in PM flag

SetMandatory

public void SetMandatory(boolean bMandatory)
Set the mandatory flag

Parameters:
bMandatory - The mandatory flag

IsMandatory

public boolean IsMandatory()
Return the mandatory flag

Returns:
boolean The mandatory flag

SetActionCommand

public void SetActionCommand(java.lang.String szActionCommand)
Set the action command


GetActionCommand

public java.lang.String GetActionCommand()
Return the action command

Returns:
String The action command

SetName

public void SetName(java.lang.String szName)
Set the name

Parameters:
szName - The name

GetName

public java.lang.String GetName()
Return the name

Returns:
String The name

SetComponentType

public void SetComponentType(java.lang.String szType)
Set the component type

Parameters:
szType - The component type

GetComponentType

public java.lang.String GetComponentType()
Return the component type

Returns:
String The component type

SetTooltip

public void SetTooltip(java.lang.String szTooltip)
Set the tooltip

Parameters:
szTooltip - The tooltip

GetTooltip

public java.lang.String GetTooltip()
Return the tooltip

Returns:
String The tooltip

Save

public void Save(java.io.ObjectOutputStream streamOut)
          throws java.io.IOException
Save the pref node

Parameters:
streamOut - The stream to save to
Throws:
java.io.IOException

LoadVersion1_0

public void LoadVersion1_0(java.io.ObjectInputStream streamIn)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Load the pref node variables for v1.0

Parameters:
streamIn - The stream to read from
Throws:
java.io.IOException
java.lang.ClassNotFoundException

LoadVersion2_0

public void LoadVersion2_0(java.io.ObjectInputStream streamIn)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Load the pref node variables for v2.0

Parameters:
streamIn - The stream to read from
Throws:
java.io.IOException
java.lang.ClassNotFoundException

LoadVersion3_0

public void LoadVersion3_0(java.io.ObjectInputStream streamIn)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Load the pref node variables for v3.0

Parameters:
streamIn - The stream to read from
Throws:
java.io.IOException
java.lang.ClassNotFoundException

Load

public void Load(java.io.ObjectInputStream streamIn)
          throws java.io.IOException,
                 java.lang.ClassNotFoundException
Load the pref node variables

Parameters:
streamIn - The stream to read from
Throws:
java.io.IOException
java.lang.ClassNotFoundException