Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013

ch.elexis.preferences
Class UserSettings2

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.preference.PreferencePage
          extended by org.eclipse.jface.preference.FieldEditorPreferencePage
              extended by ch.elexis.preferences.UserSettings2
All Implemented Interfaces:
java.util.EventListener, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IWorkbenchPreferencePage

public class UserSettings2
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage


Field Summary
static java.lang.String ALWAYS_CLOSED
           
static java.lang.String ALWAYS_OPEN
           
static java.lang.String CLOSED
           
static java.lang.String EXPANDABLE_COMPOSITES
           
static java.lang.String EXPANDABLE_COMPOSITES_BASE
           
static java.lang.String OPEN
           
static java.lang.String REMEMBER_LAST_STATE
           
static java.lang.String REMEMBER_STATE
           
static java.lang.String STATES
           
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
UserSettings2()
           
 
Method Summary
protected  void createFieldEditors()
           
 void init(org.eclipse.ui.IWorkbench workbench)
           
 boolean performOk()
           
static void saveExpandedState(java.lang.String field, boolean state)
          save the state of an expandable composite
static void setExpandedState(org.eclipse.ui.forms.widgets.ExpandableComposite ec, java.lang.String field)
          Set the state of an expandable Composite to the previously saved state.
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

REMEMBER_LAST_STATE

public static final java.lang.String REMEMBER_LAST_STATE

ALWAYS_CLOSED

public static final java.lang.String ALWAYS_CLOSED

ALWAYS_OPEN

public static final java.lang.String ALWAYS_OPEN

EXPANDABLE_COMPOSITES_BASE

public static final java.lang.String EXPANDABLE_COMPOSITES_BASE
See Also:
Constant Field Values

EXPANDABLE_COMPOSITES

public static final java.lang.String EXPANDABLE_COMPOSITES
See Also:
Constant Field Values

STATES

public static final java.lang.String STATES
See Also:
Constant Field Values

OPEN

public static final java.lang.String OPEN
See Also:
Constant Field Values

CLOSED

public static final java.lang.String CLOSED
See Also:
Constant Field Values

REMEMBER_STATE

public static final java.lang.String REMEMBER_STATE
See Also:
Constant Field Values
Constructor Detail

UserSettings2

public UserSettings2()
Method Detail

createFieldEditors

protected void createFieldEditors()
Specified by:
createFieldEditors in class org.eclipse.jface.preference.FieldEditorPreferencePage

init

public void init(org.eclipse.ui.IWorkbench workbench)
Specified by:
init in interface org.eclipse.ui.IWorkbenchPreferencePage

performOk

public boolean performOk()
Specified by:
performOk in interface org.eclipse.jface.preference.IPreferencePage
Overrides:
performOk in class org.eclipse.jface.preference.FieldEditorPreferencePage

saveExpandedState

public static void saveExpandedState(java.lang.String field,
                                     boolean state)
save the state of an expandable composite

Parameters:
field - name of the composite (any unique string, preferably derived from view name)
state - the state to save

setExpandedState

public static void setExpandedState(org.eclipse.ui.forms.widgets.ExpandableComposite ec,
                                    java.lang.String field)
Set the state of an expandable Composite to the previously saved state.

Parameters:
ec - the expandable Composite to expand or collapse
field - the unique name

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc für Elexis version 2.1.7.dev vom 01.09.2013