Class DefaultMappingLineComponent

    • 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
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.zkoss.zul.Treecell actionsCell  
      protected MappingListViewComponent currentMappingListView  
      protected org.zkoss.zul.Treecell dropDownCell  
      static java.lang.String FORMAT_BUILDER_BEAN_ID  
      protected org.zkoss.zul.Listbox formatPatternsList  
      protected MappingLineModel mappingLineModel  
      protected org.zkoss.zul.Checkbox selectorBox  
      protected org.zkoss.zul.Treecell selectorCell  
      protected org.zkoss.zul.Treecell seperatorCell  
      protected org.zkoss.zul.Treecell sourceCell  
      protected org.zkoss.zul.Treecell typeCell  
      protected org.zkoss.zk.ui.HtmlBasedComponent valueBox  
      protected org.zkoss.zul.Treecell valueCell  
      • Fields inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        _zclass
      • 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void applyCockpitTestID​(org.zkoss.zk.ui.Component parentComponent)  
      protected java.lang.String assembleDisplayType()  
      protected org.zkoss.zk.ui.HtmlBasedComponent createBooleanValueBox​(MappingLineModel line2, UIEditor editor)  
      protected org.zkoss.zk.ui.HtmlBasedComponent createDateValueBox​(MappingLineModel line, UIEditor editor)  
      protected org.zkoss.zk.ui.HtmlBasedComponent createTextValueBox​(MappingLineModel line, UIEditor editor)  
      protected org.zkoss.zk.ui.HtmlBasedComponent createUnitEditorComponent​(TranslatorMappingLine line)  
      protected void createValueEditor​(MappingLineModel line, MappingListViewComponent mappingListView)  
      void desktopRemoved​(org.zkoss.zk.ui.Desktop desktop)  
      protected void fillFormatPatternsBox​(java.util.List<?> list)  
      protected java.lang.String generateLevelIndention​(int level)  
      protected java.util.List<org.zkoss.zk.ui.HtmlBasedComponent> getActions​(MappingListViewComponent mappingListView)  
      ClassificationService getClassificationService()  
      ClassificationSystemService getClassificationSystemService()  
      protected TypeService getCockpitTypeService()  
      protected java.lang.String getEditorCode​(MappingLineModel line)  
      protected MappingLineConfigService getMappingLineConfigService()  
      protected MappingLineService getMappingLineService()  
      protected ImportCockpitMappingService getMappingService()  
      MappingLineModel getModel()  
      ModelService getModelService()  
      protected TypeService getTypeService()  
      protected boolean hasDeleteAction()  
      void initialize​(MappingLineModel line, org.zkoss.zk.ui.Component parentComponent, MappingListViewComponent mappingListView)  
      protected void removeTargetSourceCell​(org.zkoss.zk.ui.Component targetComponent, org.zkoss.zul.Treecell cellToRemove, MappingListViewComponent mappingListView)  
      void setCockpitTypeService​(TypeService cockpitTypeService)  
      void setListView​(MappingListViewComponent mappingListView)  
      void setMappingLineConfigService​(MappingLineConfigService mappingLineConfigService)  
      void setMappingLineService​(MappingLineService mappingLineService)  
      void setMappingService​(ImportCockpitMappingService mappingService)  
      void setTypeService​(TypeService typeService)  
      void update​(java.lang.Object mappingListViewToUpdate)  
      protected void updateActions​(MappingListViewComponent mappingListView)  
      void updateCollapsed​(MappingListViewComponent mappingListView)  
      protected void updateSelector()  
      protected void updateSource​(MappingListViewComponent mappingListView)  
      protected void updateType()  
      protected void updateValue​(MappingListViewComponent mappingListView)  
      • Methods inherited from class org.zkoss.zul.Treerow

        beforeChildAdded, beforeParentChanged, getImage, getLabel, getLevel, getLinkedTreechildren, getTree, getZclass, setHflex, setImage, setLabel, setWidth, smartUpdate
      • Methods inherited from class org.zkoss.zul.impl.XulElement

        clone, getContext, getCtrlKeys, getPopup, getPropertyAccess, getTooltip, renderProperties, setContext, setContext, setContextAttributes, setCtrlKeys, setPopup, setPopup, setPopupAttributes, setTooltip, setTooltip, setTooltipAttributes
      • Methods inherited from class org.zkoss.zk.ui.HtmlBasedComponent

        focus, getAction, getDraggable, getDroppable, getExtraCtrl, getHeight, getHflex, getLeft, getRenderdefer, getSclass, getStyle, getTabindex, getTabindexInteger, getTooltiptext, getTop, getVflex, getWidth, getZindex, getZIndex, service, setAction, setClass, setDraggable, setDroppable, setFocus, setHeight, setHeight0, setHeightDirectly, setHflex0, setHflexDirectly, setLeft, setLeftDirectly, setRenderdefer, setSclass, setStyle, setTabindex, setTabindex, setTooltiptext, setTop, setTopDirectly, setVflex, setVflex0, setVflexDirectly, 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, detach, didActivate, didActivate, didDeserialize, didDeserialize, disableBindingAnnotation, disableClientUpdate, enableBindingAnnotation, equals, 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, isChildable, isInvalidated, isListenerAvailable, isVisible, onChildAdded, onChildRemoved, onPageAttached, onPageDetached, 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, setVisible, setVisibleDirectly, setWidgetAttribute, setWidgetClass, setWidgetListener, setWidgetOverride, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdate, smartUpdateWidgetListener, smartUpdateWidgetOverride, toString, updateByClient, updateSubBindingAnnotationCount, willPassivate, willPassivate, willSerialize, willSerialize
      • Methods inherited from class java.lang.Object

        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.api.HtmlBasedComponent

        focus, getHeight, getLeft, getSclass, getStyle, getTooltiptext, getTop, getWidth, getZclass, getZindex, getZIndex, setDraggable, setDroppable, setFocus, setHeight, setLeft, setSclass, setStyle, setTooltiptext, setTop, setWidth, setZclass, setZindex, setZIndex
      • Methods inherited from interface org.zkoss.zk.ui.ext.Scope

        addScopeListener, getAttribute, hasAttribute, removeAttribute, removeScopeListener, setAttribute
      • Methods inherited from interface org.zkoss.zul.api.Treerow

        getLevel, getLinkedTreechildrenApi, getTreeApi
      • Methods inherited from interface org.zkoss.zul.impl.api.XulElement

        getAction, getContext, getCtrlKeys, getPopup, getTooltip, setAction, setContext, setContext, setCtrlKeys, setPopup, setPopup, setTooltip, setTooltip
    • Field Detail

      • FORMAT_BUILDER_BEAN_ID

        public static final java.lang.String FORMAT_BUILDER_BEAN_ID
        See Also:
        Constant Field Values
      • dropDownCell

        protected transient org.zkoss.zul.Treecell dropDownCell
      • sourceCell

        protected transient org.zkoss.zul.Treecell sourceCell
      • valueCell

        protected transient org.zkoss.zul.Treecell valueCell
      • valueBox

        protected transient org.zkoss.zk.ui.HtmlBasedComponent valueBox
      • selectorCell

        protected transient org.zkoss.zul.Treecell selectorCell
      • selectorBox

        protected transient org.zkoss.zul.Checkbox selectorBox
      • typeCell

        protected transient org.zkoss.zul.Treecell typeCell
      • actionsCell

        protected transient org.zkoss.zul.Treecell actionsCell
      • seperatorCell

        protected transient org.zkoss.zul.Treecell seperatorCell
      • formatPatternsList

        protected transient org.zkoss.zul.Listbox formatPatternsList
    • Constructor Detail

      • DefaultMappingLineComponent

        public DefaultMappingLineComponent()
    • Method Detail

      • getCockpitTypeService

        protected TypeService getCockpitTypeService()
        Returns:
        the cockpitTypeService
      • setCockpitTypeService

        public void setCockpitTypeService​(TypeService cockpitTypeService)
        Parameters:
        cockpitTypeService - the cockpitTypeService to set
      • getTypeService

        protected TypeService getTypeService()
        Returns:
        the typeService
      • setTypeService

        public void setTypeService​(TypeService typeService)
        Parameters:
        typeService - the typeService to set
      • getMappingLineService

        protected MappingLineService getMappingLineService()
        Returns:
        the importMappingService
      • setMappingLineService

        public void setMappingLineService​(MappingLineService mappingLineService)
        Parameters:
        mappingLineService - the importMappingService to set
      • setMappingService

        public void setMappingService​(ImportCockpitMappingService mappingService)
        Parameters:
        mappingService - the mappingService to set
      • setMappingLineConfigService

        public void setMappingLineConfigService​(MappingLineConfigService mappingLineConfigService)
      • update

        public void update​(java.lang.Object mappingListViewToUpdate)
        Specified by:
        update in interface MappingLineObserver
      • getEditorCode

        protected java.lang.String getEditorCode​(MappingLineModel line)
      • createBooleanValueBox

        protected org.zkoss.zk.ui.HtmlBasedComponent createBooleanValueBox​(MappingLineModel line2,
                                                                           UIEditor editor)
        Parameters:
        line2 -
        editor -
        Returns:
        valueBox
      • createTextValueBox

        protected org.zkoss.zk.ui.HtmlBasedComponent createTextValueBox​(MappingLineModel line,
                                                                        UIEditor editor)
      • createDateValueBox

        protected org.zkoss.zk.ui.HtmlBasedComponent createDateValueBox​(MappingLineModel line,
                                                                        UIEditor editor)
      • updateSelector

        protected void updateSelector()
      • updateType

        protected void updateType()
      • assembleDisplayType

        protected java.lang.String assembleDisplayType()
        Returns:
        display name of a mappingLineModel
      • getActions

        protected java.util.List<org.zkoss.zk.ui.HtmlBasedComponent> getActions​(MappingListViewComponent mappingListView)
        Parameters:
        mappingListView -
      • hasDeleteAction

        protected boolean hasDeleteAction()
      • generateLevelIndention

        protected java.lang.String generateLevelIndention​(int level)
      • removeTargetSourceCell

        protected void removeTargetSourceCell​(org.zkoss.zk.ui.Component targetComponent,
                                              org.zkoss.zul.Treecell cellToRemove,
                                              MappingListViewComponent mappingListView)
      • fillFormatPatternsBox

        protected void fillFormatPatternsBox​(java.util.List<?> list)
      • applyCockpitTestID

        protected void applyCockpitTestID​(org.zkoss.zk.ui.Component parentComponent)
      • createUnitEditorComponent

        protected org.zkoss.zk.ui.HtmlBasedComponent createUnitEditorComponent​(TranslatorMappingLine line)