Class DefaultMappingLineComponent
- java.lang.Object
-
- org.zkoss.zk.ui.AbstractComponent
-
- org.zkoss.zk.ui.HtmlBasedComponent
-
- org.zkoss.zul.impl.XulElement
-
- org.zkoss.zul.Treerow
-
- de.hybris.platform.importcockpit.components.mappingview.impl.DefaultMappingLineComponent
-
- All Implemented Interfaces:
DesktopRemovalAwareComponent,MappingLineComponent,MappingLineObserver,java.io.Serializable,java.lang.Cloneable,org.zkoss.zk.ui.api.HtmlBasedComponent,org.zkoss.zk.ui.Component,org.zkoss.zk.ui.ext.Scope,org.zkoss.zk.ui.sys.ComponentCtrl,org.zkoss.zul.api.Treerow,org.zkoss.zul.impl.api.XulElement
- Direct Known Subclasses:
AttributeCollectionMappingLineComponent,CollectionMappingLineComponent,ComposedTypeMappingLineComponent,EnumTypeMappingLineComponent,LocalizedAtomicTypeMappingLineComponent,LocalizedTypeMappingLineComponent
public class DefaultMappingLineComponent extends org.zkoss.zul.Treerow implements MappingLineComponent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zul.TreecellactionsCellprotected MappingListViewComponentcurrentMappingListViewprotected org.zkoss.zul.TreecelldropDownCellstatic java.lang.StringFORMAT_BUILDER_BEAN_IDprotected org.zkoss.zul.ListboxformatPatternsListprotected MappingLineModelmappingLineModelprotected org.zkoss.zul.CheckboxselectorBoxprotected org.zkoss.zul.TreecellselectorCellprotected org.zkoss.zul.TreecellseperatorCellprotected org.zkoss.zul.TreecellsourceCellprotected org.zkoss.zul.TreecelltypeCellprotected org.zkoss.zk.ui.HtmlBasedComponentvalueBoxprotected org.zkoss.zul.TreecellvalueCell
-
Constructor Summary
Constructors Constructor Description DefaultMappingLineComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidapplyCockpitTestID(org.zkoss.zk.ui.Component parentComponent)protected java.lang.StringassembleDisplayType()protected org.zkoss.zk.ui.HtmlBasedComponentcreateBooleanValueBox(MappingLineModel line2, UIEditor editor)protected org.zkoss.zk.ui.HtmlBasedComponentcreateDateValueBox(MappingLineModel line, UIEditor editor)protected org.zkoss.zk.ui.HtmlBasedComponentcreateTextValueBox(MappingLineModel line, UIEditor editor)protected org.zkoss.zk.ui.HtmlBasedComponentcreateUnitEditorComponent(TranslatorMappingLine line)protected voidcreateValueEditor(MappingLineModel line, MappingListViewComponent mappingListView)voiddesktopRemoved(org.zkoss.zk.ui.Desktop desktop)protected voidfillFormatPatternsBox(java.util.List<?> list)protected java.lang.StringgenerateLevelIndention(int level)protected java.util.List<org.zkoss.zk.ui.HtmlBasedComponent>getActions(MappingListViewComponent mappingListView)ClassificationServicegetClassificationService()ClassificationSystemServicegetClassificationSystemService()protected TypeServicegetCockpitTypeService()protected java.lang.StringgetEditorCode(MappingLineModel line)protected MappingLineConfigServicegetMappingLineConfigService()protected MappingLineServicegetMappingLineService()protected ImportCockpitMappingServicegetMappingService()MappingLineModelgetModel()ModelServicegetModelService()protected TypeServicegetTypeService()protected booleanhasDeleteAction()voidinitialize(MappingLineModel line, org.zkoss.zk.ui.Component parentComponent, MappingListViewComponent mappingListView)protected voidremoveTargetSourceCell(org.zkoss.zk.ui.Component targetComponent, org.zkoss.zul.Treecell cellToRemove, MappingListViewComponent mappingListView)voidsetCockpitTypeService(TypeService cockpitTypeService)voidsetListView(MappingListViewComponent mappingListView)voidsetMappingLineConfigService(MappingLineConfigService mappingLineConfigService)voidsetMappingLineService(MappingLineService mappingLineService)voidsetMappingService(ImportCockpitMappingService mappingService)voidsetTypeService(TypeService typeService)voidupdate(java.lang.Object mappingListViewToUpdate)protected voidupdateActions(MappingListViewComponent mappingListView)voidupdateCollapsed(MappingListViewComponent mappingListView)protected voidupdateSelector()protected voidupdateSource(MappingListViewComponent mappingListView)protected voidupdateType()protected voidupdateValue(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
-
-
-
-
Field Detail
-
FORMAT_BUILDER_BEAN_ID
public static final java.lang.String FORMAT_BUILDER_BEAN_ID
- See Also:
- Constant Field Values
-
mappingLineModel
protected transient MappingLineModel mappingLineModel
-
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
-
currentMappingListView
protected transient MappingListViewComponent currentMappingListView
-
-
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
-
getMappingService
protected ImportCockpitMappingService getMappingService()
- Returns:
- the mappingService
-
setMappingService
public void setMappingService(ImportCockpitMappingService mappingService)
- Parameters:
mappingService- the mappingService to set
-
getMappingLineConfigService
protected MappingLineConfigService getMappingLineConfigService()
-
setMappingLineConfigService
public void setMappingLineConfigService(MappingLineConfigService mappingLineConfigService)
-
getModelService
public ModelService getModelService()
-
getClassificationService
public ClassificationService getClassificationService()
-
getClassificationSystemService
public ClassificationSystemService getClassificationSystemService()
-
initialize
public void initialize(MappingLineModel line, org.zkoss.zk.ui.Component parentComponent, MappingListViewComponent mappingListView)
- Specified by:
initializein interfaceMappingLineComponent
-
setListView
public void setListView(MappingListViewComponent mappingListView)
- Specified by:
setListViewin interfaceMappingLineComponent
-
updateCollapsed
public void updateCollapsed(MappingListViewComponent mappingListView)
- Specified by:
updateCollapsedin interfaceMappingLineComponent
-
update
public void update(java.lang.Object mappingListViewToUpdate)
- Specified by:
updatein interfaceMappingLineObserver
-
desktopRemoved
public void desktopRemoved(org.zkoss.zk.ui.Desktop desktop)
- Specified by:
desktopRemovedin interfaceDesktopRemovalAwareComponent
-
createValueEditor
protected void createValueEditor(MappingLineModel line, MappingListViewComponent mappingListView)
- Parameters:
mappingListView-
-
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)
-
updateSource
protected void updateSource(MappingListViewComponent mappingListView)
-
updateValue
protected void updateValue(MappingListViewComponent mappingListView)
-
updateSelector
protected void updateSelector()
-
updateType
protected void updateType()
-
assembleDisplayType
protected java.lang.String assembleDisplayType()
- Returns:
- display name of a mappingLineModel
-
updateActions
protected void updateActions(MappingListViewComponent mappingListView)
-
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)
-
getModel
public MappingLineModel getModel()
- Specified by:
getModelin interfaceMappingLineComponent
-
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)
-
-