public class UiHandlerEventModeVisibility extends UiHandlerEventMode
UiHandlerEventMode that shows or hides a UiWidget if the
UiMode is (not) editable.| Modifier and Type | Field and Description |
|---|---|
private boolean |
showIfEditable |
| Constructor and Description |
|---|
UiHandlerEventModeVisibility(boolean showIfEditable)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
createAndAdd(UiWidget widget,
boolean showIfEditable)
Creates a new instance of this class and adds it to the given
UiWidget. |
boolean |
isShowIfEditable() |
void |
onModeChange(UiEventMode event,
UiMode newMode)
|
onEventprivate final boolean showIfEditable
onModeChange(UiEventMode, UiMode)public UiHandlerEventModeVisibility(boolean showIfEditable)
showIfEditable - - see isShowIfEditable().public boolean isShowIfEditable()
public void onModeChange(UiEventMode event, UiMode newMode)
onModeChange in class UiHandlerEventModeevent - is the mode change event.newMode - is the new UiMode.public static void createAndAdd(UiWidget widget, boolean showIfEditable)
UiWidget.widget - is the UiWidget where to
add the
created UiHandlerEventModeVisibility.showIfEditable - - see isShowIfEditable().Copyright © 2001–2016 mmm-Team. All rights reserved.