Interface UiBreadCrumbBar
- All Superinterfaces:
AttributeReadAttached,AttributeReadEnabled,AttributeReadId,AttributeReadValid,AttributeReadVisible,AttributeWriteEnabled,AttributeWriteId,AttributeWriteReadOnly,AttributeWriteTooltip,AttributeWriteVisible,io.github.mmm.event.EventSource<UiEvent,,UiEventListener> UiNativeWidget,UiRegularWidget,UiWidget
A
UiBreadCrumbBar shows 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 last entry should be added via add(String) without any
UiClickEventListener.- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttachedMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltipMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods 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 Details
-
add
- Parameters:
text- thelabel textof the new entry.- Returns:
- the new
UiBreadCrumbEntry.
-
add
- 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
- 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.
-