public abstract class AbstractSelectableListItem extends RichFacesListItem implements SelectableListItem
Constructor and Description |
---|
AbstractSelectableListItem() |
Modifier and Type | Method and Description |
---|---|
void |
deselect()
Deselects this item.
|
protected abstract String |
getStyleClassForSelectedItem() |
boolean |
isSelected()
Finds out whether this item is selected.
|
void |
select()
Selects item without deselecting others.
|
void |
select(boolean deselectOthers)
Select item and deselect other items depending on @deselectOthers.
|
getRootElement, getText, isVisible, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getRootElement, getText
public boolean isSelected()
SelectableListItem
isSelected
in interface SelectableListItem
true
if this item is selected, false
otherwiseprotected abstract String getStyleClassForSelectedItem()
public void select()
SelectableListItem
select
in interface SelectableListItem
public void select(boolean deselectOthers)
SelectableListItem
select
in interface SelectableListItem
deselectOthers
- if true
other items will be unselected.public void deselect()
SelectableListItem
deselect
in interface SelectableListItem
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.