|
Ontimize 5.2071EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.gui.preferences.AbstractApplicationPreferences
com.ontimize.gui.preferences.BasicApplicationPreferences
Basic implementation of the application preferences
| Field Summary | |
static java.lang.String |
ADJUST_TREE_SPACE
Name of the preference to adjust automatically the available space for the trees |
static boolean |
ADJUST_TREE_SPACE_VALUE
|
static java.lang.String |
APP_CONNECT_TO
|
static java.lang.String |
APP_FONTSIZE
Name of the preference to set the application font size |
static java.lang.String |
APP_LAST_LOGIN
Name of the preference to store the last login used in the application |
static java.lang.String |
APP_LAST_PASSWORD
|
static java.lang.String |
APP_LOCALE
|
static java.lang.String |
APP_REMEMBER_LAST_LOGIN
Name of the preference to remember or not the last login used |
static java.lang.String |
APP_REMEMBER_LAST_PASSWORD
|
static java.lang.String |
APP_STATUS_BAR_VISIBLE
Name of the preference to show/hide the application status bar |
static java.lang.String |
APP_TOOL_BAR_VISIBLE
Name of the preference to show/hide the application buttons bar |
static java.lang.String |
APP_TOOLBAR_LOCATION
|
static java.lang.String |
APP_USER_DIR
|
static java.lang.String |
APP_WINDOW_POSITION
Name of the preference to set the application window position |
static java.lang.String |
APP_WINDOW_SIZE
Name of the preference to set the application window size |
static java.lang.String |
APP_WINDOW_STATE
Name of the preference to set the application window state |
protected javax.swing.JLabel |
backgroundColorFieldLabel
|
protected java.lang.String |
basePath
|
protected javax.swing.JButton |
cancelButton
|
static boolean |
checkOldPreferences
|
static java.lang.String |
COLLAPSIBLE_PANEL_VISIBLE
|
protected javax.swing.JDialog |
colorDialog
|
static boolean |
DEBUG
|
static java.lang.String |
DETAIL_DIALOG_SIZE_POSITION
|
static java.lang.String |
DIALOG_SIZE_POSITION
|
boolean |
dirtyMode
|
protected javax.swing.JDialog |
dPreferences
|
protected java.lang.String |
file
|
static java.lang.String |
FOCUSED_FIELD_BG_COLOR
|
static java.lang.String |
FORM_TABLEVIEW_COLUMNS
|
protected static java.lang.String |
L_EVEN_COLOR_TABLE_ROW
|
protected static java.lang.String |
L_FOCUS_COLOR_FIELD
|
protected static java.lang.String |
L_REQUIRED_BACKGROUND_COLOR_FIELD
|
protected javax.swing.JLabel |
labelRequiredBackgroungColor
|
protected javax.swing.JLabel |
labelTableColor
|
protected boolean |
loadDeaults
|
static java.lang.String |
LOOK_AND_FEEL_CLASS_NAME
Name of the preference to store the application look and feel |
static java.lang.String |
MENU_ACCELERATOR
|
protected javax.swing.JButton |
okButton
|
protected javax.swing.JPanel |
panelFieldBackgroundColor
|
protected javax.swing.JPanel |
panelRequiredBackgroundColor
|
protected javax.swing.JPanel |
panelTableColor
|
static boolean |
remoteUserPreferences
|
static java.lang.String |
REQUIRED_FIELDS_BG_COLOR
Name of the preference to set the required fields background color |
protected javax.swing.JButton |
restoreButton
|
protected RemoteApplicationPreferences |
rprefs
|
static java.lang.String |
SHOW_TABLE_CONTROLS
Name of the preference to show/hide the table controls |
static java.lang.String |
SHOW_TABLE_NUM_ROW
Name of the preference to show/hide the column with the rows number in a table |
static java.lang.String |
SHOW_TIPS
|
static java.lang.String |
SPLIT_POSITION
|
protected static java.lang.String |
T_COLORS
|
static java.lang.String |
TABLE_CALCULATED_COLUMNS_CONFIGURATION
|
static java.lang.String |
TABLE_COLS_POSITION_SIZE
|
static java.lang.String |
TABLE_CONF_CHART_CONFIGURATIONS
|
static java.lang.String |
TABLE_CONF_PIVOT_TABLE_CONFIGURATIONS
|
static java.lang.String |
TABLE_CONF_REPORT_CONFIGURATIONS
|
static java.lang.String |
TABLE_CONF_SORT_FILTER
|
static java.lang.String |
TABLE_CONF_SORT_FILTER_CONFIGURATIONS
|
static java.lang.String |
TABLE_EVEN_ROWS_COLOR
Name of the preference to set the even table rows background color |
static java.lang.String |
TABLE_VISIBLE_COLS
|
| Fields inherited from class com.ontimize.gui.preferences.AbstractApplicationPreferences |
defaultUserProps, listeners, props, separator, userProps |
| Constructor Summary | |
BasicApplicationPreferences(java.lang.String file)
Creates new BasicApplicationPreferences object with the preferences stored in the file file. |
|
BasicApplicationPreferences(java.lang.String file,
RemoteApplicationPreferences rp)
Creates a BasicApplicationPreferences object with the preferences stored in the file file. |
|
BasicApplicationPreferences(java.lang.String file,
java.lang.String basePath)
Creates a BasicApplicationPreferences object with the preferences stored in the file file. |
|
BasicApplicationPreferences(java.lang.String file,
java.lang.String basePath,
RemoteApplicationPreferences rp)
Creates a BasicApplicationPreferences object with the preferences stored in the file file. |
|
| Method Summary | |
protected java.util.Properties |
checkOldPreferences(java.lang.String user)
This method extract the user preferences of old preferences file. |
protected void |
createColorDialog(java.awt.Window parent)
|
java.util.Properties |
getAllPreferences()
|
java.lang.String |
getBasePath()
|
protected java.lang.String |
getDefault(java.lang.String preferenceName)
Gets the default value for the specified preference |
java.lang.String |
getFile()
|
java.lang.String |
getPreference(java.lang.String user,
java.lang.String preferenceName)
Get the value of the preference with name preferenceName for
the user user |
RemoteApplicationPreferences |
getRemoteApplicationPreferences()
|
static java.util.Properties |
getUserLocalPreferences(java.lang.String user,
java.util.Properties properties)
|
java.util.Properties |
getUserPreferences()
|
boolean |
isDirtyMode()
|
protected void |
loadDefaults()
Initializes the default preference values |
void |
loadPreferences()
Load the preference values |
static java.lang.String |
parserPropertiesToStringBase64(java.util.Properties properties)
|
static java.util.Properties |
parserStringBase64ToProperties(java.lang.String properties)
|
void |
savePreferences()
Save the current preference values |
void |
setBasePath(java.lang.String basePath)
|
void |
setDirtyMode(boolean dirtyMode)
|
void |
setFile(java.lang.String file)
|
void |
setLoadDefaults(boolean value)
|
void |
setPreference(java.lang.String user,
java.lang.String preferenceName,
java.lang.String value)
Sets the value of the preference with name preferenceName for
the user user |
void |
setRemoteApplicationPreferences(RemoteApplicationPreferences rp)
|
protected void |
setResourceBundleColorChooser()
|
protected void |
setUserPreferences(java.util.Properties current)
|
void |
showColorChooserDialog(java.awt.Window parent)
|
void |
showPreferencesDialog(java.lang.String user,
java.lang.String gf,
java.lang.String form,
Application a)
Show a dialog to configure the user preferences |
| Methods inherited from class com.ontimize.gui.preferences.AbstractApplicationPreferences |
addApplicationPreferencesListener, fireApplicationPreferencesChanged, getKeyPreference, getProperties, removeApplicationPreferencesListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static boolean remoteUserPreferences
public static boolean checkOldPreferences
public boolean dirtyMode
public static boolean DEBUG
public static final java.lang.String APP_LOCALE
public static final java.lang.String APP_CONNECT_TO
public static final java.lang.String TABLE_EVEN_ROWS_COLOR
public static final java.lang.String TABLE_VISIBLE_COLS
public static final java.lang.String TABLE_CONF_SORT_FILTER
public static final java.lang.String TABLE_CONF_SORT_FILTER_CONFIGURATIONS
public static final java.lang.String TABLE_CONF_REPORT_CONFIGURATIONS
public static final java.lang.String TABLE_CONF_CHART_CONFIGURATIONS
public static final java.lang.String TABLE_COLS_POSITION_SIZE
public static final java.lang.String TABLE_CONF_PIVOT_TABLE_CONFIGURATIONS
public static final java.lang.String TABLE_CALCULATED_COLUMNS_CONFIGURATION
public static final java.lang.String REQUIRED_FIELDS_BG_COLOR
public static final java.lang.String FOCUSED_FIELD_BG_COLOR
public static final java.lang.String SHOW_TIPS
public static final java.lang.String SHOW_TABLE_CONTROLS
public static final java.lang.String SHOW_TABLE_NUM_ROW
public static final java.lang.String APP_WINDOW_POSITION
public static final java.lang.String APP_WINDOW_STATE
public static final java.lang.String APP_WINDOW_SIZE
public static final java.lang.String APP_STATUS_BAR_VISIBLE
public static final java.lang.String APP_TOOL_BAR_VISIBLE
public static final java.lang.String APP_FONTSIZE
public static final java.lang.String ADJUST_TREE_SPACE
public static boolean ADJUST_TREE_SPACE_VALUE
public static final java.lang.String APP_REMEMBER_LAST_LOGIN
public static final java.lang.String APP_LAST_LOGIN
public static final java.lang.String APP_REMEMBER_LAST_PASSWORD
public static final java.lang.String APP_LAST_PASSWORD
public static final java.lang.String APP_USER_DIR
public static final java.lang.String LOOK_AND_FEEL_CLASS_NAME
public static final java.lang.String SPLIT_POSITION
public static final java.lang.String COLLAPSIBLE_PANEL_VISIBLE
public static final java.lang.String DETAIL_DIALOG_SIZE_POSITION
public static final java.lang.String DIALOG_SIZE_POSITION
public static final java.lang.String APP_TOOLBAR_LOCATION
public static final java.lang.String MENU_ACCELERATOR
public static final java.lang.String FORM_TABLEVIEW_COLUMNS
protected javax.swing.JDialog dPreferences
protected java.lang.String file
protected java.lang.String basePath
protected javax.swing.JDialog colorDialog
protected javax.swing.JPanel panelTableColor
protected javax.swing.JPanel panelRequiredBackgroundColor
protected javax.swing.JPanel panelFieldBackgroundColor
protected static java.lang.String T_COLORS
protected static java.lang.String L_EVEN_COLOR_TABLE_ROW
protected static java.lang.String L_REQUIRED_BACKGROUND_COLOR_FIELD
protected static java.lang.String L_FOCUS_COLOR_FIELD
protected javax.swing.JLabel labelTableColor
protected javax.swing.JLabel labelRequiredBackgroungColor
protected javax.swing.JLabel backgroundColorFieldLabel
protected javax.swing.JButton okButton
protected javax.swing.JButton cancelButton
protected javax.swing.JButton restoreButton
protected RemoteApplicationPreferences rprefs
protected boolean loadDeaults
| Constructor Detail |
public BasicApplicationPreferences(java.lang.String file)
file.
file - Name of the file (without path) that contains the application
preferences. This file must be in the user directory
public BasicApplicationPreferences(java.lang.String file,
java.lang.String basePath)
file.
file - Name of the preferences filebasePath - Path where the file is
public BasicApplicationPreferences(java.lang.String file,
RemoteApplicationPreferences rp)
file.
file - Name of the file (without path). This file must be in the user
directoryrp - Remote preferences
public BasicApplicationPreferences(java.lang.String file,
java.lang.String basePath,
RemoteApplicationPreferences rp)
file.
file - Name of the filebasePath - Path where the file isrp - Remote preferences| Method Detail |
public java.lang.String getFile()
public void setFile(java.lang.String file)
public java.lang.String getBasePath()
public void setBasePath(java.lang.String basePath)
public void setLoadDefaults(boolean value)
public void loadPreferences()
ApplicationPreferences
protected void loadDefaults()
public java.lang.String getPreference(java.lang.String user,
java.lang.String preferenceName)
ApplicationPreferencespreferenceName for
the user user
user - Name of the user or null if the preference is for all userspreferenceName - Name of the preference
protected java.lang.String getDefault(java.lang.String preferenceName)
preferenceName -
public void setPreference(java.lang.String user,
java.lang.String preferenceName,
java.lang.String value)
ApplicationPreferencespreferenceName for
the user user
user - Name of the user or null if the preference is for all userspreferenceName - Name of the preferencevalue - The value for the preferencepublic void savePreferences()
ApplicationPreferences
public void showPreferencesDialog(java.lang.String user,
java.lang.String gf,
java.lang.String form,
Application a)
ApplicationPreferences
user - gf - form - a - public void showColorChooserDialog(java.awt.Window parent)
protected void setResourceBundleColorChooser()
protected void createColorDialog(java.awt.Window parent)
public void setRemoteApplicationPreferences(RemoteApplicationPreferences rp)
public RemoteApplicationPreferences getRemoteApplicationPreferences()
public static java.lang.String parserPropertiesToStringBase64(java.util.Properties properties)
public static java.util.Properties parserStringBase64ToProperties(java.lang.String properties)
public static java.util.Properties getUserLocalPreferences(java.lang.String user,
java.util.Properties properties)
public java.util.Properties getUserPreferences()
protected void setUserPreferences(java.util.Properties current)
protected java.util.Properties checkOldPreferences(java.lang.String user)
user -
public java.util.Properties getAllPreferences()
public boolean isDirtyMode()
public void setDirtyMode(boolean dirtyMode)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||