public abstract class AbstractSelectorItemPresenter extends Object implements SelectorItemPresenter
Modifier and Type | Field and Description |
---|---|
protected int |
id |
protected Command |
onResetCommand |
protected Command |
onSelectCommand |
protected boolean |
selected |
Constructor and Description |
---|
AbstractSelectorItemPresenter() |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
void |
init(int id,
String value,
String descr) |
boolean |
isSelected() |
void |
onItemClick() |
void |
reset() |
void |
select() |
void |
setOnResetCommand(Command onResetCommand) |
void |
setOnSelectCommand(Command onSelectCommand) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
protected Command onSelectCommand
protected Command onResetCommand
protected int id
protected boolean selected
public void init(int id, String value, String descr)
init
in interface SelectorItemPresenter
public int getId()
getId
in interface SelectorItemPresenter
public boolean isSelected()
isSelected
in interface SelectorItemPresenter
public void setOnSelectCommand(Command onSelectCommand)
setOnSelectCommand
in interface SelectorItemPresenter
public void setOnResetCommand(Command onResetCommand)
setOnResetCommand
in interface SelectorItemPresenter
public void select()
select
in interface SelectorItemPresenter
public void reset()
reset
in interface SelectorItemPresenter
public void onItemClick()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.