watch
Class EditorConfigFile

java.lang.Object
  extended by watch.EditorConfigFile

 class EditorConfigFile
extends java.lang.Object

Configuration file class.


Constructor Summary
EditorConfigFile()
          Constructor.
 
Method Summary
 void addProject(java.lang.String J_ProjectPath)
          Reference project addition.
 boolean getbChanged()
          Changed status accessor.
 java.lang.String getCurrentInputFile()
          Current input file accessor.
static java.lang.String getDefaultPath()
          Default configuration file path.
 java.lang.String getLastDirectory()
          Last directory accessor.
 java.util.SortedSet<java.lang.String> getProjects()
          Preferences projects accessor.
 java.lang.String getSafeCurrentInputFile()
          Safe current input file accessor.
 int getWindowHeight()
          Window height accessor.
 boolean getWindowIsMaximized()
          Window maximized status accessor.
 int getWindowWidth()
          Window width accessor.
 int getWindowX()
          X window position accessor.
 int getWindowY()
          Y window position accessor.
 void load(java.lang.String J_FilePath)
          Configuration file loading.
 void reset()
          Configuration file reset.
 void save(java.lang.String J_FilePath)
          Configuration file saving.
 void saveWindowPosition(boolean B_IsMaximized, int I_X, int I_Y, int I_Width, int I_Height)
          Window position saving.
 void setChanged()
          Change notification.
 void setCurrentInputFile(java.lang.String J_CurrentInputFile)
          Current input file setting.
 void setLastDirectory(java.lang.String J_LastDirectory)
          Last directory setting.
 void setWindowHeight(int I_Height)
          Window height setter.
 void setWindowIsMaximized(boolean B_IsMaximized)
          Window maximized status setter.
 void setWindowWidth(int I_Width)
          Window width setter.
 void setWindowX(int I_X)
          X window position setter.
 void setWindowY(int I_Y)
          Y window position setter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditorConfigFile

public EditorConfigFile()
Constructor.

Method Detail

getDefaultPath

public static java.lang.String getDefaultPath()
Default configuration file path.

Returns:
Default configuration file path.

setChanged

public void setChanged()
Change notification.


getbChanged

public boolean getbChanged()
Changed status accessor.

Returns:
Changed status.

reset

public void reset()
Configuration file reset.


load

public void load(java.lang.String J_FilePath)
Configuration file loading.

Parameters:
J_FilePath - Configuration file to load.

save

public void save(java.lang.String J_FilePath)
Configuration file saving.

Parameters:
J_FilePath - Configuration file to save.

getLastDirectory

public java.lang.String getLastDirectory()
Last directory accessor.

Returns:
The last directory path.

setLastDirectory

public void setLastDirectory(java.lang.String J_LastDirectory)
Last directory setting.

Parameters:
J_LastDirectory - Last directory.

getCurrentInputFile

public java.lang.String getCurrentInputFile()
Current input file accessor.

Returns:
The current input file. null if no current input file.

getSafeCurrentInputFile

public java.lang.String getSafeCurrentInputFile()
Safe current input file accessor.

Returns:
The current input file. Empty string if no current input file.

setCurrentInputFile

public void setCurrentInputFile(java.lang.String J_CurrentInputFile)
Current input file setting.

Parameters:
J_CurrentInputFile - Current input file.

getProjects

public java.util.SortedSet<java.lang.String> getProjects()
Preferences projects accessor.

Returns:
List of preferences projects.

addProject

public void addProject(java.lang.String J_ProjectPath)
Reference project addition.

Parameters:
J_ProjectPath - New reference project path.

saveWindowPosition

public void saveWindowPosition(boolean B_IsMaximized,
                               int I_X,
                               int I_Y,
                               int I_Width,
                               int I_Height)
Window position saving.

Parameters:
B_IsMaximized - true if the window is maximized.
I_X - X position of the window.
I_Y - Y position of the window.
I_Width - Width of the window.
I_Height - Heigt of the window.

getWindowIsMaximized

public boolean getWindowIsMaximized()
Window maximized status accessor.

Returns:
The window maximized status.

setWindowIsMaximized

public void setWindowIsMaximized(boolean B_IsMaximized)
Window maximized status setter.

Parameters:
B_IsMaximized - New maximized status.

getWindowX

public int getWindowX()
X window position accessor.

Returns:
X window position.

setWindowX

public void setWindowX(int I_X)
X window position setter.

Parameters:
I_X - New X window position.

getWindowY

public int getWindowY()
Y window position accessor.

Returns:
Y window position.

setWindowY

public void setWindowY(int I_Y)
Y window position setter.

Parameters:
I_Y - New Y window position.

getWindowWidth

public int getWindowWidth()
Window width accessor.

Returns:
Window width.

setWindowWidth

public void setWindowWidth(int I_Width)
Window width setter.

Parameters:
I_Width - New window width.

getWindowHeight

public int getWindowHeight()
Window height accessor.

Returns:
Window height.

setWindowHeight

public void setWindowHeight(int I_Height)
Window height setter.

Parameters:
I_Height - New window height.