Class HostDisplay
- java.lang.Object
-
- org.jboss.hal.client.runtime.host.HostDisplay
-
- All Implemented Interfaces:
org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>,HasTitle,ItemDisplay<Host>
public abstract class HostDisplay extends Object implements ItemDisplay<Host>
-
-
Constructor Summary
Constructors Constructor Description HostDisplay(Host item, HostActions hostActions, Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description elemental2.dom.HTMLElementelement()If this method returns an element !StringgetFilterData()The data which is used to filter items.elemental2.dom.HTMLElementgetIcon()Whether to show an icon left to the item text.StringgetId()An unique id for this item.StringgetTitle()StringgetTooltip()Whether a tooltip should be shown for the item.-
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
actions, nextColumn
-
-
-
-
Constructor Detail
-
HostDisplay
public HostDisplay(Host item, HostActions hostActions, Resources resources)
-
-
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<Host>- 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<Host>- Returns:
nullby default
-
getFilterData
public String getFilterData()
Description copied from interface:ItemDisplayThe data which is used to filter items.- Specified by:
getFilterDatain interfaceItemDisplay<Host>- Returns:
HasTitle.getTitle()by default
-
getTooltip
public String getTooltip()
Description copied from interface:ItemDisplayWhether a tooltip should be shown for the item.- Specified by:
getTooltipin interfaceItemDisplay<Host>- Returns:
nullby default (no tooltip)
-
getIcon
public elemental2.dom.HTMLElement getIcon()
Description copied from interface:ItemDisplayWhether to show an icon left to the item text. The icon should be a PatternFly or FontAwesome icon in normal size. SeeIconsfor a list of common icons.- Specified by:
getIconin interfaceItemDisplay<Host>- Returns:
nullby default
-
-