Class 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.zul.Window

        org.zkoss.zul.Window.Mode
      • 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
    • 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
      void clear()
      This method is not supported by FormEditabledImage and has no effect.
      void clearErrorMessage()
      Removes the validation error message if present.
      void doChangeValue​(org.zkoss.zk.ui.event.Event event)
      java.util.List<com.saperion.bean.ContentStream> getContent()  
      com.saperion.ngc.iform.xml.EditFieldType getEditField()
      Returns the EditFieldType defining the properties of this field.
      IntelligentField.ElementType getElementType()
      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.String getFieldName()
      Returns the name of the field.
      java.lang.String getLimit()
      Returns the limit of this field (upper, lower or both).
      IntelligentFormView getParentForm()
      Returns the parent form or null if this field is not part of a form.
      com.saperion.intf.SaPropertyValue getPropertyValue()
      Returns the current value of the field as SaPropertyValue.
      FieldResultBean getResultBean()
      Returns a bean containing the current value, type, name and limit of this field.
      int getSelectedImage()  
      int getTabindex()  
      boolean isChanged()
      Returns true if the value of this field was changed.
      boolean isContentValid()
      Performs a validation and returns true, if the content is valid.
      boolean isEmpty()
      boolean isFieldInactive()
      Returns the fieldInactive parameter.
      boolean isNoLocalize()
      Returns the noLocalize parameter.
      boolean isReadonly()
      gets the readonly state of this field.
      void onCancelEdit​(org.zkoss.zk.ui.event.Event event)
      Event handler for cancel edit event.
      void onIndexChange​(org.zkoss.zk.ui.event.Event event)
      Event handler for index changes.
      void onIndexClear​(org.zkoss.zk.ui.event.Event event)
      Event handler for index clear.
      void onUpload​(org.zkoss.zk.ui.event.Event event)
      Listener for upload-events.
      void onVariablesAvailable​(org.zkoss.zk.ui.event.Event event)
      Event handler for variablesAvailableEvent.
      void setChangedImplicitly()
      Sets the changed-property of this field to true.
      void setChangedImplicitly​(boolean fireChangedEvent)
      Sets the changed-property of this field to true.
      void setDefaultValue​(java.lang.String valueAsString)
      Sets the default value.
      void setDisabled​(boolean disabled)
      Sets the disabled state of this field.
      void setEventOnOk​(ButtonInfo.EventType type)
      Starts event handling on enter key.
      void setEventtarget​(org.zkoss.zk.ui.Component comp, java.lang.String eventName)
      Set the event target.
      void setFieldInactive​(boolean inactive)
      Sets the fieldInactive parameter.
      void setFieldName​(java.lang.String name)
      Sets the name of the field.
      void setLimit​(java.lang.String limit)
      Sets the limit type.
      void setNoLocalize​(boolean noLocalize)
      Sets the noLocalize parameter that can be used to disable localization of this component.
      void setReadonly​(boolean readonly)
      Sets the readonle state of this field.
      void setTabindex​(int index)
      This method is not supported by FormEditableImage and has no effect.
      void setValue​(com.saperion.intf.SaPropertyValue value)
      Sets the value of this field.
      void setValueImplicitly​(com.saperion.intf.SaPropertyValue val)
      Sets the value of this field and sets the changed-property of this field to true.
      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.
      void showImageById​(DocumentId documentId)
      Shows the thumbnail associated to the specified document.
      void updateAttribute​(java.lang.String attr, java.lang.Object value)
      Performs a smartUpdate on the specified attribute.
      void validate()
      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 org.zkoss.zk.ui.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute