Package org.jboss.hal.core.finder
Class StaticItemColumn.StaticItemDisplay
- java.lang.Object
-
- org.jboss.hal.core.finder.StaticItemColumn.StaticItemDisplay
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>,HasTitle,ItemDisplay<StaticItem>
- Enclosing class:
- StaticItemColumn
public static class StaticItemColumn.StaticItemDisplay extends Object implements ItemDisplay<StaticItem>
-
-
Constructor Summary
Constructors Constructor Description StaticItemDisplay(StaticItem item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ItemAction<StaticItem>>actions()Defines the action(s) available for the item.elemental2.dom.HTMLElementelement()If this method returns an element !StringgetFilterData()The data which is used to filter items.StringgetId()An unique id for this item.StringgetTitle()StringnextColumn()Whether this item triggers a next column (hence is a folder not a leaf).-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.hal.core.finder.ItemDisplay
getIcon, getTooltip
-
-
-
-
Constructor Detail
-
StaticItemDisplay
public StaticItemDisplay(StaticItem item)
-
-
Method Detail
-
getId
public String getId()
Description copied from interface:ItemDisplayAn unique id for this item.Please make sure the id returned by this method matches the id which is part of the
FinderPathreturned byHasFinderPath.finderPath()- Specified by:
getIdin interfaceItemDisplay<StaticItem>- Returns:
- an id based on
HasTitle.getTitle():Ids.asId(getTitle())
-
element
public elemental2.dom.HTMLElement element()
Description copied from interface:ItemDisplayIf this method returns an element !=nullthis element is used to display the item.- Specified by:
elementin interfaceorg.jboss.elemento.IsElement<elemental2.dom.HTMLElement>- Specified by:
elementin interfaceItemDisplay<StaticItem>- Returns:
nullby default
-
actions
public List<ItemAction<StaticItem>> actions()
Description copied from interface:ItemDisplayDefines the action(s) available for the item.- Specified by:
actionsin interfaceItemDisplay<StaticItem>- Returns:
- an empty list by default.
-
getFilterData
public String getFilterData()
Description copied from interface:ItemDisplayThe data which is used to filter items.- Specified by:
getFilterDatain interfaceItemDisplay<StaticItem>- Returns:
HasTitle.getTitle()by default
-
nextColumn
public String nextColumn()
Description copied from interface:ItemDisplayWhether this item triggers a next column (hence is a folder not a leaf).- Specified by:
nextColumnin interfaceItemDisplay<StaticItem>- Returns:
nullby default
-
-