public class SwingConfig extends FARConfig
Modifier and Type | Class and Description |
---|---|
static class |
SwingConfig.DefaultFileInfo
Default file info displayed in the result table:
|
static class |
SwingConfig.FILEVIEW
Names representing file views (for configuration purpose).
|
Modifier and Type | Field and Description |
---|---|
static int |
COMPONENT_WIDTH
Constant for default component width.
|
static int |
COMPONENT_WIDTH_LARGE
Constant for large component width.
|
static int |
COMPONENT_WIDTH_MAX
Constant for maximal component width.
|
static java.lang.String |
EXTENSION_EXTRACT
File extension for saved ExtractForms.
|
static java.lang.String |
EXTENSION_FIND
File extension for saved FindForms.
|
static java.lang.String |
EXTENSION_REPLACE
File extension for saved ReplaceForms.
|
static java.lang.String |
FORMLIST_FILENAME
File name for list of saved Operations.
|
static java.awt.Color |
GRAY_EXTRA_LIGHT
Color constant
|
static int |
PADDING
Constant for component padding.
|
static java.lang.String |
PPT_FILEINFO
Property name for default file info.
|
static java.lang.String |
PPT_MATCH_SEPARATOR
Property name for default match separator.
|
static java.lang.String |
PPT_PLAINBYTES
Property name for default file info.
|
static java.lang.String |
PPT_VIEW_BINARY
Property name for binary file view.
|
static java.lang.String |
PPT_VIEW_TEXT
Property name for text file view.
|
APPLICATION_NAME, APPLICATION_TITLE, GROUPREFINDICATORLIST, logger, MIN_JAVA_MINOR_VERSION, PPT_BASEDIR, PPT_BCKPDIR, PPT_BINARY, PPT_GROUPREF, PPT_LISTEXDIR, PPT_UNKNOWN_AS_BINARY, PPT_VERSION, STANDARD_DATE_FORMAT, STANDARD_DATE_TIME_FORMAT, STANDARD_TIME_FORMAT
Constructor and Description |
---|
SwingConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getAccessKey(java.lang.String localizedCode)
Returns the access key code for the specified label or menu entry if
any is defined.
|
SwingConfig.FILEVIEW |
getBinaryView()
Returns the default binary viewer component.
|
SwingConfig.DefaultFileInfo |
getDefaultFileInfo()
Default file info displayed in the result table.
|
java.lang.String |
getDefaultMatchSeparator()
Returns the default separator for separating extraction parts.
|
java.awt.Point |
getScreenCenter()
Returns the screen center for centered popup windows
|
int |
getStandardComponentHight()
Returns the default component hight of a single line.
|
SwingConfig.FILEVIEW |
getTextView()
Returns the default text viewer component.
|
static boolean |
isMacOSX()
Returns true if we are running on Mac OS X.
|
boolean |
isShowPlainBytes()
Returns true if plain byte values should be shown in Info column
if the default file info property is set to "SIZE".
|
static boolean |
isWindows()
Gee, I never thought I'd do something like this.
|
protected void |
loadFromProperties(java.util.Properties properties)
Overwrites the super implementation to load the default
file info propery.
|
void |
setBinaryView(SwingConfig.FILEVIEW binaryView)
Sets the default binary viewer component.
|
void |
setDefaultFileInfo(java.lang.String fileInfoCode)
Sets the default file info using the code name.
|
void |
setDefaultMatchSeparator(java.lang.String sep)
Sets the default separator for separating extraction parts.
|
void |
setFocusTraversalKeys(javax.swing.JComponent component)
Sets the focus traversal keys TAB and SHIFT+TAB for the specified component.
|
void |
setShowPlainBytes(boolean showPlainBytes)
Set to true if plain byte values should be shown in Info column
if the default file info property is set to "SIZE".
|
void |
setTextView(SwingConfig.FILEVIEW textView)
Sets the default text viewer component.
|
protected void |
writeToProperties(java.util.Properties properties)
Overwrites the super implementation to store the default
file info propery.
|
getBackupDirectory, getBaseDirectory, getCharsetList, getConfigDir, getDefaultCharset, getDefaultExtractForm, getDefaultFindForm, getDefaultRenameForm, getDefaultReplaceForm, getEffectiveJavaVersion, getFileListExportDirectory, getFileNamePatternList, getFileNamePatternListModel, getGroupReferenceIndicator, getLocalizer, isProcessBinary, isTreatUnknownFileTypesAsBinary, setBackupDirectory, setBaseDirectory, setCharsetList, setConfigDir, setDefaultCharset, setFileListExportDirectory, setGroupReferenceIndicator, setLocalizer, setPatternList, setProcessBinary, setTreatUnknownFileTypesAsBinary, versionHasChanged
public static final int PADDING
public static final int COMPONENT_WIDTH
public static final int COMPONENT_WIDTH_LARGE
public static final int COMPONENT_WIDTH_MAX
public static final java.lang.String PPT_FILEINFO
public static final java.lang.String PPT_PLAINBYTES
public static final java.lang.String PPT_MATCH_SEPARATOR
public static final java.lang.String PPT_VIEW_TEXT
public static final java.lang.String PPT_VIEW_BINARY
public static final java.awt.Color GRAY_EXTRA_LIGHT
public static final java.lang.String EXTENSION_FIND
public static final java.lang.String EXTENSION_REPLACE
public static final java.lang.String EXTENSION_EXTRACT
public static final java.lang.String FORMLIST_FILENAME
public java.awt.Point getScreenCenter()
public int getStandardComponentHight()
public int getAccessKey(java.lang.String localizedCode)
localizedCode
- localisation code for a label or menu entrypublic static boolean isMacOSX()
public static boolean isWindows()
public SwingConfig.DefaultFileInfo getDefaultFileInfo()
DefaultFileInfo
for available options.public void setDefaultFileInfo(java.lang.String fileInfoCode)
DefaultFileInfo
}. Null values and
illegal code names will be ignoredfileInfoCode
- code name of class DefaultFileInfo.public boolean isShowPlainBytes()
public void setShowPlainBytes(boolean showPlainBytes)
showPlainBytes
- true if plain byte values should be shown in Info columnpublic void setFocusTraversalKeys(javax.swing.JComponent component)
component
- to receive the standard focus traversal keyspublic SwingConfig.FILEVIEW getTextView()
public void setTextView(SwingConfig.FILEVIEW textView)
textView
- default text viewerpublic SwingConfig.FILEVIEW getBinaryView()
public void setBinaryView(SwingConfig.FILEVIEW binaryView)
binaryView
- default binary viewerpublic java.lang.String getDefaultMatchSeparator()
public void setDefaultMatchSeparator(java.lang.String sep)
sep
- default extraction separatorprotected void loadFromProperties(java.util.Properties properties)
loadFromProperties
in class FARConfig
properties
- holding properties for base and backup directory.protected void writeToProperties(java.util.Properties properties)
writeToProperties
in class FARConfig
properties
- where to write base and backup directory to