|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.altair.hwm.toolkit.workflow.HWMWorkflowNode
public class HWMWorkflowNode
Title: HWMWorkflowNode
Description: A tree node that contains information about a workflow task
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static int |
ASSOCTYPE_PAGE
The association types |
static int |
ASSOCTYPE_TCL
|
static int |
FOLDER
The types of node |
static java.awt.datatransfer.DataFlavor |
s_dataFlavorWrkflowNode
The flavor that this transferable class supports |
static int |
TASK
|
java.lang.String |
VERSION
version for this class |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
EMPTY_ENUMERATION |
Constructor Summary | |
---|---|
HWMWorkflowNode()
Constructor |
|
HWMWorkflowNode(java.lang.Object objUserObject,
boolean bAllowsChildren)
Constructor |
|
HWMWorkflowNode(java.lang.Object objUserObject,
boolean bAllowsChildren,
java.lang.String strNodeName)
Constructor |
Method Summary | |
---|---|
int |
GetAssociation()
Gets the type of association with the node. |
boolean |
GetDockableState()
Gets the node's dockable state. |
java.lang.String |
GetHelpFileName()
Returns the name of the help file associated with the node |
java.lang.String |
GetIconFileName()
Returns the name of the icon file. |
java.lang.String |
GetNodeDisplayName()
Returns the name of the node which is displayed |
java.lang.String |
GetNodeName()
Returns the name of the node |
int |
GetNodeType()
Returns the type of the node |
HWMActionScript |
GetOnCloseActionScript()
Get the Action Script for the OnClose event |
HWMActionScript |
GetOnDisplayActionScript()
Get the Action Script for the OnDisplay event |
int |
GetPageID()
Returns the ID of the associated HWMPage |
int |
GetPlayOption()
Gets the play option: one of PLAYOPTION_XXX |
int |
GetState()
Gets the node state. |
java.lang.String |
GetTCLFilePrefix()
Returns the name of the TCL file preifx. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor dataFlavor)
Returns the data that needs to be transferred i.e. |
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns all the flavors that this class supports |
boolean |
isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
Returns true if the given falvor is supported else false |
boolean |
IsDockable()
Returns if this node is dockable or not |
boolean |
IsEnabled()
Returns the node ENABLE state. |
boolean |
IsVisible()
Returns if this node is visible or not |
void |
OnClose(HWMModelInstance hwmModelInstance)
This method is called when the node is about to be closed |
void |
OnDisplay(HWMModelInstance hwmModelInstance)
This method is called when the node is about to be displayed |
void |
readExternal(java.io.ObjectInput streamInput)
Loads this class |
void |
SetAssociation(int nAssocType)
Sets the type of association with the node. |
void |
SetDockable(boolean bDockable)
|
void |
SetEnabledState(boolean bEnableState)
Sets the ENABLE state of the node - TRUE/FALSE |
void |
SetHelpFileName(java.lang.String szNewName)
Sets the name of the help file associated with the node. |
void |
SetIconFileName(java.lang.String szIconFile)
Sets the name if the icons file to show for this node. |
void |
SetNodeDisplayName(java.lang.String szNewName)
Sets the string that will be displayed in the tree node. |
void |
SetNodeName(java.lang.String szNewName)
Sets the string that will be displayed in the tree node. |
void |
SetNodeType(int nNewType)
Sets the type of the node. |
void |
SetOnCloseActionScript(HWMActionScript hwmActionScript)
Set the Action Script for the OnClose event |
void |
SetOnDisplayActionScript(HWMActionScript hwmActionScript)
Set the Action Script for the OnDisplay event |
void |
SetPageID(int nNewID)
Sets the HWMPage that is associated with the node. |
void |
SetPlayOption(int nPlayOption)
Set the play option: one of PLAYOPTION_XXX |
void |
SetState(int nState)
Sets the state of the node - one of STATE_XXX |
void |
SetTCLFilePrefix(java.lang.String strTCLFilePrefix)
Sets the prefix of the TCL file that should be executed when the task is selected. |
void |
SetVisible(boolean bVisible)
|
void |
writeExternal(java.io.ObjectOutput streamOut)
Saves this class |
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 |
---|
public static final int FOLDER
public static final int TASK
public final java.lang.String VERSION
public static final int ASSOCTYPE_PAGE
public static final int ASSOCTYPE_TCL
public static java.awt.datatransfer.DataFlavor s_dataFlavorWrkflowNode
Constructor Detail |
---|
public HWMWorkflowNode()
public HWMWorkflowNode(java.lang.Object objUserObject, boolean bAllowsChildren)
objUserObject
- The object stored in the nodebAllowsChildren
- True if accepts children, false if not.public HWMWorkflowNode(java.lang.Object objUserObject, boolean bAllowsChildren, java.lang.String strNodeName)
objUserObject
- The object stored in the nodebAllowsChildren
- True if accepts children, false if not.strNodeName
- The unique name for the nodeMethod Detail |
---|
public java.lang.String GetNodeName()
public void SetNodeName(java.lang.String szNewName)
szNewName
- The new name of the nodepublic java.lang.String GetNodeDisplayName()
public void SetNodeDisplayName(java.lang.String szNewName)
szNewName
- The new name of the nodepublic void SetPageID(int nNewID)
szNewName
- public int GetPageID()
public void SetHelpFileName(java.lang.String szNewName)
szNewName
- The name of the help file.public java.lang.String GetHelpFileName()
public void SetNodeType(int nNewType)
nNewType
- The node type: HWMWorkflowNode.FOLDER or
HWMWorkflowNode.TASKpublic int GetNodeType()
public void SetAssociation(int nAssocType)
nAssociation
- Set the association type: one of ASSOCTYPE_XXXpublic int GetAssociation()
public void SetState(int nState)
nState
- Set the state: one of STATE_XXXpublic int GetState()
public void SetPlayOption(int nPlayOption)
nPlayOption
- the play option: one of PLAYOPTION_XXXpublic int GetPlayOption()
public void SetTCLFilePrefix(java.lang.String strTCLFilePrefix)
strTCLFilePrefix
- - TCL Fileprefixpublic java.lang.String GetTCLFilePrefix()
public void SetIconFileName(java.lang.String szIconFile)
szIconFile
- Filename of the iconpublic java.lang.String GetIconFileName()
public void SetVisible(boolean bVisible)
public boolean IsVisible()
public void SetDockable(boolean bDockable)
public boolean IsDockable()
public boolean GetDockableState()
public void SetEnabledState(boolean bEnableState)
bEnableState
- - boolean flagpublic boolean IsEnabled()
public void readExternal(java.io.ObjectInput streamInput) throws java.io.IOException, java.lang.ClassNotFoundException
streamInput
- The input stream to read from
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput streamOut) throws java.io.IOException
streamOut
- The stream to write to
java.io.IOException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface java.awt.datatransfer.Transferable
public boolean isDataFlavorSupported(java.awt.datatransfer.DataFlavor dataFlavor)
isDataFlavorSupported
in interface java.awt.datatransfer.Transferable
dataFlavor
- The flavor that needs to be checked with the list of
supported falvors
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor dataFlavor) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface java.awt.datatransfer.Transferable
dataFlavor
- The flavor that the data should be passed in
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
public void SetOnDisplayActionScript(HWMActionScript hwmActionScript)
hwmActionScript
- The Action Scriptpublic HWMActionScript GetOnDisplayActionScript()
public void SetOnCloseActionScript(HWMActionScript hwmActionScript)
hwmActionScript
- The Action Scriptpublic HWMActionScript GetOnCloseActionScript()
public void OnDisplay(HWMModelInstance hwmModelInstance)
hwmModelInstance
- The framework handlepublic void OnClose(HWMModelInstance hwmModelInstance)
hwmModelInstance
- The framework handle
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |