public interface ItemEditorContext extends HMCContext
| Modifier and Type | Method and Description |
|---|---|
void |
clearAllErrors()
Resets error states of all fields to 'normal'.
|
void |
clearAllInfoMessages()
Removes all info messages from the message queue.
|
void |
clearError(String fieldName)
Resets the error state to 'normal'.
|
void |
close() |
String |
getCurrentTab() |
Object |
getCurrentValue(String fieldName) |
String |
getDescription(String fieldName)
Returns the current description of this field.
|
Set |
getEditorFields() |
ComposedType |
getItemType() |
List |
getPendingInfoMessages()
Returns all currently pending messages.
|
boolean |
isEditable(String fieldName)
Returns the editable state of the specified field.
|
boolean |
isOptional(String fieldName)
Returns the optional state of the specified field.
|
void |
nextTab()
Jumps to the next tab.
|
void |
postInfoMessage(String msg)
Posts an info message which is displayed as popoup.
|
void |
previousTab()
Jumps to the previous tab.
|
void |
removeInfoMessage(int pos)
Removes a single message from the current message queue.
|
void |
setCurrentTab(String tabName)
Jumps to a specified tab.
|
void |
setCurrentValue(String fieldName,
Object value)
Changes the current editor value of the specified field.
|
void |
setDescription(String fieldName,
String descr)
Changes the fields description.
|
void |
setEditable(String fieldName,
boolean enabled)
Changes the editable state of the specified field.
|
void |
setInitialValue(String fieldName,
Object value)
Changes the current editor value of the specified field.
|
void |
setOptional(String fieldName,
boolean optional)
Changes the optional state of the specified field.
|
void |
showError(String fieldName,
String errorText)
Marks a editor field as erroneous with optional error text.
|
canOpenWizard, expandNode, openItem, openType, openType, openTypeAndSearch, openWizard, openWizardComposedType getItemType()
Set getEditorFields()
Object getCurrentValue(String fieldName) throws JaloInvalidParameterException
fieldName - (case-insensitive)JaloInvalidParameterException - if no field existsvoid setCurrentValue(String fieldName, Object value) throws JaloInvalidParameterException
fieldName - (case-insensitive)value - the new valueJaloInvalidParameterException - if no field existsvoid setInitialValue(String fieldName, Object value) throws JaloInvalidParameterException
fieldName - (case-insensitive)value - the new valueJaloInvalidParameterException - if no field existsvoid setEditable(String fieldName, boolean enabled) throws JaloInvalidParameterException
fieldName - the field nameenabled - if true the field will accept values, otherwise it is lockedJaloInvalidParameterException - if no such field existsboolean isEditable(String fieldName) throws JaloInvalidParameterException
fieldName - (case-insensitive)JaloInvalidParameterException - if no such field existsvoid setOptional(String fieldName, boolean optional) throws JaloInvalidParameterException
fieldName - the field nameoptional - if false the field requires a valueJaloInvalidParameterException - if no such field existsboolean isOptional(String fieldName) throws JaloInvalidParameterException
fieldName - the field nameJaloInvalidParameterException - if no such field existsvoid setDescription(String fieldName, String descr) throws JaloInvalidParameterException
fieldName - the field namedescr - the new descriptionJaloInvalidParameterException - if no such field existsString getDescription(String fieldName) throws JaloInvalidParameterException
fieldName - the field nameJaloInvalidParameterException - if no such field existsvoid showError(String fieldName, String errorText) throws JaloInvalidParameterException
fieldName - errorText - JaloInvalidParameterException - if no field existsvoid clearError(String fieldName) throws JaloInvalidParameterException
fieldName - JaloInvalidParameterExceptionvoid clearAllErrors()
String getCurrentTab()
void nextTab()
hmc.tmpl .
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
void previousTab()
hmc.tmpl .
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
void setCurrentTab(String tabName) throws JaloInvalidParameterException
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
JaloInvalidParameterException - if no such tab existsvoid postInfoMessage(String msg)
msg - the message to showList getPendingInfoMessages()
void removeInfoMessage(int pos)
throws JaloInvalidParameterException
pos - the position of the message to remove from queueJaloInvalidParameterException - in case there is no message for the given positionvoid clearAllInfoMessages()
void close()
Copyright © 2017 SAP SE. All Rights Reserved.