|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.joi.Preferences
public class Preferences
This singleton contains the general settings of JOI.
Field Summary | |
---|---|
protected static java.lang.String |
CONFIG_FILENAME
|
protected static boolean |
DEFAULT_ALLOW_MODIFY
|
protected static boolean |
DEFAULT_AUTO_SORT
|
protected static java.lang.String |
DEFAULT_CONFIG_FILENAME
|
protected static int |
DEFAULT_DOUBLE_CLICK_MODE
|
protected static int |
DEFAULT_MAIN_MARGIN
|
protected static int |
DEFAULT_MIDDLE_BUTTON_MODE
|
protected static int |
DEFAULT_TREE_WIDTH
|
protected static int |
DEFAULT_WINDOW_HEIGHT
|
protected static int |
DEFAULT_WINDOW_WIDTH
|
protected static java.lang.String |
DOUBLE_CLICK_OPEN_TAB
|
protected static java.lang.String |
DOUBLE_CLICK_OPEN_WINDOW
|
protected static java.lang.String |
DOUBLE_CLICK_REPLACE
|
protected static java.lang.String |
OPT_ALLOW_MODIFY
|
protected static java.lang.String |
OPT_AUTO_SORT
|
protected static java.lang.String |
OPT_DOUBLE_CLICK_ACTION
|
protected static java.lang.String |
OPT_FINAL_DEFAULT
|
protected static java.lang.String |
OPT_MIDDLE_BUTTON
|
protected static java.lang.String |
OPT_PACKAGE_DEFAULT
|
protected static java.lang.String |
OPT_PRIVATE_DEFAULT
|
protected static java.lang.String |
OPT_PROTECTED_DEFAULT
|
protected static java.lang.String |
OPT_PUBLIC_DEFAULT
|
protected static java.lang.String |
OPT_QUOTE_STRINGS
|
protected static java.lang.String |
OPT_STATIC_DEFAULT
|
protected static java.lang.String |
OPT_TRANSIENT_DEFAULT
|
protected static java.lang.String |
OPT_TREE_WIDTH
|
protected static java.lang.String |
OPT_WINDOW_HEIGHT
|
protected static java.lang.String |
OPT_WINDOW_WIDTH
|
Method Summary | |
---|---|
protected int |
detectOpenAction(java.lang.String option)
Returns the action code or a negative value if nothing (correct) was specified in the given option. |
protected boolean |
getAutoSort()
|
int |
getDoubleClickMode()
Returns a open mode that defines where to inspect the selected element with a double-click. |
ElementFilter |
getInitialElementFilter()
Returns the a copy of the initial element filter |
int |
getMainMargin()
Returns the margin to be used inside the main window |
int |
getMiddleButtonMode()
Returns a open mode that defines where to inspect the selected element with pressing the middle mouse button. |
boolean |
getQuoteStrings()
Returns whether or not strings should be enclosed by quotes when shown in an inspector. |
int |
getTreeWidth()
Returns the the width of the tree view |
int |
getWindowHeight()
Returns the initial width for a window |
int |
getWindowWidth()
Returns the initial width for a window |
protected void |
initAllowModify(java.lang.String option)
|
protected void |
initAutoSort(java.lang.String option)
|
protected void |
initDoubleClickAction(java.lang.String option)
|
protected void |
initialize()
|
protected void |
initialize(java.util.Properties config)
|
protected void |
initInitialElementFilter(java.util.Properties config)
|
protected void |
initMiddleButtonAction(java.lang.String option)
|
protected void |
initQuoteStrings(java.lang.String option)
|
protected void |
initTreeWidth(java.lang.String option)
|
protected void |
initWindowHeight(java.lang.String option)
|
protected void |
initWindowWidth(java.lang.String option)
|
static Preferences |
instance()
Returns the only instance this class supports (design pattern "Singleton") |
boolean |
isAutoSortOn()
Returns true if automatic sorting of elements is desired |
boolean |
isEditingSupported()
Returns true if editing og object values is supported |
protected int |
positiveInt(java.lang.String str)
|
protected void |
setAutoSort(boolean newValue)
|
protected void |
setDoubleClickMode(int newValue)
|
protected void |
setInitialElementFilter(ElementFilter newValue)
|
protected void |
setIsEditingSupported(boolean newValue)
|
protected void |
setMiddleButtonMode(int newValue)
|
protected void |
setQuoteStrings(boolean newValue)
|
protected void |
setTreeWidth(int newValue)
|
protected void |
setWindowHeight(int newValue)
|
protected void |
setWindowWidth(int newValue)
|
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 CONFIG_FILENAME
protected static final java.lang.String DEFAULT_CONFIG_FILENAME
protected static final int DEFAULT_MAIN_MARGIN
protected static final int DEFAULT_WINDOW_WIDTH
protected static final int DEFAULT_WINDOW_HEIGHT
protected static final int DEFAULT_TREE_WIDTH
protected static final int DEFAULT_DOUBLE_CLICK_MODE
protected static final int DEFAULT_MIDDLE_BUTTON_MODE
protected static final boolean DEFAULT_AUTO_SORT
protected static final boolean DEFAULT_ALLOW_MODIFY
protected static final java.lang.String OPT_DOUBLE_CLICK_ACTION
protected static final java.lang.String OPT_MIDDLE_BUTTON
protected static final java.lang.String OPT_WINDOW_WIDTH
protected static final java.lang.String OPT_WINDOW_HEIGHT
protected static final java.lang.String OPT_TREE_WIDTH
protected static final java.lang.String OPT_AUTO_SORT
protected static final java.lang.String OPT_ALLOW_MODIFY
protected static final java.lang.String OPT_QUOTE_STRINGS
protected static final java.lang.String OPT_STATIC_DEFAULT
protected static final java.lang.String OPT_FINAL_DEFAULT
protected static final java.lang.String OPT_TRANSIENT_DEFAULT
protected static final java.lang.String OPT_PUBLIC_DEFAULT
protected static final java.lang.String OPT_PRIVATE_DEFAULT
protected static final java.lang.String OPT_PROTECTED_DEFAULT
protected static final java.lang.String OPT_PACKAGE_DEFAULT
protected static final java.lang.String DOUBLE_CLICK_OPEN_WINDOW
protected static final java.lang.String DOUBLE_CLICK_OPEN_TAB
protected static final java.lang.String DOUBLE_CLICK_REPLACE
Method Detail |
---|
protected void setDoubleClickMode(int newValue)
protected void setMiddleButtonMode(int newValue)
protected void setWindowWidth(int newValue)
protected void setWindowHeight(int newValue)
protected void setTreeWidth(int newValue)
protected boolean getAutoSort()
protected void setAutoSort(boolean newValue)
protected void setIsEditingSupported(boolean newValue)
protected void setQuoteStrings(boolean newValue)
protected void setInitialElementFilter(ElementFilter newValue)
public static Preferences instance()
public int getWindowWidth()
public int getWindowHeight()
public int getMainMargin()
public int getTreeWidth()
public int getDoubleClickMode()
public int getMiddleButtonMode()
public boolean isAutoSortOn()
public boolean isEditingSupported()
public boolean getQuoteStrings()
public ElementFilter getInitialElementFilter()
protected void initialize()
protected void initialize(java.util.Properties config)
protected void initDoubleClickAction(java.lang.String option)
protected void initMiddleButtonAction(java.lang.String option)
protected void initWindowWidth(java.lang.String option)
protected void initWindowHeight(java.lang.String option)
protected void initTreeWidth(java.lang.String option)
protected void initAutoSort(java.lang.String option)
protected void initAllowModify(java.lang.String option)
protected void initQuoteStrings(java.lang.String option)
protected int positiveInt(java.lang.String str)
protected int detectOpenAction(java.lang.String option)
protected void initInitialElementFilter(java.util.Properties config)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |