|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openoffice.da.comp.w2lcommon.helper.DialogBase
public abstract class DialogBase
This class provides an abstract uno component which implements a dialog from an xml description (using the DialogProvider2 service)
Field Summary | |
---|---|
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 static short |
CHECKBOX_CHECKED
|
protected static short |
CHECKBOX_DONT_KNOW
|
protected static short |
CHECKBOX_NOT_CHECKED
|
protected com.sun.star.uno.XComponentContext |
xContext
|
Fields inherited from interface com.sun.star.lang.XTypeProvider |
---|
UNOTYPEINFO |
Fields inherited from interface com.sun.star.lang.XServiceInfo |
---|
UNOTYPEINFO |
Fields inherited from interface com.sun.star.lang.XServiceName |
---|
UNOTYPEINFO |
Fields inherited from interface com.sun.star.ui.dialogs.XExecutableDialog |
---|
UNOTYPEINFO |
Fields inherited from interface com.sun.star.awt.XDialogEventHandler |
---|
UNOTYPEINFO |
Constructor Summary | |
---|---|
DialogBase(com.sun.star.uno.XComponentContext xContext)
Create a new OptionsDialogBase |
Method Summary | |
---|---|
boolean |
callHandlerMethod(com.sun.star.awt.XDialog xDialog,
java.lang.Object event,
java.lang.String sMethod)
|
short |
execute()
|
protected abstract void |
finalize()
Finalize the dialog after execution (eg. save settings to the registry) The subclass must implement this |
protected short |
getCheckBoxState(java.lang.String sControlName)
|
protected boolean |
getCheckBoxStateAsBoolean(java.lang.String sControlName)
|
protected java.lang.String |
getComboBoxText(java.lang.String sControlName)
|
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 |
protected java.lang.String |
getFormattedFieldText(java.lang.String sControlName)
|
byte[] |
getImplementationId()
|
java.lang.String |
getImplementationName()
|
protected short |
getListBoxLineCount(java.lang.String sControlName)
|
protected short |
getListBoxSelectedItem(java.lang.String sControlName)
|
protected java.lang.String[] |
getListBoxStringItemList(java.lang.String sControlName)
|
protected int |
getNumericFieldValue(java.lang.String sControlName)
|
protected java.lang.Object |
getPropertyValue(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName)
|
protected boolean |
getPropertyValueAsBoolean(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName)
|
protected int |
getPropertyValueAsInteger(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName)
|
protected short |
getPropertyValueAsShort(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName)
|
protected java.lang.String |
getPropertyValueAsString(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName)
|
java.lang.String |
getServiceName()
|
java.lang.String[] |
getSupportedMethodNames()
|
java.lang.String[] |
getSupportedServiceNames()
|
protected java.lang.String |
getTextFieldText(java.lang.String sControlName)
|
com.sun.star.uno.Type[] |
getTypes()
|
protected abstract void |
initialize()
Initialize the dialog (eg. with settings from the registry) The subclass must implement this |
protected void |
setCheckBoxState(java.lang.String sControlName,
short nState)
|
protected void |
setCheckBoxStateAsBoolean(java.lang.String sControlName,
boolean bChecked)
|
protected void |
setComboBoxText(java.lang.String sControlName,
java.lang.String sText)
|
protected void |
setControlEnabled(java.lang.String sControlName,
boolean bEnabled)
|
protected void |
setFormattedFieldText(java.lang.String sControlName,
java.lang.String sText)
|
protected void |
setListBoxLineCount(java.lang.String sControlName,
short nLineCount)
|
protected void |
setListBoxSelectedItem(java.lang.String sControlName,
short nIndex)
|
protected void |
setListBoxStringItemList(java.lang.String sControlName,
java.lang.String[] items)
|
protected void |
setNumericFieldValue(java.lang.String sControlName,
int nValue)
|
protected void |
setPropertyValue(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName,
boolean bValue)
|
protected void |
setPropertyValue(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName,
int nValue)
|
protected void |
setPropertyValue(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName,
java.lang.Object value)
|
protected void |
setPropertyValue(com.sun.star.beans.XPropertySet xProps,
java.lang.String sName,
short nValue)
|
protected void |
setTextFieldText(java.lang.String sControlName,
java.lang.String sText)
|
void |
setTitle(java.lang.String sTitle)
|
boolean |
supportsService(java.lang.String sServiceName)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String __serviceName
public static java.lang.String __implementationName
protected static final short CHECKBOX_NOT_CHECKED
protected static final short CHECKBOX_CHECKED
protected static final short CHECKBOX_DONT_KNOW
protected com.sun.star.uno.XComponentContext xContext
Constructor Detail |
---|
public DialogBase(com.sun.star.uno.XComponentContext xContext)
Method Detail |
---|
public abstract java.lang.String getDialogLibraryName()
public abstract java.lang.String getDialogName()
protected abstract void initialize()
protected abstract void finalize()
finalize
in class java.lang.Object
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
protected void setControlEnabled(java.lang.String sControlName, boolean bEnabled)
protected short getCheckBoxState(java.lang.String sControlName)
protected boolean getCheckBoxStateAsBoolean(java.lang.String sControlName)
protected void setCheckBoxState(java.lang.String sControlName, short nState)
protected void setCheckBoxStateAsBoolean(java.lang.String sControlName, boolean bChecked)
protected java.lang.String[] getListBoxStringItemList(java.lang.String sControlName)
protected void setListBoxStringItemList(java.lang.String sControlName, java.lang.String[] items)
protected short getListBoxSelectedItem(java.lang.String sControlName)
protected void setListBoxSelectedItem(java.lang.String sControlName, short nIndex)
protected short getListBoxLineCount(java.lang.String sControlName)
protected void setListBoxLineCount(java.lang.String sControlName, short nLineCount)
protected java.lang.String getComboBoxText(java.lang.String sControlName)
protected void setComboBoxText(java.lang.String sControlName, java.lang.String sText)
protected java.lang.String getTextFieldText(java.lang.String sControlName)
protected void setTextFieldText(java.lang.String sControlName, java.lang.String sText)
protected java.lang.String getFormattedFieldText(java.lang.String sControlName)
protected void setFormattedFieldText(java.lang.String sControlName, java.lang.String sText)
protected int getNumericFieldValue(java.lang.String sControlName)
protected void setNumericFieldValue(java.lang.String sControlName, int nValue)
protected java.lang.Object getPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, java.lang.Object value)
protected java.lang.String getPropertyValueAsString(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected int getPropertyValueAsInteger(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, int nValue)
protected short getPropertyValueAsShort(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, short nValue)
protected boolean getPropertyValueAsBoolean(com.sun.star.beans.XPropertySet xProps, java.lang.String sName)
protected void setPropertyValue(com.sun.star.beans.XPropertySet xProps, java.lang.String sName, boolean bValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |