com.altair.hwm.toolkit.preferences
Class HWMUserPreferences

java.lang.Object
  extended by com.altair.hwm.toolkit.preferences.HWMUserPreferences
All Implemented Interfaces:
HWMUserPrefConstants

public class HWMUserPreferences
extends java.lang.Object
implements HWMUserPrefConstants

Title: HWMUserPreferences

Description:

Company: Altair Engineering, Inc.


Field Summary
 
Fields inherited from interface com.altair.hwm.toolkit.preferences.HWMUserPrefConstants
APP, CONFIG_FILENAME, DESIGNER, EPIC_VERSION, FILE, HEIGHT, LOCATION, MAX_MRU, MRU, PREFS, ROOT, SIZE, TPL, VERSION, WIDTH, WINDOW, X, Y
 
Constructor Summary
HWMUserPreferences(HWMFrameView frmView)
          Constructor
HWMUserPreferences(HWMFrameView frmView, java.lang.String strDefTpl)
          Constructor
 
Method Summary
 java.lang.String[] GetMRUPrjs()
          Returns a list of the mru projects Index 0 is the mru
 java.lang.String[] GetMRUTpls()
          Returns a list of the mru templates.
 java.awt.Rectangle GetWindowPrefs()
          Returns the mru bounds of the pmt or app
 void SetMRUProject(java.lang.String szTpl, java.lang.String szPrj)
          Sets the new most recently used projects file
 void SetMRUTemplate(java.lang.String szTpl)
          Sets a new most recently used template file
 void WriteConfigFile()
          Writes the config file to disk
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HWMUserPreferences

public HWMUserPreferences(HWMFrameView frmView)
                   throws java.lang.Exception
Constructor

Parameters:
frmView - The main frame
Throws:
java.lang.Exception

HWMUserPreferences

public HWMUserPreferences(HWMFrameView frmView,
                          java.lang.String strDefTpl)
                   throws java.lang.Exception
Constructor

Parameters:
frmView - The main frame
strDefTpl - The default template name
Throws:
java.lang.Exception
Method Detail

WriteConfigFile

public void WriteConfigFile()
                     throws java.lang.Exception
Writes the config file to disk

Throws:
java.lang.Exception

SetMRUTemplate

public void SetMRUTemplate(java.lang.String szTpl)
Sets a new most recently used template file

Parameters:
szTpl - The name of the new file

SetMRUProject

public void SetMRUProject(java.lang.String szTpl,
                          java.lang.String szPrj)
Sets the new most recently used projects file

Parameters:
szTpl - The name of the template
szPrj - The name of the project

GetMRUTpls

public java.lang.String[] GetMRUTpls()
Returns a list of the mru templates. Index 0 is the mru

Returns:
String[]

GetMRUPrjs

public java.lang.String[] GetMRUPrjs()
Returns a list of the mru projects Index 0 is the mru

Returns:
String[]

GetWindowPrefs

public java.awt.Rectangle GetWindowPrefs()
Returns the mru bounds of the pmt or app