public class UiPermissionsFrame extends AbstractFrame
| Modifier and Type | Class and Description |
|---|---|
static interface |
UiPermissionsFrame.Companion |
protected class |
UiPermissionsFrame.CopyComponentIdAction
Copies an id attribute of
componentsTree selected component to componentTextField. |
ScreenFragment.AfterInitEvent, ScreenFragment.AttachEvent, ScreenFragment.DetachEvent, ScreenFragment.InitEventFrame.MessageMode, Frame.MessageType, Frame.NotificationType, Frame.WrapperExpandingLayout.ExpandDirectionComponent.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 Button |
addPermissionBtn |
protected UiPermissionsFrame.Companion |
companion |
protected ScreenComponentsTreeDatasource |
componentDescriptorsDs |
protected Tree<ScreenComponentDescriptor> |
componentsTree |
protected VBoxLayout |
componentsTreeBox |
protected Button |
componentsTreeBtn |
protected TextField<java.lang.String> |
componentTextField |
protected GroupBoxLayout |
editPane |
protected CheckBox |
hideCheckBox |
protected Icons |
icons |
protected boolean |
itemChanging |
protected Metadata |
metadata |
protected CheckBox |
readOnlyCheckBox |
protected Button |
removePermissionBtn |
protected Datasource<Role> |
roleDs |
protected LookupField<java.lang.String> |
screenFilter |
protected Security |
security |
protected BoxLayout |
selectedComponentPanel |
protected CheckBox |
showCheckBox |
protected RestorablePermissionDatasource |
uiPermissionsDs |
protected GroupTable<UiPermissionTarget> |
uiPermissionsTable |
protected UiPermissionsDatasource |
uiPermissionTargetsDs |
frame, messagesNO_OPTIONS, WINDOW_CLOSE_ACTION, WINDOW_COMMIT_AND_CLOSE_ACTION, WINDOW_DISCARD_AND_CLOSE_ACTIONAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS| Constructor and Description |
|---|
UiPermissionsFrame() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUiPermission() |
protected void |
applyPermissions(boolean editable) |
protected void |
attachCheckBoxListener(CheckBox checkBox,
UiPermissionVariant activeVariant) |
void |
changeComponentsTreeVisibility() |
void |
collapseTree() |
void |
expandTree() |
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.
|
protected void |
initScreenFilter() |
protected void |
markItemPermission(UiPermissionVariant permissionVariant,
UiPermissionTarget target) |
protected java.util.Collection<WindowInfo> |
sortWindowInfos(java.util.Collection<WindowInfo> infos) |
protected void |
updateCheckBoxes(UiPermissionTarget item) |
add, add, addAction, addAction, addFacet, addStyleName, dispose, expand, expand, formatMessage, getAction, getActions, getAlignment, getCaption, getCompanion, getComponent, getComponent, getComponent, getComponents, getComposition, getContext, getDescription, getDsContext, getExpandDirection, getExpandRatio, getFacet, getFacets, 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, removeFacet, 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, validateAlladdAfterInitListener, addAttachEventListener, addDetachEventListener, addInitListener, fireEvent, getBeanLocator, getEventHub, getExtensions, getFragment, getHostController, getHostScreen, getId, getScreenData, getUiEventListeners, init, setBeanLocator, setExtensions, setHostController, setScreenData, setUiEventListenersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFacetNNgetXmlDescriptor, setXmlDescriptorgetActionNN, getSubPartgetComponentNNadd, focusFirstComponent, getComponentNN, removegetHeightUnits, getId, getWidthUnits, isEnabledItself, isVisibleItself, requestFocus, setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFullopenEditor, 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 LookupField<java.lang.String> screenFilter
@Inject protected TextField<java.lang.String> componentTextField
@Inject protected RestorablePermissionDatasource uiPermissionsDs
@Inject protected UiPermissionsDatasource uiPermissionTargetsDs
@Inject protected Security security
@Inject protected Metadata metadata
@Inject protected BoxLayout selectedComponentPanel
@Inject protected CheckBox readOnlyCheckBox
@Inject protected CheckBox hideCheckBox
@Inject protected CheckBox showCheckBox
@Inject protected GroupTable<UiPermissionTarget> uiPermissionsTable
@Inject protected Button removePermissionBtn
@Inject protected Button addPermissionBtn
@Inject protected UiPermissionsFrame.Companion companion
@Inject protected GroupBoxLayout editPane
@Inject protected Tree<ScreenComponentDescriptor> componentsTree
@Inject protected VBoxLayout componentsTreeBox
@Inject protected Button componentsTreeBtn
@Inject protected ScreenComponentsTreeDatasource componentDescriptorsDs
@Inject protected Icons icons
protected boolean itemChanging
public void init(java.util.Map<java.lang.String,java.lang.Object> params)
AbstractFrameinit in class AbstractFrameparams - 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 initScreenFilter()
public void changeComponentsTreeVisibility()
protected java.util.Collection<WindowInfo> sortWindowInfos(java.util.Collection<WindowInfo> infos)
protected void applyPermissions(boolean editable)
protected void attachCheckBoxListener(CheckBox checkBox, UiPermissionVariant activeVariant)
protected void markItemPermission(UiPermissionVariant permissionVariant, UiPermissionTarget target)
protected void updateCheckBoxes(UiPermissionTarget item)
public void addUiPermission()
public void collapseTree()
public void expandTree()