@Dependent public class PermissionSwitch extends Object implements PermissionSwitchToogle
| Modifier and Type | Class and Description |
|---|---|
static interface |
PermissionSwitch.View |
| Constructor and Description |
|---|
PermissionSwitch(PermissionSwitch.View view) |
| Modifier and Type | Method and Description |
|---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
init(String switchOnName,
String switchOffName,
boolean on,
int nexceptions) |
boolean |
isOn() |
void |
onChange() |
void |
setEnabled(boolean enabled) |
void |
setNumberOfExceptions(int n) |
void |
setOn(boolean on) |
void |
setOnChange(Command onChange) |
@Inject public PermissionSwitch(PermissionSwitch.View view)
public com.google.gwt.user.client.ui.Widget asWidget()
asWidget in interface com.google.gwt.user.client.ui.IsWidgetpublic void setOnChange(Command onChange)
setOnChange in interface PermissionSwitchTooglepublic void setNumberOfExceptions(int n)
setNumberOfExceptions in interface PermissionSwitchTooglepublic boolean isOn()
isOn in interface PermissionSwitchTooglepublic void setOn(boolean on)
setOn in interface PermissionSwitchTooglepublic void setEnabled(boolean enabled)
setEnabled in interface PermissionSwitchTooglepublic void onChange()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.