public class ScreenPermissionsFrame extends AbstractFrame
Modifier and Type | Class and Description |
---|---|
static interface |
ScreenPermissionsFrame.Companion |
ScreenFragment.AfterInitEvent, ScreenFragment.InitEvent
Frame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.Wrapper
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
Modifier and Type | Field and Description |
---|---|
protected CheckBox |
allowCheckBox |
protected ScreenPermissionsFrame.Companion |
companion |
protected CheckBox |
disallowCheckBox |
protected boolean |
itemChanging |
protected Metadata |
metadata |
protected Datasource<Role> |
roleDs |
protected TextField<java.lang.String> |
screenFilter |
protected CollectionDatasource<Permission,java.util.UUID> |
screenPermissionsDs |
protected TreeTable<BasicPermissionTarget> |
screenPermissionsTree |
protected ScreenPermissionTreeDatasource |
screenPermissionsTreeDs |
protected GroupBoxLayout |
screensEditPane |
protected Security |
security |
protected BoxLayout |
selectedScreenPanel |
frame, messages
NO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTION
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Constructor and Description |
---|
ScreenPermissionsFrame() |
Modifier and Type | Method and Description |
---|---|
void |
applyFilter() |
void |
init(java.util.Map<java.lang.String,java.lang.Object> params)
Called by the framework after creation of all components and before showing the screen.
|
void |
loadPermissions() |
protected void |
markItemPermission(PermissionVariant permissionVariant) |
void |
setEditable(boolean editable) |
protected void |
updateCheckBoxes(BasicPermissionTarget item) |
add, add, addAction, addAction, addStyleName, dispose, expand, expand, formatMessage, getAction, getActions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContext, getDescription, getDsContext, getExpandDirection, getExpandRatio, getFrame, getFrameOwner, getHeight, getHeightSizeUnit, getIcon, getMargin, getMessage, getMessagesPack, getOwnComponent, getOwnComponents, getOwnComponentsStream, getParent, getSpacing, getStyleName, getWidth, getWidthSizeUnit, getWindowManager, getWrappedFrame, indexOf, init, isEnabled, isEnabledRecursive, isExpanded, isResponsive, isValid, isVisible, isVisibleRecursive, remove, removeAction, removeAction, removeAll, removeAllActions, removeStyleName, resetExpanded, setAlignment, setCaption, setCompanion, setDescription, setDsContext, setEnabled, setExpandRatio, setFragment, setFrame, setHeight, setIcon, setIconFromSet, setId, setMargin, setMessagesPack, setParent, setResponsive, setSpacing, setStyleName, setVisible, setWidth, setWrappedFrame, showValidationErrors, unwrap, unwrapComposition, validate, validate, validateAll
addAfterInitListener, addInitListener, fireEvent, getBeanLocator, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setBeanLocator, setExtensions, setHostController, setScreenData, setUiEventListeners
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXmlDescriptor, setXmlDescriptor
getActionNN, getSubPart
getComponentNN
add, focusFirstComponent, getComponentNN, remove
getHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
@Inject protected Datasource<Role> roleDs
@Inject protected CollectionDatasource<Permission,java.util.UUID> screenPermissionsDs
@Inject protected TreeTable<BasicPermissionTarget> screenPermissionsTree
@Inject protected ScreenPermissionTreeDatasource screenPermissionsTreeDs
@Inject protected BoxLayout selectedScreenPanel
@Inject protected CheckBox allowCheckBox
@Inject protected CheckBox disallowCheckBox
@Inject protected Security security
@Inject protected Metadata metadata
@Inject protected ScreenPermissionsFrame.Companion companion
@Inject protected GroupBoxLayout screensEditPane
@Inject protected TextField<java.lang.String> screenFilter
protected boolean itemChanging
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrame
init
in class AbstractFrame
params
- parameters passed from caller's code, usually from
HasWindowManager.openWindow(String, WindowManager.OpenType)
and similar methods, or set in
screens.xml
for this registered screenprotected void updateCheckBoxes(BasicPermissionTarget item)
public void loadPermissions()
public void setEditable(boolean editable)
protected void markItemPermission(PermissionVariant permissionVariant)
public void applyFilter()