|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.braincell.stickbackup.config.Config
public class Config
Field Summary | |
---|---|
protected static java.lang.String |
changedColor
|
protected static Config |
config
|
protected static int |
defaultChangedColor
|
protected static int |
defaultDestinationColor
|
protected static int |
defaultFinishedColor
|
protected static int |
defaultSourceColor
|
protected static int |
defaultWorkingColor
|
protected static java.lang.String |
destinationColor
|
protected static java.lang.String |
destinationDir
|
protected static java.lang.String |
destinationDrive
|
protected static java.lang.String |
destinationSearchDrive
|
protected static java.lang.String |
finishedColor
|
protected static java.lang.String |
sourceColor
|
protected static java.lang.String |
sourceDir
|
protected static java.lang.String |
sourceDrive
|
protected static java.lang.String |
sourceSearchDrive
|
protected static java.lang.String |
workingColor
|
Constructor Summary | |
---|---|
protected |
Config()
Creates a new instance of Config |
Method Summary | |
---|---|
java.awt.Color |
getChangedColor()
Get the color of changed files and directories. |
java.awt.Color |
getDestinationColor()
Get the color of destination files and directories to archive. |
java.io.File |
getDestinationDir()
Get the destination directory. |
java.awt.Color |
getFinishedColor()
Gets the color for finished files and direcories. |
static Config |
getInstance()
Singleton-pattern: get an instance of Config. |
java.awt.Color |
getSourceColor()
Get the color of new source files and directories. |
java.io.File |
getSourceDir()
Get the source directory. |
java.awt.Color |
getWorkingColor()
Get the color for files and directories on which the process is working on. |
boolean |
isDestinationDriveSearch()
Flag to switch destination drive name search on or off. |
boolean |
isSourceDriveSearch()
Flag to switch source drive name search on or off. |
boolean |
isWindows()
Tests if the system is a Microsoft Windows system. |
void |
load()
Load configuration from disk. |
void |
save()
Save the configuration to the disk. |
void |
setChangedColor(java.awt.Color color)
Set the color of changed files and directories. |
void |
setDestinationColor(java.awt.Color color)
Set the color of destination files and directories to archive. |
void |
setDestinationDir(java.io.File backupDir)
Sets the destination directory. |
void |
setDestinationDriveSearch(boolean search)
Flag to set destination drive name search on or off. |
void |
setFinishedColor(java.awt.Color color)
Sets the color for finished files and direcories. |
void |
setSourceColor(java.awt.Color color)
Sets the color for new source files. |
void |
setSourceDir(java.io.File stickDir)
Sets the source directory. |
void |
setSourceDriveSearch(boolean search)
Flag to set source drive name search on or off. |
void |
setWorkingColor(java.awt.Color color)
Set the color for files and directories on which the process is working on. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String sourceDir
protected static final java.lang.String sourceDrive
protected static final java.lang.String sourceSearchDrive
protected static final java.lang.String destinationDir
protected static final java.lang.String destinationDrive
protected static final java.lang.String destinationSearchDrive
protected static final java.lang.String sourceColor
protected static final int defaultSourceColor
protected static final java.lang.String destinationColor
protected static final int defaultDestinationColor
protected static final java.lang.String changedColor
protected static final int defaultChangedColor
protected static final java.lang.String workingColor
protected static final int defaultWorkingColor
protected static final java.lang.String finishedColor
protected static final int defaultFinishedColor
protected static Config config
Constructor Detail |
---|
protected Config()
Method Detail |
---|
public static Config getInstance()
public void load() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
java.io.IOException
public boolean isWindows()
public java.io.File getSourceDir()
public void setSourceDir(java.io.File stickDir)
stickDir
- sets the source directory.public boolean isSourceDriveSearch()
public void setSourceDriveSearch(boolean search)
search
- set true if the drive should be searched by name, false
otherwise.public java.io.File getDestinationDir()
public void setDestinationDir(java.io.File backupDir)
stickDir
- sets the destination directory.public boolean isDestinationDriveSearch()
public void setDestinationDriveSearch(boolean search)
search
- set true if the drive should be searched by name, false
otherwise.public java.awt.Color getSourceColor()
public void setSourceColor(java.awt.Color color)
color
- color for new files.public java.awt.Color getDestinationColor()
public void setDestinationColor(java.awt.Color color)
color
- color for archiving files.public java.awt.Color getChangedColor()
public void setChangedColor(java.awt.Color color)
color
- color for changed files.public java.awt.Color getWorkingColor()
public void setWorkingColor(java.awt.Color color)
color
- color for "working on" files.public java.awt.Color getFinishedColor()
public void setFinishedColor(java.awt.Color color)
color
- color for finished files.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |