|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.ui.AbstractComponent
com.vaadin.ui.AbstractField
com.vaadin.ui.Button
com.vaadin.ui.CheckBox
public class CheckBox
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.vaadin.ui.Button |
|---|
Button.ClickEvent, Button.ClickListener, Button.ClickShortcut |
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractField |
|---|
AbstractField.FocusShortcut, AbstractField.ReadOnlyStatusChangeEvent |
| Nested classes/interfaces inherited from class com.vaadin.ui.AbstractComponent |
|---|
AbstractComponent.ComponentErrorEvent, AbstractComponent.ComponentErrorHandler |
| Nested classes/interfaces inherited from interface com.vaadin.ui.Field |
|---|
Field.ValueChangeEvent |
| Nested classes/interfaces inherited from interface com.vaadin.data.Buffered |
|---|
Buffered.SourceException |
| Nested classes/interfaces inherited from interface com.vaadin.data.Property |
|---|
Property.ConversionException, Property.Editor, Property.ReadOnlyException, Property.ReadOnlyStatusChangeListener, Property.ReadOnlyStatusChangeNotifier, Property.ValueChangeListener, Property.ValueChangeNotifier, Property.Viewer |
| Field Summary |
|---|
| Fields inherited from class com.vaadin.ui.Button |
|---|
clickShortcut, STYLE_LINK |
| Constructor Summary | |
|---|---|
CheckBox()
Creates a new switch button. |
|
CheckBox(String caption)
Creates a new push button with a set caption. |
|
CheckBox(String caption,
boolean initialState)
Creates a new switch button with a caption and a set initial state. |
|
CheckBox(String caption,
Button.ClickListener listener)
Creates a new switch button with a caption and a click listener. |
|
CheckBox(String caption,
Object target,
String methodName)
Convenience method for creating a new switch button with a method listening button clicks. |
|
CheckBox(String caption,
Property dataSource)
Creates a new switch button that is connected to a boolean property. |
|
| Method Summary | |
|---|---|
void |
setDisableOnClick(boolean disableOnClick)
Determines if a button is automatically disabled when clicked. |
void |
setSwitchMode(boolean switchMode)
Deprecated. |
| Methods inherited from class com.vaadin.ui.Button |
|---|
addListener, addListener, addListener, booleanValue, changeVariables, click, fireClick, fireClick, getType, isDisableOnClick, isHtmlContentAllowed, isSwitchMode, paintContent, removeClickShortcut, removeListener, removeListener, removeListener, setClickShortcut, setHtmlContentAllowed, setImmediate, setInternalValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.vaadin.ui.Field |
|---|
getDescription, setCaption, setDescription |
| Constructor Detail |
|---|
public CheckBox()
public CheckBox(String caption,
boolean initialState)
caption - the caption of the switch buttoninitialState - the initial state of the switch button
public CheckBox(String caption,
Button.ClickListener listener)
caption - the caption of the switch buttonlistener - the click listener
public CheckBox(String caption,
Object target,
String methodName)
AbstractComponent.addListener(Class, Object, Method) or
AbstractComponent.addListener(com.vaadin.ui.Component.Listener) instead. The
method must have either no parameters, or only one parameter of
Button.ClickEvent type.
caption - the Button caption.target - the Object having the method for listening button clicks.methodName - the name of the method in target object, that receives button
click events.
public CheckBox(String caption,
Property dataSource)
state - the Initial state of the switch-button.dataSource - public CheckBox(String caption)
caption - the Button caption.| Method Detail |
|---|
@Deprecated
public void setSwitchMode(boolean switchMode)
throws UnsupportedOperationException
Button
setSwitchMode in class ButtonswitchMode - The switchMode to set.
UnsupportedOperationExceptionpublic void setDisableOnClick(boolean disableOnClick)
Button
Note that this is only used when the click comes from the user, not when
calling Button.click().
Also note that click shortcuts are not supported with this feature in Vaadin 6.x.
setDisableOnClick in class ButtondisableOnClick - true to disable button when it is clicked, false otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||