protected class GenericItemChip.GenericItemEditorContext extends HMCHelper.DefaultHMCContext implements ItemEditorContext
| Modifier | Constructor and Description |
|---|---|
protected |
GenericItemEditorContext() |
| 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() |
protected AttributeChip |
getAttributeChip(String fieldName) |
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.
|
protected EditorTabChip |
getTabChip(String tabName) |
boolean |
isEditable(String fieldName)
Deprecated.
|
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)
Deprecated.
|
void |
setInitialValue(String fieldName,
Object value)
Changes the current editor value of the specified field.
|
void |
setOptional(String fieldName,
boolean optional)
Not yet implemented !
|
void |
showError(String fieldName,
String errorText)
Marks a editor field as erroneous with optional error text.
|
canOpenWizard, expandNode, findOrganizer, getChip, openItem, openOrganizer, openType, openType, openTypeAndSearch, openWizard, openWizardclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanOpenWizard, expandNode, openItem, openType, openType, openTypeAndSearch, openWizard, openWizardprotected AttributeChip getAttributeChip(String fieldName) throws JaloInvalidParameterException
JaloInvalidParameterExceptionprotected EditorTabChip getTabChip(String tabName) throws JaloInvalidParameterException
JaloInvalidParameterExceptionpublic void close()
close in interface ItemEditorContextpublic ComposedType getItemType()
getItemType in interface ItemEditorContextpublic Set getEditorFields()
getEditorFields in interface ItemEditorContextpublic Object getCurrentValue(String fieldName) throws JaloInvalidParameterException
getCurrentValue in interface ItemEditorContextfieldName - (case-insensitive)JaloInvalidParameterException - if no field existspublic void setCurrentValue(String fieldName, Object value) throws JaloInvalidParameterException
ItemEditorContextsetCurrentValue in interface ItemEditorContextfieldName - (case-insensitive)value - the new valueJaloInvalidParameterException - if no field existspublic void setInitialValue(String fieldName, Object value) throws JaloInvalidParameterException
ItemEditorContextsetInitialValue in interface ItemEditorContextfieldName - (case-insensitive)value - the new valueJaloInvalidParameterException - if no field existspublic String getCurrentTab()
getCurrentTab in interface ItemEditorContextpublic void nextTab()
ItemEditorContext hmc.tmpl .
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
nextTab in interface ItemEditorContextpublic void previousTab()
ItemEditorContext hmc.tmpl .
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
previousTab in interface ItemEditorContextpublic void setCurrentTab(String tabName) throws JaloInvalidParameterException
ItemEditorContext
Please note that WizardBusinessItem.tabChanges(WizardEditorContext, String, String) is triggered by this
method too.
setCurrentTab in interface ItemEditorContextJaloInvalidParameterException - if no such tab exists@Deprecated public void setEditable(String fieldName, boolean enabled) throws JaloInvalidParameterException
ItemEditorContextsetEditable in interface ItemEditorContextfieldName - the field nameenabled - if true the field will accept values, otherwise it is lockedJaloInvalidParameterException - if no such field exists@Deprecated public boolean isEditable(String fieldName) throws JaloInvalidParameterException
ItemEditorContextisEditable in interface ItemEditorContextfieldName - (case-insensitive)JaloInvalidParameterException - if no such field existspublic void setOptional(String fieldName, boolean optional) throws JaloInvalidParameterException
setOptional in interface ItemEditorContextfieldName - the field nameoptional - if false the field requires a valueJaloInvalidParameterException - if no such field existspublic boolean isOptional(String fieldName) throws JaloInvalidParameterException
ItemEditorContextisOptional in interface ItemEditorContextfieldName - the field nameJaloInvalidParameterException - if no such field existspublic void setDescription(String fieldName, String descr) throws JaloInvalidParameterException
ItemEditorContextsetDescription in interface ItemEditorContextfieldName - the field namedescr - the new descriptionJaloInvalidParameterException - if no such field existspublic String getDescription(String fieldName) throws JaloInvalidParameterException
ItemEditorContextgetDescription in interface ItemEditorContextfieldName - the field nameJaloInvalidParameterException - if no such field existspublic void showError(String fieldName, String errorText) throws JaloInvalidParameterException
ItemEditorContextshowError in interface ItemEditorContextJaloInvalidParameterException - if no field existspublic void clearError(String fieldName) throws JaloInvalidParameterException
ItemEditorContextclearError in interface ItemEditorContextJaloInvalidParameterExceptionpublic void clearAllErrors()
ItemEditorContextclearAllErrors in interface ItemEditorContextpublic void postInfoMessage(String msg)
ItemEditorContextpostInfoMessage in interface ItemEditorContextmsg - the message to showpublic List getPendingInfoMessages()
ItemEditorContextgetPendingInfoMessages in interface ItemEditorContextpublic void removeInfoMessage(int pos)
throws JaloInvalidParameterException
ItemEditorContextremoveInfoMessage in interface ItemEditorContextpos - the position of the message to remove from queueJaloInvalidParameterException - in case there is no message for the given positionpublic void clearAllInfoMessages()
ItemEditorContextclearAllInfoMessages in interface ItemEditorContextCopyright © 2017 SAP SE. All Rights Reserved.