public static interface IPluginUI.IGeneratePageContext
Modifier and Type | Method and Description |
---|---|
boolean |
forRegistration()
Returns a boolean value indicating whether the HTML GUI being generated is intended for the
registration of the plug-in (true) or for the configuration of a new instance (false).
|
java.lang.String |
generateUrl(java.lang.String pageId,
java.lang.String[] names,
java.lang.Object[] values)
Generates a URL that may be used by the plug-in to specify a URL referring to (a particular page
within) the plug-in's UI.
|
ISettings |
getClassSettings()
This method returns the class settings of the plug-in.
|
java.lang.String |
getCurrentPageId()
Retrieves the identifier of the current page being processed.
|
java.lang.String |
getIdPrefix()
Returns the prefix for the IDs of the HTML <input> tags or other form elements.
|
java.lang.Object |
getProperty(java.lang.String key)
Returns a property for the specified key.
|
ISettings |
getSettings()
Returns the current settings of the plug-in.
|
java.io.Serializable |
getState()
Retrieves the plug-in's state.
|
java.lang.String |
getStringParameter(java.lang.String name)
Gets the value of a parameter that was specified when the page is being displayed using a URL
obtained through
generateUrl(String, String[], Object[]) . |
java.io.Writer |
getWriter()
Returns the
writer object to be used when generating the HTML GUI. |
boolean |
isEditMode()
Returns a boolean value indicating whether the HTML GUI is being generated for the plug-in's edit mode
(true) or create mode (false)
|
void |
setCancelPageId(java.lang.String pageId)
Specifies the page ID of the plug-in page that should be shown if the user cancels the wizard on
the current page.
|
void |
setNavigationPreferences(boolean hasPreviousPage,
boolean hasNextPage)
Tells the hosting platform whether the plug-in requires navigation buttons to point to a previous or
next page among the pages defined for this plug-in.
|
void |
setState(java.io.Serializable o)
Stores the plug-in's state.
|
ISettings getSettings()
forRegistration()
is true then it returns the class settings(settings given at the time
of registration of the plug-in).forRegistration()
is false then it returns the merged class & instance settings where
the instance settings dominate the class settings.ISettings
instance containing the plug-in's current settings.
ISettings getClassSettings()
forRegistration()
is true then it is the same as calling getSettings()
.
Both of these methods return the same value -> the class settings(settings at the time of
registration of the plug-in).forRegistration()
is false then it strictly returns the class settings of this
plug-in instance which were configured during the registration of the plug-in.ISettings
instance containing the plug-in's class settings.
boolean forRegistration()
java.lang.Object getProperty(java.lang.String key)
boolean isEditMode()
java.lang.String getIdPrefix()
java.io.Writer getWriter()
writer
object to be used when generating the HTML GUI.void setState(java.io.Serializable o) throws java.lang.Exception
o
- The Serializable
instance to be stored
java.lang.Exception
java.io.Serializable getState()
java.lang.String getCurrentPageId()
IPluginUI.IProvideMetadataContext.addPage(String, String)
.java.lang.String getStringParameter(java.lang.String name)
generateUrl(String, String[], Object[])
.java.lang.String generateUrl(java.lang.String pageId, java.lang.String[] names, java.lang.Object[] values)
getStringParameter(String)
.pageId
- The pageId of the plug-in page to be displayed or null for the first pagenames
- Parameter names that should be included in the URL being generated; must match the
number of values provided in the values parametervalues
- Parameter values that should be included in the URL being generated; must match the
number of names provided in the names parametervoid setCancelPageId(java.lang.String pageId)
pageId
- The pageId of the cancel page
void setNavigationPreferences(boolean hasPreviousPage, boolean hasNextPage)
false
(which is the default), then the
hosting platform may choose to display the buttons 'Ok' and 'Cancel', if possible. false
, then the hosting platform may choose to
display the default navigation buttons with the 'Previous' or 'Next' button disabled.hasPreviousPage
- true if the plug-in requires 'previous' button to point to another
page defined for this plug-inhasNextPage
- true if the plug-in requires 'next' button to point to another
page defined for this plug-in