wxtgui
Class props

java.lang.Object
  extended bywxtgui.props

public class props
extends java.lang.Object

Handling the applications settings Recent file list and window rectangle


Constructor Summary
props()
          Creates a new instance of props with connstructed file:/sbprop.txt
props(java.lang.String filepath)
          Creates a new instance.
 
Method Summary
 void addRecentFile(java.lang.String filename)
          Inserts a new filepath, file-element
 java.awt.Rectangle getFrameBounds()
          Retrieves the bounding rectangle as described i properties
 int getLayoutIndex()
          Retrieve the actual layout index
 java.lang.String getLookAndFeelName()
          Retrieve the actual LookAndFeel name
 java.io.File getRecentFile(int ix)
          Get recent file number ix.
 java.lang.String getRecentFilePath(int ix)
          Get recent filepath number ix.
 java.net.URI getValidationSchema()
          Retrieve the URI of the local validation schema
 void removeRecentFile(java.lang.String filename)
          Removes a named filepath
 void saveConfig()
          store the properties
 void setFrameBounds(java.awt.Rectangle R)
          Sets the bounding rectangle for the main window
 void setLayoutIndex(int ix)
          Set the actual layout index
 void setLookAndFeelName(java.lang.String s)
          Set the actual LookAndFeel name
 void setValidationSchema(java.net.URI theURI)
          Set the URI of the local validation schema
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

props

public props()
Creates a new instance of props with connstructed file:/sbprop.txt


props

public props(java.lang.String filepath)
Creates a new instance.

Parameters:
filepath - is used for configuration file
Method Detail

saveConfig

public void saveConfig()
store the properties


getValidationSchema

public java.net.URI getValidationSchema()
Retrieve the URI of the local validation schema

Returns:
an URI-string

setValidationSchema

public void setValidationSchema(java.net.URI theURI)
Set the URI of the local validation schema

Parameters:
theURI - the URI that holds the validation schema

getLayoutIndex

public int getLayoutIndex()
Retrieve the actual layout index

Returns:
the index

setLayoutIndex

public void setLayoutIndex(int ix)
Set the actual layout index

Parameters:
ix - The layout index

getLookAndFeelName

public java.lang.String getLookAndFeelName()
Retrieve the actual LookAndFeel name

Returns:
The actual L&F name

setLookAndFeelName

public void setLookAndFeelName(java.lang.String s)
Set the actual LookAndFeel name

Parameters:
s - The actual L&F name

getFrameBounds

public java.awt.Rectangle getFrameBounds()
Retrieves the bounding rectangle as described i properties

Returns:
Bounding rectangel

setFrameBounds

public void setFrameBounds(java.awt.Rectangle R)
Sets the bounding rectangle for the main window

Parameters:
R - is the bounding rectangle

getRecentFilePath

public java.lang.String getRecentFilePath(int ix)
Get recent filepath number ix.

Parameters:
ix - is the index in recent file list
Returns:
a file path, null if ix of of range

getRecentFile

public java.io.File getRecentFile(int ix)
Get recent file number ix.

Parameters:
ix - is the index in recent file list
Returns:
a file object, null if ix out of range or file does not exist

addRecentFile

public void addRecentFile(java.lang.String filename)
Inserts a new filepath, file-element

Parameters:
filename - the full path of the file to add

removeRecentFile

public void removeRecentFile(java.lang.String filename)
Removes a named filepath

Parameters:
filename - The complete filepath to remove