public abstract class DialogBase
extends java.lang.Object
implements XTypeProvider, XServiceInfo, XServiceName, XExecutableDialog, XDialogEventHandler
This class provides an abstract uno component which implements a dialog
from an xml description (using the DialogProvider2 service)
callHandlerMethod
public boolean callHandlerMethod(XDialog xDialog,
Object event,
String sMethod)
execute
public short execute()
finalize
protected abstract void finalize()
Finalize the dialog after execution (eg. save settings to the registry)
The subclass must implement this
getCheckBoxState
protected short getCheckBoxState(String sControlName)
getCheckBoxStateAsBoolean
protected boolean getCheckBoxStateAsBoolean(String sControlName)
getComboBoxText
protected String getComboBoxText(String sControlName)
getDialogLibraryName
public abstract String getDialogLibraryName()
Return the name of the library containing the dialog
The subclass must override this to provide the name of the library
getDialogName
public abstract String getDialogName()
Return the name of the dialog within the library
The subclass must override this to provide the name of the dialog
getFormattedFieldText
protected String getFormattedFieldText(String sControlName)
getImplementationId
public byte[] getImplementationId()
getImplementationName
public String getImplementationName()
getListBoxLineCount
protected short getListBoxLineCount(String sControlName)
getListBoxSelectedItem
protected short getListBoxSelectedItem(String sControlName)
getListBoxStringItemList
protected String[] getListBoxStringItemList(String sControlName)
getNumericFieldValue
protected int getNumericFieldValue(String sControlName)
getPropertyValue
protected Object getPropertyValue(XPropertySet xProps,
String sName)
getPropertyValueAsBoolean
protected boolean getPropertyValueAsBoolean(XPropertySet xProps,
String sName)
getPropertyValueAsInteger
protected int getPropertyValueAsInteger(XPropertySet xProps,
String sName)
getPropertyValueAsShort
protected short getPropertyValueAsShort(XPropertySet xProps,
String sName)
getPropertyValueAsString
protected String getPropertyValueAsString(XPropertySet xProps,
String sName)
getServiceName
public String getServiceName()
getSupportedMethodNames
public String[] getSupportedMethodNames()
getSupportedServiceNames
public String[] getSupportedServiceNames()
getTextFieldText
protected String getTextFieldText(String sControlName)
getTypes
public Type[] getTypes()
initialize
protected abstract void initialize()
Initialize the dialog (eg. with settings from the registry)
The subclass must implement this
setCheckBoxState
protected void setCheckBoxState(String sControlName,
short nState)
setCheckBoxStateAsBoolean
protected void setCheckBoxStateAsBoolean(String sControlName,
boolean bChecked)
setComboBoxText
protected void setComboBoxText(String sControlName,
String sText)
setControlEnabled
protected void setControlEnabled(String sControlName,
boolean bEnabled)
setFormattedFieldText
protected void setFormattedFieldText(String sControlName,
String sText)
setListBoxLineCount
protected void setListBoxLineCount(String sControlName,
short nLineCount)
setListBoxSelectedItem
protected void setListBoxSelectedItem(String sControlName,
short nIndex)
setListBoxStringItemList
protected void setListBoxStringItemList(String sControlName,
String[] items)
setNumericFieldValue
protected void setNumericFieldValue(String sControlName,
int nValue)
setPropertyValue
protected void setPropertyValue(XPropertySet xProps,
String sName,
Object value)
setPropertyValue
protected void setPropertyValue(XPropertySet xProps,
String sName,
boolean bValue)
setPropertyValue
protected void setPropertyValue(XPropertySet xProps,
String sName,
int nValue)
setPropertyValue
protected void setPropertyValue(XPropertySet xProps,
String sName,
short nValue)
setTextFieldText
protected void setTextFieldText(String sControlName,
String sText)
setTitle
public void setTitle(String sTitle)
supportsService
public boolean supportsService(String sServiceName)