ghm.follow.config
Class FollowAppAttributes

java.lang.Object
  extended by ghm.follow.config.FollowAppAttributes

public class FollowAppAttributes
extends java.lang.Object

Author:
Greg Merrill

Field Summary
static java.lang.String ATTRIBUTES_VERSION_KEY
           
static java.lang.String AUTO_SCROLL_KEY
           
static int BUFFER_SIZE
           
static java.lang.String BUFFER_SIZE_KEY
           
static java.lang.String CONFIRM_DELETE_ALL_KEY
           
static java.lang.String CONFIRM_DELETE_KEY
           
static java.lang.String EDITOR_KEY
           
static java.lang.String FOLLOWED_FILES_KEY
           
static java.lang.String FONT_FAMILY_KEY
           
static java.lang.String FONT_SIZE_KEY
           
static java.lang.String FONT_STYLE_KEY
           
static java.lang.String HEIGHT_KEY
           
static java.lang.String LAST_FILE_CHOOSER_DIR_KEY
           
static java.lang.String LATENCY_KEY
           
static java.lang.String PROPERTY_FILE_NAME
           
static java.lang.String PROPERTY_PROTOTYPE_FILE_NAME
           
static java.lang.String RECENT_FILES_KEY
           
static java.lang.String RECENT_FILES_MAX_KEY
           
static java.lang.String SELECTED_TAB_INDEX_KEY
           
static java.lang.String TAB_PLACEMENT_KEY
           
static java.lang.String TAB_SIZE_KEY
           
static int UNVERSIONED
           
static int v1_1
           
static int v1_2
           
static int v1_3
           
static int v1_3_2
           
static int v1_4
           
static int v1_5_0
           
static int v1_6_0
           
static java.lang.String WIDTH_KEY
           
static java.lang.String X_KEY
           
static java.lang.String Y_KEY
           
 
Constructor Summary
FollowAppAttributes()
           
FollowAppAttributes(java.io.File exitingPropertyFile)
           
 
Method Summary
 void addFollowedFile(java.io.File file)
          Adds a file to the list of followed files
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void addPropertyChangeListener(java.lang.String prop, java.beans.PropertyChangeListener listener)
           
 void addRecentFile(java.io.File file)
          Adds a file to the list of recent files
 boolean autoScroll()
           
 boolean confirmDelete()
           
 boolean confirmDeleteAll()
           
protected  boolean fileListContains(java.util.List<java.lang.String> fileList, java.io.File file)
           
 boolean followedFileListContains(java.io.File file)
          Checks the existence of a file in the list of followed files
 int getAttributesVersion()
           
 int getBufferSize()
           
 FollowAppAttributes getDefaultAttributes()
           
 java.lang.String getEditor()
           
protected  java.util.List<java.io.File> getFiles(java.util.List<java.lang.String> fileList)
           
 java.util.List<java.io.File> getFollowedFiles()
          Get an array files being followed
 java.awt.Font getFont()
           
 int getHeight()
           
 java.io.File getLastFileChooserDirectory()
           
 int getLatency()
           
 java.io.File getPropertyFile()
           
 java.util.List<java.io.File> getRecentFiles()
          Get an array of recently opened files
 int getRecentFilesMax()
           
 int getSelectedTabIndex()
           
 int getTabPlacement()
           
 int getTabSize()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 boolean recentFileListContains(java.io.File file)
          Checks the existence of a file in the list of recent files
 void removeFollowedFile(java.io.File file)
          Removes a file from the list of followed files
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void removePropertyChangeListener(java.lang.String prop, java.beans.PropertyChangeListener listener)
           
 void setAttributesVersion(int attributesVersion)
           
 void setAutoScroll(boolean value)
           
 void setBufferSize(int bufferSize)
           
 void setBufferSize(java.lang.String bufferSize)
           
 void setConfirmDelete(boolean value)
           
 void setConfirmDeleteAll(boolean value)
           
 void setEditor(java.lang.String value)
           
 void setFont(java.awt.Font font)
           
 void setHeight(int height)
           
 void setLastFileChooserDirectory(java.io.File file)
           
 void setLatency(int latency)
           
 void setLatency(java.lang.String latency)
           
 void setRecentFilesMax(int max)
           
 void setRecentFilesMax(java.lang.String max)
           
 void setSelectedTabIndex(int selectedTabIndex)
           
 void setTabPlacement(int tabPlacement)
           
 void setTabSize(int tabSize)
           
 void setTabSize(java.lang.String tabSize)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 void store()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_FILE_NAME

public static final java.lang.String PROPERTY_FILE_NAME
See Also:
Constant Field Values

PROPERTY_PROTOTYPE_FILE_NAME

public static final java.lang.String PROPERTY_PROTOTYPE_FILE_NAME
See Also:
Constant Field Values

BUFFER_SIZE

public static final int BUFFER_SIZE
See Also:
Constant Field Values

HEIGHT_KEY

public static final java.lang.String HEIGHT_KEY
See Also:
Constant Field Values

WIDTH_KEY

public static final java.lang.String WIDTH_KEY
See Also:
Constant Field Values

X_KEY

public static final java.lang.String X_KEY
See Also:
Constant Field Values

Y_KEY

public static final java.lang.String Y_KEY
See Also:
Constant Field Values

FOLLOWED_FILES_KEY

public static final java.lang.String FOLLOWED_FILES_KEY
See Also:
Constant Field Values

TAB_PLACEMENT_KEY

public static final java.lang.String TAB_PLACEMENT_KEY
See Also:
Constant Field Values

SELECTED_TAB_INDEX_KEY

public static final java.lang.String SELECTED_TAB_INDEX_KEY
See Also:
Constant Field Values

LAST_FILE_CHOOSER_DIR_KEY

public static final java.lang.String LAST_FILE_CHOOSER_DIR_KEY
See Also:
Constant Field Values

BUFFER_SIZE_KEY

public static final java.lang.String BUFFER_SIZE_KEY
See Also:
Constant Field Values

LATENCY_KEY

public static final java.lang.String LATENCY_KEY
See Also:
Constant Field Values

ATTRIBUTES_VERSION_KEY

public static final java.lang.String ATTRIBUTES_VERSION_KEY
See Also:
Constant Field Values

FONT_FAMILY_KEY

public static final java.lang.String FONT_FAMILY_KEY
See Also:
Constant Field Values

FONT_STYLE_KEY

public static final java.lang.String FONT_STYLE_KEY
See Also:
Constant Field Values

FONT_SIZE_KEY

public static final java.lang.String FONT_SIZE_KEY
See Also:
Constant Field Values

CONFIRM_DELETE_KEY

public static final java.lang.String CONFIRM_DELETE_KEY
See Also:
Constant Field Values

CONFIRM_DELETE_ALL_KEY

public static final java.lang.String CONFIRM_DELETE_ALL_KEY
See Also:
Constant Field Values

AUTO_SCROLL_KEY

public static final java.lang.String AUTO_SCROLL_KEY
See Also:
Constant Field Values

EDITOR_KEY

public static final java.lang.String EDITOR_KEY
See Also:
Constant Field Values

TAB_SIZE_KEY

public static final java.lang.String TAB_SIZE_KEY
See Also:
Constant Field Values

RECENT_FILES_MAX_KEY

public static final java.lang.String RECENT_FILES_MAX_KEY
See Also:
Constant Field Values

RECENT_FILES_KEY

public static final java.lang.String RECENT_FILES_KEY
See Also:
Constant Field Values

UNVERSIONED

public static final int UNVERSIONED
See Also:
Constant Field Values

v1_1

public static final int v1_1
See Also:
Constant Field Values

v1_2

public static final int v1_2
See Also:
Constant Field Values

v1_3

public static final int v1_3
See Also:
Constant Field Values

v1_3_2

public static final int v1_3_2
See Also:
Constant Field Values

v1_4

public static final int v1_4
See Also:
Constant Field Values

v1_5_0

public static final int v1_5_0
See Also:
Constant Field Values

v1_6_0

public static final int v1_6_0
See Also:
Constant Field Values
Constructor Detail

FollowAppAttributes

public FollowAppAttributes()
                    throws java.io.IOException
Throws:
java.io.IOException

FollowAppAttributes

public FollowAppAttributes(java.io.File exitingPropertyFile)
                    throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getHeight

public int getHeight()

setHeight

public void setHeight(int height)

getWidth

public int getWidth()

setWidth

public void setWidth(int width)

getX

public int getX()

setX

public void setX(int x)

getY

public int getY()

setY

public void setY(int y)

getFollowedFiles

public java.util.List<java.io.File> getFollowedFiles()
Get an array files being followed

Returns:
File[] File array of followed files

getFiles

protected java.util.List<java.io.File> getFiles(java.util.List<java.lang.String> fileList)

followedFileListContains

public boolean followedFileListContains(java.io.File file)
Checks the existence of a file in the list of followed files

Returns:
true iff any File in the List of followed Files (getFollowedFiles()) has the same Canonical Path as the supplied File

recentFileListContains

public boolean recentFileListContains(java.io.File file)
Checks the existence of a file in the list of recent files

Returns:
true iff any File in the List of recent Files (getFollowedFiles()) has the same Canonical Path as the supplied File

fileListContains

protected boolean fileListContains(java.util.List<java.lang.String> fileList,
                                   java.io.File file)
Returns:
true iff any File in the List of Files (getFollowedFiles()) has the same Canonical Path as the supplied File

addFollowedFile

public void addFollowedFile(java.io.File file)
Adds a file to the list of followed files

Parameters:
file -

removeFollowedFile

public void removeFollowedFile(java.io.File file)
Removes a file from the list of followed files

Parameters:
file -

getTabPlacement

public int getTabPlacement()

setTabPlacement

public void setTabPlacement(int tabPlacement)

getTabSize

public int getTabSize()

setTabSize

public void setTabSize(int tabSize)

setTabSize

public void setTabSize(java.lang.String tabSize)

getSelectedTabIndex

public int getSelectedTabIndex()

setSelectedTabIndex

public void setSelectedTabIndex(int selectedTabIndex)

getLastFileChooserDirectory

public java.io.File getLastFileChooserDirectory()

setLastFileChooserDirectory

public void setLastFileChooserDirectory(java.io.File file)

getBufferSize

public int getBufferSize()

setBufferSize

public void setBufferSize(int bufferSize)

setBufferSize

public void setBufferSize(java.lang.String bufferSize)

getLatency

public int getLatency()

setLatency

public void setLatency(int latency)

setLatency

public void setLatency(java.lang.String latency)

getAttributesVersion

public int getAttributesVersion()

setAttributesVersion

public void setAttributesVersion(int attributesVersion)

getFont

public java.awt.Font getFont()

setFont

public void setFont(java.awt.Font font)

confirmDelete

public boolean confirmDelete()

setConfirmDelete

public void setConfirmDelete(boolean value)

confirmDeleteAll

public boolean confirmDeleteAll()

setConfirmDeleteAll

public void setConfirmDeleteAll(boolean value)

autoScroll

public boolean autoScroll()

setAutoScroll

public void setAutoScroll(boolean value)

getEditor

public java.lang.String getEditor()

setEditor

public void setEditor(java.lang.String value)

addRecentFile

public void addRecentFile(java.io.File file)
Adds a file to the list of recent files

Parameters:
file -

getRecentFiles

public java.util.List<java.io.File> getRecentFiles()
Get an array of recently opened files

Returns:
File[] File array of followed files

getRecentFilesMax

public int getRecentFilesMax()

setRecentFilesMax

public void setRecentFilesMax(java.lang.String max)

setRecentFilesMax

public void setRecentFilesMax(int max)

getPropertyFile

public java.io.File getPropertyFile()

store

public void store()
           throws java.io.IOException
Throws:
java.io.IOException

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String prop,
                                      java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String prop,
                                         java.beans.PropertyChangeListener listener)

getDefaultAttributes

public FollowAppAttributes getDefaultAttributes()
                                         throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2008. All Rights Reserved.