@Dependent public class LeafPermissionNodeEditor extends BasePermissionNodeEditor
Modifier and Type | Class and Description |
---|---|
static interface |
LeafPermissionNodeEditor.View |
aclEditor, leftMargin, padding, permissionNode, permissionSwitchMap, treeLevel, width
Constructor and Description |
---|
LeafPermissionNodeEditor(LeafPermissionNodeEditor.View view,
PermissionWidgetFactory widgetFactory,
javax.enterprise.event.Event<PermissionChangedEvent> permissionChangedEvent) |
Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
asWidget() |
void |
edit(PermissionNode node) |
void |
init() |
protected void |
notifyPermissionChange(Permission permission,
boolean on)
Invoked when a permission toogle switch changes its value.
|
protected void |
onNodePanelWidthChanged()
Invoked when the width of a node editor panel changes.
|
void |
onParentPermissionChanged(Permission permission,
boolean on)
Invoked when any of the parent permissions of a permission editor changes.
|
addChildEditor, clearChildEditors, getACLEditor, getChildEditors, getExceptionNumber, getNodePanelWidth, getParentEditor, getPermissionNode, getTreeLevel, hasChildEditors, isAnException, onChildPermissionChanged, onPermissionChanged, processAllPermissionDependencies, processPermissionDependencies, registerPermissionSwitch, removeChildEditor, setACLEditor, setLeftMargin, setParentEditor, setTreeLevel
@Inject public LeafPermissionNodeEditor(LeafPermissionNodeEditor.View view, PermissionWidgetFactory widgetFactory, javax.enterprise.event.Event<PermissionChangedEvent> permissionChangedEvent)
@PostConstruct public void init()
public com.google.gwt.user.client.ui.Widget asWidget()
public void edit(PermissionNode node)
protected void notifyPermissionChange(Permission permission, boolean on)
BasePermissionNodeEditor
notifyPermissionChange
in class BasePermissionNodeEditor
permission
- The changing permissionon
- The switch statuspublic void onParentPermissionChanged(Permission permission, boolean on)
BasePermissionNodeEditor
By default, it does nothing as it is up to each subclass to provide its own implementation.
Only leaf or intermediate nodes are invoked.
onParentPermissionChanged
in interface PermissionNodeEditor
onParentPermissionChanged
in class BasePermissionNodeEditor
protected void onNodePanelWidthChanged()
BasePermissionNodeEditor
By default, it does nothing as it is up to each subclass to provide its own implementation.
onNodePanelWidthChanged
in class BasePermissionNodeEditor
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.