Package com.hybris.cockpitng.adminmode
Class FilterByAttributeUI
- java.lang.Object
-
- com.hybris.cockpitng.adminmode.FilterByAttributeUI
-
- All Implemented Interfaces:
SearchCriteriaModelObserver
public final class FilterByAttributeUI extends java.lang.Object implements SearchCriteriaModelObserver
Class responsible for displaying given context attribute filter
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringATTRIB_VAL_WIDTHprotected static java.lang.StringCSS_DISABLED_LISTBOX
-
Constructor Summary
Constructors Constructor Description FilterByAttributeUI(java.lang.String attributeName, SearchCriteriaModel searchCriteriaModel, DefaultCockpitConfigurationService cockpitConfigurationService, org.zkoss.zk.ui.Component parent)FilterByAttributeUI(java.lang.String attributeName, SearchCriteriaModel searchCriteriaModel, DefaultCockpitConfigurationService cockpitConfigurationService, org.zkoss.zk.ui.Component parent, boolean disabled)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidappendSelectedElement(org.zkoss.zul.Hlayout selectedAttribute, java.lang.String selectedValue)voidcollapse()protected booleancouldSearchByParent()protected voidcreateAvailableAttributeList()protected voidcreateFilterAttribureValuesTxt()protected voidcreateFindParentSection()protected voidcreateLabel()voidcreateListenerOnFilterByParent()voidcreateListenerOnFilterValuesByName()voidcreateListenerOnListSelection()protected voidcreateMainLayout()protected voidcreateSelectedAttributeValueContainer()voidexpand()protected java.util.List<java.lang.String>filterByParentAttribute(java.util.List<java.lang.String> values)protected java.util.List<java.lang.String>filterByValueName(java.util.List<java.lang.String> values)protected voidhandleNewValueForAttribute(java.lang.String selectedValue)voidnotifyChanged(java.lang.String changedAttribute)protected voidreactOnSelectionChange(boolean selected)voidrender()protected voidupdateListModel()
-
-
-
Field Detail
-
ATTRIB_VAL_WIDTH
protected static final java.lang.String ATTRIB_VAL_WIDTH
- See Also:
- Constant Field Values
-
CSS_DISABLED_LISTBOX
protected static final java.lang.String CSS_DISABLED_LISTBOX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FilterByAttributeUI
public FilterByAttributeUI(java.lang.String attributeName, SearchCriteriaModel searchCriteriaModel, DefaultCockpitConfigurationService cockpitConfigurationService, org.zkoss.zk.ui.Component parent)
-
FilterByAttributeUI
public FilterByAttributeUI(java.lang.String attributeName, SearchCriteriaModel searchCriteriaModel, DefaultCockpitConfigurationService cockpitConfigurationService, org.zkoss.zk.ui.Component parent, boolean disabled)
-
-
Method Detail
-
render
public void render()
-
createMainLayout
protected void createMainLayout()
-
createLabel
protected void createLabel()
-
createSelectedAttributeValueContainer
protected void createSelectedAttributeValueContainer()
-
createFilterAttribureValuesTxt
protected void createFilterAttribureValuesTxt()
-
createAvailableAttributeList
protected void createAvailableAttributeList()
-
createFindParentSection
protected void createFindParentSection()
-
createListenerOnListSelection
public void createListenerOnListSelection()
-
handleNewValueForAttribute
protected void handleNewValueForAttribute(java.lang.String selectedValue)
-
createListenerOnFilterValuesByName
public void createListenerOnFilterValuesByName()
-
createListenerOnFilterByParent
public void createListenerOnFilterByParent()
-
appendSelectedElement
protected void appendSelectedElement(org.zkoss.zul.Hlayout selectedAttribute, java.lang.String selectedValue)
-
reactOnSelectionChange
protected void reactOnSelectionChange(boolean selected)
-
updateListModel
protected void updateListModel()
-
filterByParentAttribute
protected java.util.List<java.lang.String> filterByParentAttribute(java.util.List<java.lang.String> values)
-
filterByValueName
protected java.util.List<java.lang.String> filterByValueName(java.util.List<java.lang.String> values)
-
notifyChanged
public void notifyChanged(java.lang.String changedAttribute)
- Specified by:
notifyChangedin interfaceSearchCriteriaModelObserver
-
couldSearchByParent
protected boolean couldSearchByParent()
-
collapse
public void collapse()
-
expand
public void expand()
-
-