Package com.saperion.ngc.iform.image
Class FormEditableImage
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Window
-
- com.saperion.ngc.iform.image.FormEditableImage
-
- All Implemented Interfaces:
EventChild,IntelligentField,Localized,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.IdSpace,org.zkoss.zk.ui.sys.ComponentCtrl,org.zkoss.zul.ext.Framable
public class FormEditableImage extends org.zkoss.zul.Window implements IntelligentField
- Author:
- rbo
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.zkoss.zk.ui.HtmlBasedComponent
org.zkoss.zk.ui.HtmlBasedComponent.ExtraCtrl
-
Nested classes/interfaces inherited from class org.zkoss.zk.ui.AbstractComponent
org.zkoss.zk.ui.AbstractComponent.Children
-
Nested classes/interfaces inherited from interface com.saperion.ngc.iform.field.IntelligentField
IntelligentField.ElementType
-
-
Field Summary
-
Fields inherited from interface org.zkoss.zk.ui.Component
APPLICATION_SCOPE, COMPONENT_SCOPE, DESKTOP_SCOPE, PAGE_SCOPE, REQUEST_SCOPE, SESSION_SCOPE, SPACE_SCOPE
-
Fields inherited from interface org.zkoss.zk.ui.sys.ComponentCtrl
AFTER_CHILD_ADDED, AFTER_CHILD_REMOVED, AFTER_PAGE_ATTACHED, AFTER_PAGE_DETACHED, CE_BUSY_IGNORE, CE_DUPLICATE_IGNORE, CE_IMPORTANT, CE_NON_DEFERRABLE, CE_REPEAT_IGNORE
-
Fields inherited from interface com.saperion.ngc.events.EventChild
ALL_EVENTS, ON_ADD_LINK, ON_ADD_LOOKUP, ON_ADD_TO_FAVORITES, ON_AFTER_QUERY, ON_BUTTON, ON_BUTTON_QUERY, ON_CANCEL, ON_CANCEL_AND, ON_CANCEL_EDIT, ON_CHANGE_DOCUMENT_SECURITY, ON_CHANGE_FOLDER_SECURITY, ON_CLEAR, ON_DELETE_SELECTED, ON_DISPLAY_POPUP, ON_DISPLAY_RESULTITEM, ON_DISPLAY_TEMPORARY_DOCUMENT, ON_DOCUMENT_ADDED, ON_DOCUMENT_CHECK, ON_DOCUMENT_FILING, ON_DOCUMENT_LOCKED, ON_DOCUMENT_PROLONG_RETENTION, ON_DOCUMENT_REDUCE_DISPOSITION, ON_DOCUMENT_RELEASE, ON_DOWNLOAD_RESULTITEM, ON_EDIT_CONTENT, ON_EDIT_FOLDER, ON_EDIT_ITEM, ON_EDIT_ITEM_SELECTED, ON_EDIT_LOOKUP, ON_EDIT_SELECTED, ON_EDIT_STRUCTURE, ON_EXPORT, ON_EXTERNAL_STORAGE_UPLOAD, ON_EXTERNAL_STORAGE_UPLOAD_STATUS, ON_FAST_ACCESS_DRAG_OVER, ON_FIELD_CHANGE, ON_FILE_ACTION, ON_FILE_PREVIEW, ON_FILE_SEARCH, ON_FORM_CREATED, ON_FORM_RENDER_ERROR, ON_FORWARD, ON_IGNORE, ON_INDEX, ON_INDEX_CLEAR, ON_INDEX_RESULTITEM, ON_ITEM_DOUBLECLICK, ON_LAUNCH_WORKFLOW, ON_LOG, ON_LOGON, ON_MACRO, ON_NAVIGATION, ON_NAVIGATION_FOLDER, ON_NAVIGATION_FORM, ON_NAVIGATION_WEBPART, ON_NEW_ITEM, ON_NEW_SELECTED, ON_OK, ON_ONEDRIVE_LOGIN, ON_OPEN_INDEX_MASK, ON_OPEN_MASK, ON_OPEN_QUERY_MASK, ON_PASSWORD_EXPIRED, ON_PRINT_DOCUMENTS, ON_QUERY, ON_QUERY_FAVORITE, ON_REFRESH, ON_REFRESH_FOLDER, ON_RESET_GUI, ON_REVISION_CREATED, ON_SAVE_AND, ON_SAVE_DOC, ON_SAVE_FOLDER, ON_SCROLL_NODE, ON_SELECT_TREE_ITEM, ON_SELECTDDC, ON_SEND_MAIL_RESULTITEM, ON_SET_LITIGATION_HOLD, ON_SHAREBASE_DOCUMENT_CHECK, ON_SHAREBASE_LOGIN, ON_START_WORKFLOW, ON_TAB_SELECTED, ON_UNDELETE_SELECTED, ON_UPLOAD_DOCUMENT, ON_UPLOAD_EXTERNAL_STORAGE_DOCUMENT, ON_UPLOAD_SUCCESS, ON_VARIABLES_AVAILABLE, ON_WF, ON_WF_COMMENT_DIALOG_CANCEL, ON_WF_COMMENT_DIALOG_OK, ON_WFCOMMENTS, ON_WFDELEGATE, ON_WFFORWARD, ON_WFFORWARD1, ON_WFFORWARD2, ON_WFFORWARD3, ON_WFFORWARD4, ON_WFFORWARD5, ON_WFHISTORY, ON_WFPUTBACK, ON_WFREMINDER, ON_WFTAKE, ON_WORKFLOW_ACTION, ON_WORKFLOW_COMMENT, ON_WORKFLOW_DISPLAY_COMMENT
-
-
Constructor Summary
Constructors Constructor Description FormEditableImage()Constructor.FormEditableImage(com.saperion.ngc.iform.xml.ThumbnailType node, com.saperion.ngc.iform.xml.PosType panePos)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()This method is not supported by FormEditabledImage and has no effect.voidclearErrorMessage()Removes the validation error message if present.voiddoChangeValue(org.zkoss.zk.ui.event.Event event)java.util.List<com.saperion.bean.ContentStream>getContent()com.saperion.ngc.iform.xml.EditFieldTypegetEditField()Returns the EditFieldType defining the properties of this field.IntelligentField.ElementTypegetElementType()Returns the type of this element.java.util.Set<org.zkoss.zk.ui.Component>getEventtarget(java.lang.String eventName)Reads the event target for the given event name, if set or the root element.java.lang.StringgetFieldName()Returns the name of the field.java.lang.StringgetLimit()Returns the limit of this field (upper, lower or both).IntelligentFormViewgetParentForm()Returns the parent form or null if this field is not part of a form.com.saperion.intf.SaPropertyValuegetPropertyValue()Returns the current value of the field asSaPropertyValue.FieldResultBeangetResultBean()Returns a bean containing the current value, type, name and limit of this field.intgetSelectedImage()intgetTabindex()booleanisChanged()Returns true if the value of this field was changed.booleanisContentValid()Performs a validation and returns true, if the content is valid.booleanisEmpty()booleanisFieldInactive()Returns the fieldInactive parameter.booleanisNoLocalize()Returns the noLocalize parameter.booleanisReadonly()gets the readonly state of this field.voidonCancelEdit(org.zkoss.zk.ui.event.Event event)Event handler for cancel edit event.voidonIndexChange(org.zkoss.zk.ui.event.Event event)Event handler for index changes.voidonIndexClear(org.zkoss.zk.ui.event.Event event)Event handler for index clear.voidonUpload(org.zkoss.zk.ui.event.Event event)Listener for upload-events.voidonVariablesAvailable(org.zkoss.zk.ui.event.Event event)Event handler for variablesAvailableEvent.voidsetChangedImplicitly()Sets the changed-property of this field to true.voidsetChangedImplicitly(boolean fireChangedEvent)Sets the changed-property of this field to true.voidsetDefaultValue(java.lang.String valueAsString)Sets the default value.voidsetDisabled(boolean disabled)Sets the disabled state of this field.voidsetEventOnOk(ButtonInfo.EventType type)Starts event handling on enter key.voidsetEventtarget(org.zkoss.zk.ui.Component comp, java.lang.String eventName)Set the event target.voidsetFieldInactive(boolean inactive)Sets the fieldInactive parameter.voidsetFieldName(java.lang.String name)Sets the name of the field.voidsetLimit(java.lang.String limit)Sets the limit type.voidsetNoLocalize(boolean noLocalize)Sets the noLocalize parameter that can be used to disable localization of this component.voidsetReadonly(boolean readonly)Sets the readonle state of this field.voidsetTabindex(int index)This method is not supported by FormEditableImage and has no effect.voidsetValue(com.saperion.intf.SaPropertyValue value)Sets the value of this field.voidsetValueImplicitly(com.saperion.intf.SaPropertyValue val)Sets the value of this field and sets the changed-property of this field to true.voidsetValueImplicitly(com.saperion.intf.SaPropertyValue value, boolean fireChangedEvent)Sets the value of this field and sets the changed-property of this field to true.voidshowImageById(DocumentId documentId)Shows the thumbnail associated to the specified document.voidupdateAttribute(java.lang.String attr, java.lang.Object value)Performs a smartUpdate on the specified attribute.voidvalidate()Starts validation of the field.-
Methods inherited from class org.zkoss.zul.Window
beforeChildAdded, clone, doEmbedded, doHighlighted, doModal, doOverlapped, doPopup, getBorder, getCaption, getContentSclass, getContentStyle, getDefaultActionOnShow, getMinheight, getMinwidth, getMode, getModeType, getPosition, getTitle, getZclass, inEmbedded, inHighlighted, inModal, inOverlapped, inPopup, insertBefore, isClosable, isCollapsible, isMaximizable, isMaximized, isMinimizable, isMinimized, isShadow, isSizable, onChildRemoved, onClose, onModal, onPageDetached, renderProperties, service, setBorder, setBorder, setClosable, setContentSclass, setContentStyle, setDefaultActionOnShow, setDraggable, setMaximizable, setMaximized, setMinheight, setMinimizable, setMinimized, setMinwidth, setMode, setMode, setMode, setPosition, setShadow, setSizable, setTitle, setTopmost, setVisible
-
Methods inherited from class org.zkoss.zul.impl.XulElement
getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
-
Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent
addSclass, focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, setWidth, setWidth0, setWidthDirectly, setZclass, setZindex, setZIndex, setZIndexDirectly
-
Methods inherited from class org.zkoss.zk.ui.AbstractComponent
addAnnotation, addAnnotation, addCallback, addClientEvent, addEventHandler, addEventListener, addEventListener, addForward, addForward, addForward, addForward, addMoved, addRedrawCallback, addScopeListener, addShadowRoot, addShadowRootBefore, addSharedEventHandlerMap, appendChild, applyProperties, beforeChildRemoved, beforeParentChanged, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, getAnnotatedProperties, getAnnotatedPropertiesBy, getAnnotation, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getAttribute, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getCallback, getChildren, getClientAttribute, getClientDataAttribute, getClientEvents, getDefaultMold, getDefinition, getDesktop, getEventHandler, getEventHandlerNames, getEventListenerMap, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRedrawCallback, getRoot, getShadowFellowIfAny, getShadowRoots, getShadowVariable, getShadowVariable, getShadowVariable0, getSpaceOwner, getSpecialRendererOutput, getStubonly, getSubBindingAnnotationCount, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttribute, hasAttributeOrFellow, hasBindingAnnotation, hasFellow, hasFellow, hasSubBindingAnnotation, invalidate, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onPageAttached, onWrongValue, query, queryAll, redraw, redrawChildren, removeAttribute, removeAttribute, removeAttribute, removeCallback, removeChild, removeEventListener, removeForward, removeForward, removeRedrawCallback, removeScopeListener, removeShadowRoot, render, render, render, replace, response, response, response, service, sessionDidActivate, sessionWillPassivate, setAttribute, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setDefinition, setDefinition, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setSubBindingAnnotationCount, setTemplate, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.zkoss.zk.ui.Component
addEventListener, addEventListener, addForward, addForward, addForward, addForward, appendChild, applyProperties, clone, detach, getAttribute, getAttribute, getAttributeOrFellow, getAttributes, getAttributes, getAuService, getAutag, getChildren, getClientAttribute, getClientDataAttribute, getDefinition, getDesktop, getEventListeners, getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, getFirstChild, getId, getLastChild, getListenerIterator, getMold, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, getShadowVariable, getShadowVariable, getSpaceOwner, getStubonly, getTemplate, getTemplateNames, getUuid, getWidgetAttribute, getWidgetAttributeNames, getWidgetClass, getWidgetListener, getWidgetListenerNames, getWidgetOverride, getWidgetOverrideNames, hasAttribute, hasAttribute, hasAttributeOrFellow, hasFellow, hasFellow, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, query, queryAll, removeAttribute, removeAttribute, removeChild, removeEventListener, removeForward, removeForward, setAttribute, setAttribute, setAuService, setAutag, setClientAttribute, setClientDataAttribute, setId, setMold, setPage, setPageBefore, setParent, setStubonly, setStubonly, setTemplate, setVisible, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride
-
Methods inherited from interface org.zkoss.zk.ui.IdSpace
getFellow, getFellow, getFellowIfAny, getFellowIfAny, getFellows, hasFellow, hasFellow
-
Methods inherited from interface com.saperion.ngc.iform.field.IntelligentField
attachClientScripts, attachScripts, attachServerScripts, detachScripts, focus
-
-
-
-
Constructor Detail
-
FormEditableImage
public FormEditableImage()
Constructor.
-
FormEditableImage
public FormEditableImage(com.saperion.ngc.iform.xml.ThumbnailType node, com.saperion.ngc.iform.xml.PosType panePos) throws NgcUiExceptionConstructor.- Parameters:
node- Definition nodepanePos- Pane position- Throws:
NgcUiException- UI exception
-
-
Method Detail
-
setEventtarget
public void setEventtarget(org.zkoss.zk.ui.Component comp, java.lang.String eventName)Set the event target.- Specified by:
setEventtargetin interfaceEventChild- Parameters:
comp- Event targeteventName- Event name or null for main target- See Also:
EventChild.setEventtarget(org.zkoss.zk.ui.Component, java.lang.String)
-
getEventtarget
public java.util.Set<org.zkoss.zk.ui.Component> getEventtarget(java.lang.String eventName)
Reads the event target for the given event name, if set or the root element.- Specified by:
getEventtargetin interfaceEventChild- Parameters:
eventName- Event name or null for main target- Returns:
- Set of event targets
- See Also:
EventChild.getEventtarget(java.lang.String)
-
doChangeValue
public void doChangeValue(org.zkoss.zk.ui.event.Event event)
- Specified by:
doChangeValuein interfaceIntelligentField- Parameters:
event- Event- See Also:
IntelligentField.doChangeValue(org.zkoss.zk.ui.event.Event)
-
getElementType
public IntelligentField.ElementType getElementType()
Returns the type of this element. The type defines the kind of data and control used for this IntelligentField. SeeIntelligentField.ElementTypefor a list of types.- Specified by:
getElementTypein interfaceIntelligentField- Returns:
- Element type
- See Also:
IntelligentField.getElementType()
-
getResultBean
public FieldResultBean getResultBean()
Returns a bean containing the current value, type, name and limit of this field.- Specified by:
getResultBeanin interfaceIntelligentField- Returns:
- Result bean
- See Also:
IntelligentField.getResultBean()
-
onIndexChange
public void onIndexChange(org.zkoss.zk.ui.event.Event event)
Event handler for index changes.- Specified by:
onIndexChangein interfaceIntelligentField- Parameters:
event- Event- See Also:
IntelligentField.onIndexChange(org.zkoss.zk.ui.event.Event)
-
onVariablesAvailable
public void onVariablesAvailable(org.zkoss.zk.ui.event.Event event)
Event handler for variablesAvailableEvent. The event-object sent does not contain data. To retrieve variables, useIntelligentFormView.getIndexMaskDocument().- Specified by:
onVariablesAvailablein interfaceIntelligentField- Parameters:
event- Event- See Also:
IntelligentField.onVariablesAvailable(org.zkoss.zk.ui.event.Event)
-
onCancelEdit
public void onCancelEdit(org.zkoss.zk.ui.event.Event event)
Event handler for cancel edit event.- Specified by:
onCancelEditin interfaceIntelligentField- Parameters:
event- event- See Also:
IntelligentField.onCancelEdit(org.zkoss.zk.ui.event.Event)
-
setValue
public void setValue(com.saperion.intf.SaPropertyValue value)
Sets the value of this field.- Specified by:
setValuein interfaceIntelligentField- Parameters:
value- value- See Also:
IntelligentField.setValue(com.saperion.intf.SaPropertyValue)
-
getPropertyValue
public com.saperion.intf.SaPropertyValue getPropertyValue()
Description copied from interface:IntelligentFieldReturns the current value of the field asSaPropertyValue.- Specified by:
getPropertyValuein interfaceIntelligentField- Returns:
- the field's current value
-
setValueImplicitly
public void setValueImplicitly(com.saperion.intf.SaPropertyValue val)
Sets the value of this field and sets the changed-property of this field to true.- Specified by:
setValueImplicitlyin interfaceIntelligentField- Parameters:
val- value- See Also:
IntelligentField.setValueImplicitly(com.saperion.intf.SaPropertyValue)
-
setValueImplicitly
public void setValueImplicitly(com.saperion.intf.SaPropertyValue value, boolean fireChangedEvent)Sets the value of this field and sets the changed-property of this field to true.- Specified by:
setValueImplicitlyin interfaceIntelligentField- Parameters:
value- valuefireChangedEvent- if true, aEvents.ON_CHANGEevent will be fired after the value was set- See Also:
IntelligentField.setValueImplicitly(com.saperion.intf.SaPropertyValue, boolean)
-
setChangedImplicitly
public void setChangedImplicitly()
Sets the changed-property of this field to true.- Specified by:
setChangedImplicitlyin interfaceIntelligentField- See Also:
IntelligentField.setChangedImplicitly()
-
setChangedImplicitly
public void setChangedImplicitly(boolean fireChangedEvent)
Sets the changed-property of this field to true.- Specified by:
setChangedImplicitlyin interfaceIntelligentField- Parameters:
fireChangedEvent- if true, aEvents.ON_CHANGEevent will be fired- See Also:
IntelligentField.setChangedImplicitly(boolean)
-
onIndexClear
public void onIndexClear(org.zkoss.zk.ui.event.Event event)
Event handler for index clear.- Specified by:
onIndexClearin interfaceIntelligentField- Parameters:
event- Event- See Also:
IntelligentField.onIndexClear(org.zkoss.zk.ui.event.Event)
-
setEventOnOk
public void setEventOnOk(ButtonInfo.EventType type)
Starts event handling on enter key.- Specified by:
setEventOnOkin interfaceIntelligentField- Parameters:
type- Event type- See Also:
IntelligentField.setEventOnOk(com.saperion.ngc.iform.button.ButtonInfo.EventType)
-
isChanged
public boolean isChanged()
Returns true if the value of this field was changed.- Specified by:
isChangedin interfaceIntelligentField- Returns:
- Value is changed.
- See Also:
IntelligentField.isChanged()
-
onUpload
public void onUpload(org.zkoss.zk.ui.event.Event event)
Listener for upload-events.- Parameters:
event- Upload event
-
setDisabled
public void setDisabled(boolean disabled)
Sets the disabled state of this field.- Specified by:
setDisabledin interfaceIntelligentField- Parameters:
disabled- Disabled- See Also:
IntelligentField.setDisabled(boolean)
-
isContentValid
public boolean isContentValid()
Performs a validation and returns true, if the content is valid.- Specified by:
isContentValidin interfaceIntelligentField- Returns:
- Field content is valid.
- See Also:
IntelligentField.isContentValid()
-
getFieldName
public java.lang.String getFieldName()
Returns the name of the field.- Specified by:
getFieldNamein interfaceIntelligentField- Returns:
- Field name
- See Also:
IntelligentField.getFieldName()
-
getLimit
public java.lang.String getLimit()
Returns the limit of this field (upper, lower or both).- Specified by:
getLimitin interfaceIntelligentField- Returns:
- limit
- See Also:
IntelligentField.getLimit()
-
setLimit
public void setLimit(java.lang.String limit)
Sets the limit type. Possible values are: 'lower', 'upper', 'both'.- Specified by:
setLimitin interfaceIntelligentField- Parameters:
limit- Limit type- See Also:
IntelligentField.setLimit(java.lang.String)
-
getEditField
public com.saperion.ngc.iform.xml.EditFieldType getEditField()
Returns the EditFieldType defining the properties of this field.- Specified by:
getEditFieldin interfaceIntelligentField- Returns:
- the edit field
- See Also:
IntelligentField.getEditField()
-
setDefaultValue
public void setDefaultValue(java.lang.String valueAsString)
Sets the default value.- Specified by:
setDefaultValuein interfaceIntelligentField- Parameters:
valueAsString- string representation of value- See Also:
IntelligentField.setDefaultValue(java.lang.String)
-
setFieldInactive
public void setFieldInactive(boolean inactive)
Sets the fieldInactive parameter. Same assetReadonly(inactive).- Specified by:
setFieldInactivein interfaceIntelligentField- Parameters:
inactive- value- See Also:
IntelligentField.setFieldInactive(boolean)
-
isFieldInactive
public boolean isFieldInactive()
Returns the fieldInactive parameter.- Specified by:
isFieldInactivein interfaceIntelligentField- Returns:
- fieldInactive
- See Also:
IntelligentField.isFieldInactive()
-
setFieldName
public void setFieldName(java.lang.String name)
Sets the name of the field. The name is required to be the same as in the database table representing the DDC used.- Specified by:
setFieldNamein interfaceIntelligentField- Parameters:
name- field name- See Also:
IntelligentField.setFieldName(java.lang.String)
-
validate
public void validate()
Starts validation of the field.- Specified by:
validatein interfaceIntelligentField- See Also:
IntelligentField.validate()
-
clearErrorMessage
public void clearErrorMessage()
Removes the validation error message if present.- Specified by:
clearErrorMessagein interfaceIntelligentField- See Also:
IntelligentField.clearErrorMessage()
-
getParentForm
public IntelligentFormView getParentForm()
Returns the parent form or null if this field is not part of a form.- Specified by:
getParentFormin interfaceIntelligentField- Returns:
- parent form or null
- See Also:
IntelligentField.getParentForm()
-
updateAttribute
public void updateAttribute(java.lang.String attr, java.lang.Object value)Performs a smartUpdate on the specified attribute.- Specified by:
updateAttributein interfaceIntelligentField- Parameters:
attr- attribute namevalue- attribute value- See Also:
IntelligentField.updateAttribute(java.lang.String, java.lang.Object)
-
getSelectedImage
public int getSelectedImage()
- Returns:
- Selected image
-
getContent
public java.util.List<com.saperion.bean.ContentStream> getContent()
- Returns:
- Content list
-
showImageById
public void showImageById(DocumentId documentId)
Shows the thumbnail associated to the specified document.- Parameters:
documentId- document's id
-
setReadonly
public void setReadonly(boolean readonly)
Sets the readonle state of this field.- Specified by:
setReadonlyin interfaceIntelligentField- Parameters:
readonly- readonly- See Also:
IntelligentField.setReadonly(boolean)
-
isReadonly
public boolean isReadonly()
gets the readonly state of this field.- Specified by:
isReadonlyin interfaceIntelligentField- See Also:
InputElement.setReadonly(boolean)
-
isNoLocalize
public boolean isNoLocalize()
Description copied from interface:LocalizedReturns the noLocalize parameter.- Specified by:
isNoLocalizein interfaceLocalized- Returns:
- noLocalize
-
setNoLocalize
public void setNoLocalize(boolean noLocalize)
Description copied from interface:LocalizedSets the noLocalize parameter that can be used to disable localization of this component.- Specified by:
setNoLocalizein interfaceLocalized- Parameters:
noLocalize- value
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceIntelligentField- Returns:
- true if the field's value is empty.
- See Also:
IntelligentField.isEmpty()
-
setTabindex
public void setTabindex(int index)
This method is not supported by FormEditableImage and has no effect.- Specified by:
setTabindexin interfaceIntelligentField- Overrides:
setTabindexin classorg.zkoss.zk.ui.HtmlBasedComponent- Parameters:
index- tab index- See Also:
IntelligentField.setTabindex(int)
-
getTabindex
public int getTabindex()
- Specified by:
getTabindexin interfaceIntelligentField- Overrides:
getTabindexin classorg.zkoss.zk.ui.HtmlBasedComponent- Returns:
- the tabindex of this field.
-
clear
public void clear()
This method is not supported by FormEditabledImage and has no effect.- Specified by:
clearin interfaceIntelligentField- See Also:
IntelligentField.clear()
-
-