|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.binding.beans.Model
com.jgoodies.jdiskreport.model.settings.GUISettings
public final class GUISettings
Provides bound properties for GUI related settings.
Nested Class Summary | |
---|---|
static class |
GUISettings.NodeMode
|
static class |
GUISettings.SizeMode
|
static class |
GUISettings.SortMode
|
static class |
GUISettings.ViewMode
|
Field Summary | |
---|---|
static int |
MAX_STATISTICS_DEPTH
|
static int |
MIN_STATISTICS_DEPTH
|
static String |
PROPERTYNAME_BOLDNESS_THRESHOD
|
static String |
PROPERTYNAME_COLLAPSE_DESELECTED_PATHS
|
static String |
PROPERTYNAME_EXPAND_SELECTED_PATHS
|
static String |
PROPERTYNAME_NODE_MODE
|
static String |
PROPERTYNAME_SHOW_FILES
|
static String |
PROPERTYNAME_SIZE_MODE
|
static String |
PROPERTYNAME_SORT_MODE
|
static String |
PROPERTYNAME_STATISTICS_DEPTH
|
static String |
PROPERTYNAME_VIEW_MODE
|
Constructor Summary | |
---|---|
GUISettings()
|
Method Summary | |
---|---|
ChartSettings |
chartSettings()
Returns the Bean that describes the ChartSettings. |
float |
getBoldnessThreshold()
Returns the threshold that indicates when a directory node shall be emphasized. |
boolean |
getCollapseDeselectedPaths()
Returns whether the navigator collapses deselected paths. |
boolean |
getExpandSelectedPaths()
Returns if the navigator expands paths on selection. |
GUISettings.NodeMode |
getNodeMode()
Returns the mode that indicates how directory nodes are rendered in the navigation tree: plain, percent, size. |
boolean |
getShowFiles()
Returns if individual files are shown in the relevant views. |
com.jgoodies.uif.action.ToggleAction |
getShowFilesAction()
|
GUISettings.SizeMode |
getSizeMode()
Returns the current size mode: size vs. count. |
com.jgoodies.uif.action.ToggleAction |
getSizeModeCountAction()
|
com.jgoodies.uif.action.ToggleAction |
getSizeModeSizeAction()
|
GUISettings.SortMode |
getSortMode()
Returns the current sort mode, one of: by name, by size or unsorted. |
com.jgoodies.uif.action.ToggleAction |
getSortModeNameAction()
|
com.jgoodies.uif.action.ToggleAction |
getSortModeSizeAction()
|
int |
getStatisticsDepth()
Returns the current statistics depth that indicates for how many levels we collect and store the cumulated statistics: top lists, distributions and types. |
GUISettings.ViewMode |
getViewMode()
Returns the current view mode used to determine which presentation is shown. |
void |
restoreFrom(Preferences prefs)
Restores the persistent properties from the specified Preferences. |
void |
setBoldnessThreshold(float newValue)
Sets a new boldness threshold. |
void |
setCollapseDeselectedPaths(boolean newValue)
Enables or disables that deselected paths are collapsed automatically. |
void |
setExpandSelectedPaths(boolean newValue)
Enables or disables the automatic expansion of selected paths. |
void |
setNodeMode(GUISettings.NodeMode newMode)
Sets a new mode for the rendering of directory nodes. |
void |
setShowFiles(boolean newValue)
Sets whether individual files shall be shown in the relevant views, or if they shall be collapsed to a synthetic node "Files in this folder". |
void |
setSizeMode(GUISettings.SizeMode newMode)
Sets a new size mode: size vs. count. |
void |
setSortMode(GUISettings.SortMode newMode)
Sets a new sort mode: by name, by size or unsorted. |
void |
setStatisticsDepth(int newDepth)
Sets a new statistics depth. |
void |
setViewMode(GUISettings.ViewMode newMode)
Sets a new view mode. |
void |
storeIn(Preferences prefs)
Stores the persistent properties in the specified Preferences. |
Methods inherited from class com.jgoodies.binding.beans.Model |
---|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTYNAME_BOLDNESS_THRESHOD
public static final String PROPERTYNAME_COLLAPSE_DESELECTED_PATHS
public static final String PROPERTYNAME_EXPAND_SELECTED_PATHS
public static final String PROPERTYNAME_STATISTICS_DEPTH
public static final String PROPERTYNAME_SORT_MODE
public static final String PROPERTYNAME_SIZE_MODE
public static final String PROPERTYNAME_SHOW_FILES
public static final String PROPERTYNAME_NODE_MODE
public static final String PROPERTYNAME_VIEW_MODE
public static final int MIN_STATISTICS_DEPTH
public static final int MAX_STATISTICS_DEPTH
Constructor Detail |
---|
public GUISettings()
Method Detail |
---|
public ChartSettings chartSettings()
public com.jgoodies.uif.action.ToggleAction getSortModeSizeAction()
public com.jgoodies.uif.action.ToggleAction getSortModeNameAction()
public com.jgoodies.uif.action.ToggleAction getSizeModeSizeAction()
public com.jgoodies.uif.action.ToggleAction getSizeModeCountAction()
public com.jgoodies.uif.action.ToggleAction getShowFilesAction()
public float getBoldnessThreshold()
public void setBoldnessThreshold(float newValue)
newValue
- the boldness threshold to be setpublic boolean getCollapseDeselectedPaths()
public void setCollapseDeselectedPaths(boolean newValue)
newValue
- true to enable the auto collapse, false to disable itpublic boolean getExpandSelectedPaths()
public void setExpandSelectedPaths(boolean newValue)
newValue
- true to enable the auto expansion, false to disable itpublic GUISettings.SortMode getSortMode()
public void setSortMode(GUISettings.SortMode newMode)
newMode
- the sort mode to be setpublic GUISettings.SizeMode getSizeMode()
public void setSizeMode(GUISettings.SizeMode newMode)
newMode
- the size mode to be setpublic GUISettings.NodeMode getNodeMode()
public void setNodeMode(GUISettings.NodeMode newMode)
newMode
- the mode to be setpublic GUISettings.ViewMode getViewMode()
public void setViewMode(GUISettings.ViewMode newMode)
newMode
- the view mode to be setpublic boolean getShowFiles()
public void setShowFiles(boolean newValue)
newValue
- true to show leafs, false to hide leafspublic int getStatisticsDepth()
public void setStatisticsDepth(int newDepth)
newDepth
- the statistics depth to be setpublic void restoreFrom(Preferences prefs)
prefs
- the Preferences object that holds the property valuespublic void storeIn(Preferences prefs)
prefs
- the Preferences object that holds the property values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |