public class RoleScrollTable
extends com.google.gwt.user.client.ui.Composite
Modifier and Type | Field and Description |
---|---|
static int |
PROPERTY_DELETE |
static int |
PROPERTY_READ |
static int |
PROPERTY_SECURITY |
static int |
PROPERTY_WRITE |
Constructor and Description |
---|
RoleScrollTable(boolean isAssigned)
RoleScrollTable
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(String roleName,
boolean modified)
Adds new roleName name row
|
void |
addRow(String roleName,
Integer permission,
boolean modified)
Adds new username permission row
|
void |
fillWidth()
fillWidth
|
com.google.gwt.gen2.table.client.FixedWidthGrid |
getDataTable()
getDataTable
|
int |
getNumberOfColumns()
getNumberOfColumns
|
String |
getRole()
Gets the role
|
int |
getSelectedRow() |
void |
grant(String role,
int permissions,
boolean recursive)
Grant the role
|
void |
initSecurity()
initSecurity
|
void |
langRefresh()
Lang refresh
|
void |
markModifiedSelectedRow()
markModifiedSelectedRow
|
void |
markModifiedSelectedRow(boolean modified)
markModifiedSelectedRow
|
void |
removeAllRows()
Removes all rows except the first
|
void |
removeSelectedRow()
Removes the selected row
|
void |
reset()
Reset table values
|
void |
revoke(String role,
int permissions,
boolean recursive)
Revoke the role grant
|
void |
selectLastRow()
Selects the last row
|
void |
setPath(String path)
Sets the path
|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents
public static final int PROPERTY_READ
public static final int PROPERTY_WRITE
public static final int PROPERTY_DELETE
public static final int PROPERTY_SECURITY
public RoleScrollTable(boolean isAssigned)
isAssigned
- public void initSecurity()
extendedSecurity
- public void langRefresh()
public void addRow(String roleName, Integer permission, boolean modified)
userName
- The role name valuepermission
- The permission valuemodified
- if need to mark as modifiedpublic void addRow(String roleName, boolean modified)
roleName
- The user name valuemodified
- if need to mark as modifiedpublic void selectLastRow()
public void removeAllRows()
public void reset()
public String getRole()
public int getSelectedRow()
public void removeSelectedRow()
public void markModifiedSelectedRow()
public void markModifiedSelectedRow(boolean modified)
public void grant(String role, int permissions, boolean recursive)
user
- The granted rolepermissions
- The permissions valuepublic void revoke(String role, int permissions, boolean recursive)
user
- The rolepermissions
- The permissions valuepublic void setPath(String path)
path
- The pathpublic void fillWidth()
public com.google.gwt.gen2.table.client.FixedWidthGrid getDataTable()
public int getNumberOfColumns()
Copyright © 2015. All Rights Reserved.