|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectComposite
org.eclipse.birt.core.ui.swt.custom.CustomChooserComposite
public abstract class CustomChooserComposite
CustomChooserComposite
| Field Summary | |
|---|---|
static int |
DROPDOWN_EVENT
This event occures when the dropdown is about to show. |
static int |
SELECTION_EVENT
This event occurs when the selection is set. |
| Constructor Summary | |
|---|---|
|
CustomChooserComposite(Composite parent,
int style)
|
protected |
CustomChooserComposite(Composite parent,
int style,
java.lang.Object choiceValue)
|
| Method Summary | |
|---|---|
void |
addListener(int eventType,
Listener listener)
|
protected abstract ICustomChoice |
createChoice(Composite parent,
java.lang.Object choiceValue)
|
int |
getChoiceIndex()
|
java.lang.Object |
getChoiceValue()
Returns the current selected choice |
java.lang.Object |
getItem(int index)
|
int |
getItemCount()
|
java.lang.Object[] |
getItems()
|
boolean |
isEnabled()
|
void |
removeListener(int eventType,
Listener listener)
|
void |
select(int index)
|
void |
setChoiceValue(java.lang.Object iValue)
Sets the value as selected choice, and redraws UI. |
void |
setEnabled(boolean bState)
|
void |
setItems(java.lang.Object[] items)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SELECTION_EVENT
public static final int DROPDOWN_EVENT
| Constructor Detail |
|---|
public CustomChooserComposite(Composite parent,
int style)
protected CustomChooserComposite(Composite parent,
int style,
java.lang.Object choiceValue)
| Method Detail |
|---|
protected abstract ICustomChoice createChoice(Composite parent,
java.lang.Object choiceValue)
public void setItems(java.lang.Object[] items)
public java.lang.Object[] getItems()
public int getItemCount()
public java.lang.Object getItem(int index)
public void setEnabled(boolean bState)
public boolean isEnabled()
public void select(int index)
public int getChoiceIndex()
public java.lang.Object getChoiceValue()
public void setChoiceValue(java.lang.Object iValue)
iValue - value as selected choice
public void addListener(int eventType,
Listener listener)
public void removeListener(int eventType,
Listener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||