@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.IsWidget
public void setOnChange(Command onChange)
setOnChange
in interface PermissionSwitchToogle
public void setNumberOfExceptions(int n)
setNumberOfExceptions
in interface PermissionSwitchToogle
public boolean isOn()
isOn
in interface PermissionSwitchToogle
public void setOn(boolean on)
setOn
in interface PermissionSwitchToogle
public void setEnabled(boolean enabled)
setEnabled
in interface PermissionSwitchToogle
public void onChange()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.