org.openoffice.da.comp.w2lcommon.filter

Class OptionsDialogBase

public abstract class OptionsDialogBase extends DialogBase implements XPropertyAccess

This class provides an abstract uno component which implements a filter ui
Field Summary
protected XMultiServiceFactoryxMSF
Constructor Summary
OptionsDialogBase(XComponentContext xContext)
Create a new OptionsDialogBase
Method Summary
voidfinalize()
Finalize the dialog after execution (eg. save settings to the registry)
abstract StringgetDialogLibraryName()
Return the name of the library containing the dialog
abstract StringgetDialogName()
Return the name of the dialog within the library
PropertyValue[]getPropertyValues()
abstract StringgetRegistryPath()
Return the path to the options in the registry
Type[]getTypes()
voidinitialize()
Initialize the dialog (eg. with settings from the registry)
protected booleanisLocked(String sOptionName)
protected booleanloadCheckBoxOption(XPropertySet xProps, String sName)
protected StringloadComboBoxOption(XPropertySet xProps, String sName)
protected voidloadConfig(XPropertySet xProps)
protected shortloadListBoxOption(XPropertySet xProps, String sName)
protected intloadNumericOption(XPropertySet xProps, String sName)
protected abstract voidloadSettings(XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement this
protected StringloadTextFieldOption(XPropertySet xProps, String sName)
protected booleansaveCheckBoxOption(XPropertySet xProps, String sName)
protected booleansaveCheckBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected StringsaveComboBoxOption(XPropertySet xProps, String sName)
protected StringsaveComboBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected shortsaveConfig(XPropertySet xProps, PropertyHelper filterData)
protected shortsaveListBoxOption(XPropertySet xProps, String sName)
protected shortsaveListBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues)
protected intsaveNumericOption(XPropertySet xProps, String sName)
protected intsaveNumericOptionAsPercentage(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
protected abstract voidsaveSettings(XPropertySet xRegistryProps, PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement this
protected StringsaveTextFieldOption(XPropertySet xProps, String sName)
protected StringsaveTextFieldOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)
voidsetPropertyValues(PropertyValue[] props)
protected voidupdateLockedOptions()

Field Detail

xMSF

protected XMultiServiceFactory xMSF

Constructor Detail

OptionsDialogBase

public OptionsDialogBase(XComponentContext xContext)
Create a new OptionsDialogBase

Method Detail

finalize

public void finalize()
Finalize the dialog after execution (eg. save settings to the registry)

getDialogLibraryName

public abstract String getDialogLibraryName()
Return the name of the library containing the dialog

getDialogName

public abstract String getDialogName()
Return the name of the dialog within the library

getPropertyValues

public PropertyValue[] getPropertyValues()

getRegistryPath

public abstract String getRegistryPath()
Return the path to the options in the registry

getTypes

public Type[] getTypes()

initialize

public void initialize()
Initialize the dialog (eg. with settings from the registry)

isLocked

protected boolean isLocked(String sOptionName)

loadCheckBoxOption

protected boolean loadCheckBoxOption(XPropertySet xProps, String sName)

loadComboBoxOption

protected String loadComboBoxOption(XPropertySet xProps, String sName)

loadConfig

protected void loadConfig(XPropertySet xProps)

loadListBoxOption

protected short loadListBoxOption(XPropertySet xProps, String sName)

loadNumericOption

protected int loadNumericOption(XPropertySet xProps, String sName)

loadSettings

protected abstract void loadSettings(XPropertySet xRegistryProps)
Load settings from the registry to the dialog The subclass must implement this

loadTextFieldOption

protected String loadTextFieldOption(XPropertySet xProps, String sName)

saveCheckBoxOption

protected boolean saveCheckBoxOption(XPropertySet xProps, String sName)

saveCheckBoxOption

protected boolean saveCheckBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)

saveComboBoxOption

protected String saveComboBoxOption(XPropertySet xProps, String sName)

saveComboBoxOption

protected String saveComboBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)

saveConfig

protected short saveConfig(XPropertySet xProps, PropertyHelper filterData)

saveListBoxOption

protected short saveListBoxOption(XPropertySet xProps, String sName)

saveListBoxOption

protected short saveListBoxOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName, String[] sValues)

saveNumericOption

protected int saveNumericOption(XPropertySet xProps, String sName)

saveNumericOptionAsPercentage

protected int saveNumericOptionAsPercentage(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)

saveSettings

protected abstract void saveSettings(XPropertySet xRegistryProps, PropertyHelper filterData)
Save settings from the dialog to the registry and create FilterData The subclass must implement this

saveTextFieldOption

protected String saveTextFieldOption(XPropertySet xProps, String sName)

saveTextFieldOption

protected String saveTextFieldOption(XPropertySet xProps, PropertyHelper filterData, String sName, String sOptionName)

setPropertyValues

public void setPropertyValues(PropertyValue[] props)

updateLockedOptions

protected void updateLockedOptions()