See also :
See also :
public void Chip(String text)
text
The chip text
public static Chip create(String text)
text
The chip text
new Chip instance
public Chip select()
same chip instance
public Chip deselect()
same chip instance
public Chip select(boolean silent)
silent
boolean, true to ignore selection listeners, false to trigger selection listeners
same chip instance
public Chip deselect(boolean silent)
silent
boolean, true to ignore deselection listeners, false to trigger deselection listeners
same chip instance
public Chip setSelected(boolean selected)
selected
boolean, true selects the chip, false deselect the chip
same chip instance
public Chip setSelected(boolean selected, boolean silent)
selected
boolean, true selects the chip, false deselect the chip
silent
boolean, true ignore the selection/deselection listener, false trigger the selection/deselection listener
same chip instance
public boolean isSelected()
boolean, true if the chip is selectable and currently selected, otherwise false
public boolean isSelectable()
boolean, true if the chip is selectable otherwise false
public Chip setSelectable(boolean selectable)
selectable
boolean, true to make the chip selectable, false to make it not selectable
same chip instance
public boolean isRemovable()
a boolean, true if the chip is removable otherwise false
public Chip setRemovable(boolean removable)
removable
a boolean, true to make the chip removable, false to make it not removable.
same chip instance
public Chip setText(String text)
text
the chip text string
same chip instance
public Chip withTextElement(ChildHandler<Chip, SpanElement> handler)
handler
The ChildHandler applying the customizations
same chip instance
public SpanElement getTextElement()
public Chip appendChild(PrefixAddOn<?> prefixAddOn)
prefixAddOn
The PrefixAddOn wrapping another element
same chip instance
public Chip setLetters(String text)
text
The text to be appended as a prefix.
same chip instance
public Chip setImage(HTMLImageElement img)
img
The HTMLImageElement to be appended as prefix
same chip instance
public Chip setImage(ImageElement img)
img
The ImageElement to be appended as prefix
same chip instance
public Chip clearAddOn()
same chip instance
public Chip withAddon(ChildHandler<Chip, DivElement> handler)
handler
The ChildHandler applying the customization
same chip instance
public void ChipsGroup()
public static ChipsGroup create()
new ChipsGroup instance
public ChipsGroup appendChild(Chip chip)
public ChipsGroup enable()
public ChipsGroup disable()
public boolean isEnabled()
boolean, true if selection is enabled, false if selection is not enabled
public List<Chip> getSelectedChips()
public ChipsGroup selectAt(int index)
index only if the index within the acceptable range, otherwise ignore.
index
the index of the chip to select
same instance
public List<Chip> getChips()
public Set<SelectionListener<? super Chip, ? super List<Chip>>> getSelectionListeners()
public boolean isMultiSelect()
a boolean, true multi-select is enabled, false multi-select is disabled
public ChipsGroup setMultiSelect(boolean multiSelect)
multiSelect
a boolean, true enables multi-selection, false disable multi-selection
same ChipsGroup instance
public boolean isRemovable()
a boolean, true the chips in this group are removable, false the chips in this group are not removable
public ChipsGroup setRemovable(boolean removable)
removable
a boolean, true set all chips in this group to be removable, false set all chips in this group to be not removable.
same ChipsGroup instance