public abstract class DialogBase extends DialogAccess implements com.sun.star.lang.XTypeProvider, com.sun.star.lang.XServiceInfo, com.sun.star.lang.XServiceName, com.sun.star.ui.dialogs.XExecutableDialog, com.sun.star.awt.XDialogEventHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
__implementationName
The component should also have an implementation name.
|
static java.lang.String |
__serviceName
The component will be registered under this name.
|
protected com.sun.star.uno.XComponentContext |
xContext |
CHECKBOX_CHECKED, CHECKBOX_DONT_KNOW, CHECKBOX_NOT_CHECKED
Constructor and Description |
---|
DialogBase(com.sun.star.uno.XComponentContext xContext)
Create a new OptionsDialogBase
|
Modifier and Type | Method and Description |
---|---|
boolean |
callHandlerMethod(com.sun.star.awt.XDialog xDialog,
java.lang.Object event,
java.lang.String sMethod) |
protected abstract void |
endDialog()
End the dialog after execution (eg. save settings to the registry)
The subclass must implement this
|
short |
execute() |
abstract java.lang.String |
getDialogLibraryName()
Return the name of the library containing the dialog
The subclass must override this to provide the name of the library
|
abstract java.lang.String |
getDialogName()
Return the name of the dialog within the library
The subclass must override this to provide the name of the dialog
|
byte[] |
getImplementationId() |
java.lang.String |
getImplementationName() |
java.lang.String |
getServiceName() |
java.lang.String[] |
getSupportedMethodNames() |
java.lang.String[] |
getSupportedServiceNames() |
com.sun.star.uno.Type[] |
getTypes() |
protected abstract void |
initialize()
Initialize the dialog (eg. with settings from the registry)
The subclass must implement this
|
void |
setTitle(java.lang.String sTitle) |
boolean |
supportsService(java.lang.String sServiceName) |
getCheckBoxState, getCheckBoxStateAsBoolean, getComboBoxText, getControlEnabled, getControlProperties, getDateFieldValue, getDialog, getFormattedFieldText, getLabelText, getListBoxLineCount, getListBoxSelectedItem, getListBoxStringItemList, getNumericFieldValue, getTextFieldText, setCheckBoxState, setCheckBoxStateAsBoolean, setComboBoxText, setControlEnabled, setDateFieldValue, setDialog, setFormattedFieldText, setLabelText, setListBoxLineCount, setListBoxSelectedItem, setListBoxStringItemList, setNumericFieldValue, setTextFieldText
public static java.lang.String __serviceName
public static java.lang.String __implementationName
protected com.sun.star.uno.XComponentContext xContext
public DialogBase(com.sun.star.uno.XComponentContext xContext)
public abstract java.lang.String getDialogLibraryName()
public abstract java.lang.String getDialogName()
protected abstract void initialize()
protected abstract void endDialog()
public com.sun.star.uno.Type[] getTypes()
getTypes
in interface com.sun.star.lang.XTypeProvider
public byte[] getImplementationId()
getImplementationId
in interface com.sun.star.lang.XTypeProvider
public java.lang.String getServiceName()
getServiceName
in interface com.sun.star.lang.XServiceName
public boolean supportsService(java.lang.String sServiceName)
supportsService
in interface com.sun.star.lang.XServiceInfo
public java.lang.String getImplementationName()
getImplementationName
in interface com.sun.star.lang.XServiceInfo
public java.lang.String[] getSupportedServiceNames()
getSupportedServiceNames
in interface com.sun.star.lang.XServiceInfo
public void setTitle(java.lang.String sTitle)
setTitle
in interface com.sun.star.ui.dialogs.XExecutableDialog
public short execute()
execute
in interface com.sun.star.ui.dialogs.XExecutableDialog
public boolean callHandlerMethod(com.sun.star.awt.XDialog xDialog, java.lang.Object event, java.lang.String sMethod)
callHandlerMethod
in interface com.sun.star.awt.XDialogEventHandler
public java.lang.String[] getSupportedMethodNames()
getSupportedMethodNames
in interface com.sun.star.awt.XDialogEventHandler