|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.altair.hwm.toolkit.preferences.HWMMenuToolBarPreferences
public class HWMMenuToolBarPreferences
Title: HWMMenuToolBarPreferences
Description: Encapsulates the menubar and toolbar preferences.
Company: Altair Engineering, Inc.
Field Summary | |
---|---|
static java.lang.String |
MENU_TOOLBAR_PREF_VERSION
|
Constructor Summary | |
---|---|
HWMMenuToolBarPreferences()
Default Constructor |
|
HWMMenuToolBarPreferences(int nAppType)
Constructor for constructing default menu and toolbars for macro type apps or standard apps |
Method Summary | |
---|---|
javax.swing.tree.DefaultTreeModel |
GetMenuBarPrefModel()
Returns the MenuBarPreference model |
HWMMenuBarPrefNode |
GetMenuBarPrefNode(javax.swing.tree.DefaultMutableTreeNode nodeParent,
java.lang.String szName)
Returns the node with the specified name by searching the specified parent node. |
HWMMenuBarPrefNode |
GetMenuBarPrefNode(java.lang.String szName)
Returns the node with the specified name |
HWMMenuBarPrefNode |
GetMenuBarPrefNode(java.lang.String strParentName,
java.lang.String szName)
Returns the node with the specified name under the specified parent |
javax.swing.tree.DefaultTreeModel |
GetToolBarPrefModel()
Returns the ToolBarPreference model |
HWMToolBarPrefNode |
GetToolBarPrefNode(java.lang.String szName)
Returns the node with the specified name |
HWMToolBarPrefNode |
GetToolBarPrefNode(java.lang.String strParentName,
java.lang.String szName)
Returns the node with the specified name under the specified parent |
void |
Load(java.io.ObjectInputStream streamIn)
Loads the menubar and toolbar preference models |
void |
Save(java.io.ObjectOutputStream streamOut)
Saves the menubar and toolbar preference models |
void |
SetAppType(int nAppType)
Change the toolbar/menu bar prefs according to the pmt type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MENU_TOOLBAR_PREF_VERSION
Constructor Detail |
---|
public HWMMenuToolBarPreferences()
public HWMMenuToolBarPreferences(int nAppType)
nAppType
- The type of application. Will be one of
HWMModelInstance.APPTYPE_XXXMethod Detail |
---|
public HWMToolBarPrefNode GetToolBarPrefNode(java.lang.String szName)
szName
- The name of the node to find
public HWMToolBarPrefNode GetToolBarPrefNode(java.lang.String strParentName, java.lang.String szName)
strParentName
- The name of the parentszName
- The name of the node to find
public HWMMenuBarPrefNode GetMenuBarPrefNode(java.lang.String szName)
szName
- The name of the node to find
public HWMMenuBarPrefNode GetMenuBarPrefNode(java.lang.String strParentName, java.lang.String szName)
strParentName
- The name of the parentszName
- The name of the node to find
public HWMMenuBarPrefNode GetMenuBarPrefNode(javax.swing.tree.DefaultMutableTreeNode nodeParent, java.lang.String szName)
nodeParent
- The node to searchszName
- The name of the node to find.
public javax.swing.tree.DefaultTreeModel GetMenuBarPrefModel()
public javax.swing.tree.DefaultTreeModel GetToolBarPrefModel()
public void Save(java.io.ObjectOutputStream streamOut) throws java.io.IOException
streamOut
- The output stream to write to
java.io.IOException
public void Load(java.io.ObjectInputStream streamIn) throws java.io.IOException, java.lang.ClassNotFoundException
streamIn
- The stream to read from
java.io.IOException
java.lang.ClassNotFoundException
public void SetAppType(int nAppType)
nAppType
- The application type can be one of the
HWMModelInstance.APPTYPE_XXX
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |