|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.ui.FormTableEntry
org.tentackle.appworx.SecurityTableEntry
public class SecurityTableEntry
The default formtable entry for a Security rule.
| Field Summary | |
|---|---|
protected static int |
ALLOW
|
protected static String[] |
columnNames
|
protected static int |
CONTEXT
|
static Class[] |
contextClazz
For multi-tenancy the base context class and all its child context classes may be defined here. |
protected static int |
GRANTEE
|
static Class<? extends AppDbObject> |
granteeClazz
By default there is only one grantee-class for the grantee cell editor. |
protected static int |
PRIVS
|
protected Security |
security
|
protected static int |
TEXT
|
| Constructor Summary | |
|---|---|
SecurityTableEntry(Security security)
Creates a table entry. |
|
| Method Summary | |
|---|---|
TableCellEditor |
getCellEditor(int col)
Gets the cell editor for a given column. |
TableCellRenderer |
getCellRenderer(int col)
Gets the cell renderer for a given column. Depending on isCellRendererFixed() this method is invoked only once per column or for each cell. |
int |
getColumnCount()
Determines the number of data-model columns. |
String |
getColumnName(int col)
Describes the column name. This may be a symbolic name if getDisplayedColumnName() is overridden. |
String |
getDisplayedColumnName(int col)
Gets the displayed column name. By default the column-name and the displayed column name are the same. |
Object |
getObject()
Gets the object wrapped by this entry. |
Object |
getValueAt(int col)
Gets the column-object for this entry in a given column. |
boolean |
isCellEditable(int mColumn)
Determines whether the cell is editable or not. |
FormTableEntry |
newInstanceOf(Object object)
Creates a new instance of an entry for a given data-object. |
AppDbObject |
selectGrantee()
Selects the grantee. |
void |
setValueAt(int col,
Object obj)
Sets the data object for a column. |
| Methods inherited from class org.tentackle.ui.FormTableEntry |
|---|
compareTo, fireCellsUpdated, fireRowUpdated, getCellRect, getColumnClass, getConvert, getFormat, getHorizontalAlignment, getModel, getReferencedColumn, getReferencedRow, getRow, getShowHorizontalLine, getShowVerticalLine, getVerticalAlignment, isAutoSelect, isBlankZero, isCellEditorFixed, isCellRectFixed, isCellRendererFixed, isCellVisible, isColumnNotSummable, isVisiblyEqual, setModel, setRow, updateArray, updateCursor, updateList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Class<? extends AppDbObject> granteeClazz
public static Class[] contextClazz
protected static final int GRANTEE
protected static final int CONTEXT
protected static final int PRIVS
protected static final int TEXT
protected static final int ALLOW
protected static final String[] columnNames
protected Security security
| Constructor Detail |
|---|
public SecurityTableEntry(Security security)
security - the security object| Method Detail |
|---|
public FormTableEntry newInstanceOf(Object object)
FormTableEntry
newInstanceOf in class FormTableEntryobject - the data-object
public Object getObject()
FormTableEntry
getObject in class FormTableEntrypublic String getColumnName(int col)
FormTableEntry
getColumnName in class FormTableEntrycol - the datamodel-column
public String getDisplayedColumnName(int col)
FormTableEntry
getDisplayedColumnName in class FormTableEntrycol - the datamodel column
public boolean isCellEditable(int mColumn)
All cells are editable, except CONTEXT which is only
editable if contextClazz is not null.
isCellEditable in class FormTableEntrymColumn - the datamodel-column
public int getColumnCount()
FormTableEntry
getColumnCount in class FormTableEntrypublic Object getValueAt(int col)
FormTableEntry
getValueAt in class FormTableEntrycol - the datamodel-column
public void setValueAt(int col,
Object obj)
FormTableEntry
setValueAt in class FormTableEntrycol - the datamodel-columnobj - the cell valuepublic TableCellRenderer getCellRenderer(int col)
FormTableEntry
getCellRenderer in class FormTableEntrycol - the datamodel-column
public TableCellEditor getCellEditor(int col)
FormTableEntry
getCellEditor in class FormTableEntrycol - the datamodel-column
public AppDbObject selectGrantee()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||