Class MultiField

  • All Implemented Interfaces:
    EventChild, IntelligentField, Localized, Identifiable, java.io.Serializable, java.lang.Cloneable, org.zkoss.zk.ui.Component, org.zkoss.zk.ui.ext.Disable, org.zkoss.zk.ui.ext.Readonly, org.zkoss.zk.ui.ext.Scope, org.zkoss.zk.ui.sys.ComponentCtrl, org.zkoss.zul.ext.Constrainted

    public class MultiField
    extends org.zkoss.zul.Bandbox
    implements IntelligentField, Identifiable
    IntelligentField to display and edit multi-value-fields.
    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
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiField()  
      MultiField​(com.saperion.ngc.iform.xml.EditFieldType type, boolean editable, com.saperion.ngc.iform.xml.PosType panePos)
      Constructor.
      MultiField​(java.lang.String fieldValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears the value(s) of this field.
      void doChangeValue​(org.zkoss.zk.ui.event.Event event)
      java.lang.String generateUUID()  
      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.
      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 isDisabled()
      boolean isEmpty()
      boolean isFieldInactive()
      Returns the fieldInactive parameter.
      boolean isNoLocalize()
      Returns the noLocalize parameter.
      boolean isReadonly()
      gets the readonly state of this field.
      void onCancel​(org.zkoss.zk.ui.event.Event event)
      On cancel event handler.
      void onCancelEdit​(org.zkoss.zk.ui.event.Event event)
      Event handler for cancel edit event.
      void onChange​(org.zkoss.zk.ui.event.Event event)
      On change event handler.
      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 onOK​(org.zkoss.zk.ui.event.Event event)
      On OK event handler.
      void onOpen​(org.zkoss.zk.ui.event.Event event)
      On open event handler.
      void onPageAttached​(org.zkoss.zk.ui.Page newpage, org.zkoss.zk.ui.Page oldpage)
      void onPageDetached​(org.zkoss.zk.ui.Page page)
      void onVariablesAvailable​(org.zkoss.zk.ui.event.Event event)
      Event handler for variablesAvailableEvent.
      void postErrorLogEvent​(LogMessage msg)
      Posts an ErrorLogevent.
      void postFieldChangeEvent​(ResultProperty property)
      Posts a FieldChangeEvent.
      void postFormButtonEvent​(ButtonInfo info)
      Posts a FormButtonEvent.
      void postLogonEvent​(LogonEvent.LogonResult result, java.lang.String userName)
      Posts a LogonEvent.
      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 setHeight​(java.lang.String height)
      void setLimit​(java.lang.String limitType)
      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 setValue​(com.saperion.intf.SaPropertyValue val)
      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.
      java.lang.String toString()
      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.Bandbox

        beforeChildAdded, close, getDropdown, getIconSclass, getPopupWidth, getZclass, isAutodrop, isButtonVisible, isChildable, isOpen, open, renderProperties, service, setAutodrop, setButtonVisible, setIconSclass, setMultiline, setOpen, setPopupWidth, setRows
      • Methods inherited from class org.zkoss.zul.Textbox

        checkBeforeSetRows, clone, coerceFromString, coerceToString, getPropertyAccess, getRows, getType, getValue, isMultiline, isSubmitByEnter, isTabbable, setSubmitByEnter, setTabbable, setType, setValue, setVflex
      • Methods inherited from class org.zkoss.zul.impl.InputElement

        checkUserError, clearErrorMessage, clearErrorMessage, getCols, getConstraint, getErrorboxIconSclass, getErrorboxSclass, getErrorMessage, getInputAttributes, getInstant, getMaxlength, getName, getPlaceholder, getRawText, getRawValue, getTargetValue, getText, isInplace, isInstant, isValid, marshall, onWrongValue, select, setCols, setConstraint, setConstraint, setErrorboxIconSclass, setErrorboxSclass, setErrorMessage, setInplace, setInputAttributes, setInputAttributes, setInsertedText, setInstant, setMaxlength, setName, setPlaceholder, setRawValue, setSelectedText, setSelectionRange, setText, setValueDirectly, showCustomError, unmarshall, validate
      • Methods inherited from class org.zkoss.zul.impl.XulElement

        getContext, getCtrlKeys, getPopup, 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, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, removeSclass, removeSclass, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight0, setHeightDirectly, setHflex, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, 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, insertBefore, invalidate, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, 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, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, 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.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute