Class LeafPermissionNodeEditor
- java.lang.Object
-
- org.uberfire.ext.security.management.client.widgets.management.editor.acl.node.BasePermissionNodeEditor
-
- org.uberfire.ext.security.management.client.widgets.management.editor.acl.node.LeafPermissionNodeEditor
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget,PermissionNodeEditor
@Dependent public class LeafPermissionNodeEditor extends BasePermissionNodeEditor
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLeafPermissionNodeEditor.View
-
Field Summary
-
Fields inherited from class org.uberfire.ext.security.management.client.widgets.management.editor.acl.node.BasePermissionNodeEditor
aclEditor, leftMargin, padding, permissionNode, permissionSwitchMap, treeLevel, width
-
-
Constructor Summary
Constructors Constructor Description LeafPermissionNodeEditor(LeafPermissionNodeEditor.View view, PermissionWidgetFactory widgetFactory, javax.enterprise.event.Event<PermissionChangedEvent> permissionChangedEvent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.gwt.user.client.ui.WidgetasWidget()voidedit(org.uberfire.security.client.authz.tree.PermissionNode node)voidinit()protected voidnotifyPermissionChange(org.uberfire.security.authz.Permission permission, boolean on)Invoked when a permission toogle switch changes its value.protected voidonNodePanelWidthChanged()Invoked when the width of a node editor panel changes.voidonParentPermissionChanged(org.uberfire.security.authz.Permission permission, boolean on)Invoked when any of the parent permissions of a permission editor changes.-
Methods inherited from class org.uberfire.ext.security.management.client.widgets.management.editor.acl.node.BasePermissionNodeEditor
addChildEditor, clearChildEditors, getACLEditor, getChildEditors, getExceptionNumber, getNodePanelWidth, getParentEditor, getPermissionNode, getTreeLevel, hasChildEditors, isAnException, onChildPermissionChanged, onPermissionChanged, processAllPermissionDependencies, processPermissionDependencies, registerPermissionSwitch, removeChildEditor, setACLEditor, setLeftMargin, setParentEditor, setTreeLevel
-
-
-
-
Constructor Detail
-
LeafPermissionNodeEditor
@Inject public LeafPermissionNodeEditor(LeafPermissionNodeEditor.View view, PermissionWidgetFactory widgetFactory, javax.enterprise.event.Event<PermissionChangedEvent> permissionChangedEvent)
-
-
Method Detail
-
init
@PostConstruct public void init()
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
-
edit
public void edit(org.uberfire.security.client.authz.tree.PermissionNode node)
-
notifyPermissionChange
protected void notifyPermissionChange(org.uberfire.security.authz.Permission permission, boolean on)Description copied from class:BasePermissionNodeEditorInvoked when a permission toogle switch changes its value.- Overrides:
notifyPermissionChangein classBasePermissionNodeEditor- Parameters:
permission- The changing permissionon- The switch status
-
onParentPermissionChanged
public void onParentPermissionChanged(org.uberfire.security.authz.Permission permission, boolean on)Description copied from class:BasePermissionNodeEditorInvoked when any of the parent permissions of a permission editor changes.By default, it does nothing as it is up to each subclass to provide its own implementation.
Only leaf or intermediate nodes are invoked.
- Specified by:
onParentPermissionChangedin interfacePermissionNodeEditor- Overrides:
onParentPermissionChangedin classBasePermissionNodeEditor
-
onNodePanelWidthChanged
protected void onNodePanelWidthChanged()
Description copied from class:BasePermissionNodeEditorInvoked when the width of a node editor panel changes.By default, it does nothing as it is up to each subclass to provide its own implementation.
- Overrides:
onNodePanelWidthChangedin classBasePermissionNodeEditor
-
-