Interface UiBreadCrumbBar
-
- All Superinterfaces:
AttributeReadAttached,AttributeReadEnabled,AttributeReadId,AttributeReadValid,AttributeReadVisible,AttributeWriteEnabled,AttributeWriteId,AttributeWriteReadOnly,AttributeWriteTooltip,AttributeWriteVisible,io.github.mmm.event.EventSource<UiEvent,UiEventListener>,UiNativeWidget,UiRegularWidget,UiWidget
public interface UiBreadCrumbBar extends UiRegularWidget, UiNativeWidget
AUiBreadCrumbBarshows a bread crumb as a (horizontal) bar. The bread crumb displays the hierarchy leading to the current dialogue and allows the user to click on the parent entries (hyperlinks) to navigate up this hierarchy. Typically the lastentryshould be added viaadd(String)without anyUiClickEventListener.- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description UiBreadCrumbEntryadd(String text)default UiBreadCrumbEntryadd(String text, UiPlace place, String id)voidclear()Clears the bread crumb bar by removing allentries.UiBreadCrumbEntryget(int index)intgetSize()voidpop()-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttached
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
-
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getModificationTimestamp, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isModified, isReadOnly, isValid, isVisible, isVisible, reset, setEnabled, setEnabled, setFocused, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
-
-
-
Method Detail
-
add
UiBreadCrumbEntry add(String text)
- Parameters:
text- thelabel textof the new entry.- Returns:
- the new
UiBreadCrumbEntry.
-
add
default UiBreadCrumbEntry add(String text, UiPlace place, String id)
- Parameters:
text- thelabel textof the new entry.place- theUiPlacewhere tonavigate towhen the new bread crumb entry is clicked.id- theIDof the new entry.- Returns:
- the new
UiBreadCrumbEntry.
-
get
UiBreadCrumbEntry get(int index)
- Parameters:
index- the index of the requested entry. Should be in the range from0togetSize()-1.- Returns:
- the
UiBreadCrumbEntryat the given index ornullif no such entry exists.
-
pop
void pop()
Removes thelastUiBreadCrumbEntryfrom thisUiBreadCrumbBar. So in other words this method will undo the lastaddoperation.
-
getSize
int getSize()
- Returns:
- the current number of
entriesin this bread crumb bar.
-
clear
void clear()
Clears the bread crumb bar by removing allentries.
-
-