|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wings.SComponent
org.wings.SAbstractIconTextCompound
org.wings.SAbstractButton
org.wings.SButton
public class SButton
Simple Button widget.
This is also a button for usage in a renderer (e.gSTableCellRenderer).
This button implementation encodes its action command into the low level
event and fires the encoded action command and not the actual action command,
if an low level event triggers a button press.
| Field Summary |
|---|
| Fields inherited from class org.wings.SAbstractButton |
|---|
actionCommand, CHECKBOX, IMAGE_BUTTON, RADIOBUTTON, RESET_BUTTON, SUBMIT_BUTTON |
| Fields inherited from class org.wings.SAbstractIconTextCompound |
|---|
changeEvent, changeListener, DISABLED_ICON, DISABLED_SELECTED_ICON, ENABLED_ICON, ICON_COUNT, PRESSED_ICON, ROLLOVER_ICON, ROLLOVER_SELECTED_ICON, SELECTED_ICON, SELECTOR_SELECTED |
| Fields inherited from class org.wings.SComponent |
|---|
DONE_RENDERING, dynamicStyles, enabled, propertyChangeSupport, SELECTOR_ALL, START_RENDERING, visible, WHEN_FOCUSED_OR_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_IN_FOCUSED_FRAME |
| Constructor Summary | |
|---|---|
SButton()
Creates a button with no set text or icon. |
|
SButton(Action action)
Creates a button where properties are taken from the Action supplied. |
|
SButton(SIcon i)
Creates a button with a icon |
|
SButton(String text)
Creates a button with text. |
|
SButton(String text,
SIcon i)
Creates a button with initial text and an icon. |
|
| Method Summary | |
|---|---|
void |
fireFinalEvents()
Internal event trigger used by CGs. |
String |
getSelectionParameter()
|
boolean |
isSelected()
Returns the state of the button. |
void |
processLowLevelEvent(String action,
String[] values)
Deliver low level/http events (parameters). |
protected void |
setGroup(SButtonGroup g)
Add this button to a button group. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wings.LowLevelEventListener |
|---|
getLowLevelEventId, getName, isEnabled |
| Constructor Detail |
|---|
public SButton(String text)
text - the text of the buttonpublic SButton(Action action)
action - the Action used to specify the new buttonpublic SButton()
public SButton(SIcon i)
i - the Icon image to display on the button
public SButton(String text,
SIcon i)
text - the text of the buttoni - the Icon image to display on the button| Method Detail |
|---|
protected void setGroup(SButtonGroup g)
SAbstractButton
setGroup in class SAbstractButtonpublic boolean isSelected()
isSelected in class SAbstractIconTextCompound
public void processLowLevelEvent(String action,
String[] values)
LowLevelEventListener
processLowLevelEvent in interface LowLevelEventListenerprocessLowLevelEvent in class SAbstractButtonaction - the name-value-pair's namevalues - the name-value-pair's valuespublic void fireFinalEvents()
SComponent
fireFinalEvents in interface LowLevelEventListenerfireFinalEvents in class SAbstractButtonpublic String getSelectionParameter()
getSelectionParameter in class SAbstractButton
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||