public interface WizardEditorContext extends ItemEditorContext
WizardBusinessItem which allows access to all editor
fields and tabs.| Modifier and Type | Method and Description |
|---|---|
void |
disableButton(String buttonName)
Disables a specified button.
|
void |
enableButton(String buttonName)
Enables a specified button.
|
List |
getSelectedValues(String fieldName)
Returns all selected values of the specified attribute editor.
|
void |
hideButton(String buttonName)
Hides a specified button.
|
void |
hideField(String fieldName)
Marks an editor field as hidden.
|
void |
hideTab(String tabName)
Hides a specified tab.
|
void |
reloadAllFields()
Reloads all field data from the underlying wizard item.
|
void |
reloadField(String field)
Reloads the field data from the underlying wizard item.
|
void |
reloadFields(Collection fields)
Reloads a given set of field data from the underlying wizard item.
|
void |
setButtonLabel(String buttonName,
String buttonLabelKey)
Sets the label for the specified button, or rather the keys for which the appropriate localized string will be
looked up.
|
void |
setProcessingMode(boolean processing)
Switches process mode on and off.
|
void |
setRefreshInterval(int seconds)
Changes the refresh period.
|
void |
setSelectedValues(String fieldName,
List newSelectedValues)
Changes the currently selected values within the editor of a specified field.
|
void |
setStatus(String status,
int percentage,
boolean error)
Changes the status text which is shown during process mode.
|
void |
showButton(String buttonName)
Shows a specified button.
|
void |
showErrorMessage(String errorMessage)
Shows an error message containing the given message text.
|
void |
showErrorTab(String errorMessage)
Shows the error tab containing the given message text.
|
void |
showField(String fieldName)
Marks an editor field as visible.
|
void |
showInfoMessage(String infoMessage)
Shows an info message containing the given message text.
|
void |
showInfoTab(String infoMessage)
Shows the info tab containing the given message text.
|
void |
showSummaryTab(String summaryMessage)
Shows the summary tab containing the given message text.
|
void |
showTab(String tabName)
Shows a specified tab.
|
clearAllErrors, clearAllInfoMessages, clearError, close, getCurrentTab, getCurrentValue, getDescription, getEditorFields, getItemType, getPendingInfoMessages, isEditable, isOptional, nextTab, postInfoMessage, previousTab, removeInfoMessage, setCurrentTab, setCurrentValue, setDescription, setEditable, setInitialValue, setOptional, showErrorcanOpenWizard, expandNode, openItem, openType, openType, openTypeAndSearch, openWizard, openWizardvoid reloadAllFields()
void reloadField(String field)
field - the field to reloadvoid reloadFields(Collection fields)
List getSelectedValues(String fieldName) throws JaloInvalidParameterException
JaloInvalidParameterException - if either the editor does not own the field at all, or the editor does not support selection.void setSelectedValues(String fieldName, List newSelectedValues) throws JaloInvalidParameterException
fieldName - newSelectedValues - JaloInvalidParameterException - if either the editor does not own the field at all, the editor does not support selection or one of the
new selected values are currently not hold by the editor.void hideField(String fieldName) throws JaloInvalidParameterException
fieldName - JaloInvalidParameterException - if no field with the specified name existsvoid showField(String fieldName) throws JaloInvalidParameterException
fieldName - JaloInvalidParameterException - if no field with the specified name existsvoid hideTab(String tabName) throws JaloInvalidParameterException
tabName - JaloInvalidParameterException - if the tab is currently shown or no such tab exists.void showTab(String tabName)
ItemEditorContext.setCurrentTab(String) to activate it.tabName - JaloInvalidParameterException - if the tab is currently shown or no such tab exists.void hideButton(String buttonName)
WizardBusinessItem.BACK_BUTTON,
WizardBusinessItem.NEXT_BUTTON or WizardBusinessItem.CANCEL_BUTTON. Note: If a button with
the given name doesn't exist, nothing will happen.buttonName - void showButton(String buttonName)
WizardBusinessItem.BACK_BUTTON,
WizardBusinessItem.NEXT_BUTTON or WizardBusinessItem.CANCEL_BUTTON. enableButton(String). Note:
If a button with the given name doesn't exist, nothing will happen.buttonName - void enableButton(String buttonName)
WizardBusinessItem.BACK_BUTTON
, WizardBusinessItem.NEXT_BUTTON or WizardBusinessItem.CANCEL_BUTTON. disableButton(String) a button would be enabled by default.
Note: If a button with the given name doesn't exist, nothing will happen.buttonName - void disableButton(String buttonName)
WizardBusinessItem.BACK_BUTTON, WizardBusinessItem.NEXT_BUTTON or
WizardBusinessItem.CANCEL_BUTTON. buttonName - void setButtonLabel(String buttonName, String buttonLabelKey)
WizardBusinessItem.BACK_BUTTON,
WizardBusinessItem.NEXT_BUTTON or WizardBusinessItem.CANCEL_BUTTON. WizardBusinessItem.BACK_BUTTON_NAME,
WizardBusinessItem.NEXT_BUTTON_NAME and WizardBusinessItem.CANCEL_BUTTON_NAME (which contain
'wizard.footer.back', 'wizard.footer.next' and 'wizard.footer.cancel'). Note: If a button with the given
name doesn't exist, nothing will happen.buttonName - buttonLabelKey - void setRefreshInterval(int seconds)
WizardBusinessItem.pollStatus(WizardEditorContext) in process mode.seconds - void setProcessingMode(boolean processing)
WizardBusinessItem.pollStatus(WizardEditorContext).
If process mode is switched off, the last active tab is shown again.
processing - if true the wizard is showing and polling processing informationvoid setStatus(String status, int percentage, boolean error)
WizardBusinessItem.pollStatus(WizardEditorContext) to change the displayed status information.status - a status textpercentage - the completion level from [0, 100]error - void showInfoTab(String infoMessage)
infoMessage - void showErrorTab(String errorMessage)
errorMessage - void showSummaryTab(String summaryMessage)
summaryMessage - void showInfoMessage(String infoMessage)
infoMessage - void showErrorMessage(String errorMessage)
errorMessage - Copyright © 2017 SAP SE. All Rights Reserved.