|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
net.sourceforge.fixagora.basis.client.model.editor.RolePermissionTableModel
public class RolePermissionTableModel
The Class RolePermissionTableModel.
| Constructor Summary | |
|---|---|
RolePermissionTableModel(AbstractBusinessObjectEditor abstractBusinessObjectEditor,
java.util.List<FRole> roles)
Instantiates a new role permission table model. |
|
| Method Summary | |
|---|---|
void |
addAllExecute()
Adds the all execute. |
void |
addAllRead()
Adds the all read. |
void |
addAllWrite()
Adds the all write. |
AbstractBusinessObjectEditor |
getAbstractBusinessObjectEditor()
Gets the abstract business object editor. |
int |
getColumnCount()
|
java.lang.String |
getColumnName(int column)
|
java.util.Set<FRole> |
getExecuteRoles()
Gets the execute roles. |
java.util.Set<FRole> |
getReadRoles()
Gets the read roles. |
java.util.List<FRole> |
getRoles()
Gets the roles. |
int |
getRowCount()
|
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
|
java.util.Set<FRole> |
getWriteRoles()
Gets the write roles. |
boolean |
isAllExecuteSet()
Checks if is all execute set. |
boolean |
isAllReadSet()
Checks if is all read set. |
boolean |
isAllWriteSet()
Checks if is all write set. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
|
boolean |
isDirty()
Checks if is dirty. |
void |
removeAllExecute()
Removes the all execute. |
void |
removeAllRead()
Removes the all read. |
void |
removeAllWrite()
Removes the all write. |
void |
save()
Save. |
void |
setMinWidth(int minWidth)
Sets the min width. |
void |
setTable(javax.swing.JTable table)
Sets the table. |
void |
setTableWidth()
Sets the table width. |
void |
updateRoles(java.util.List<FRole> fRoles)
Update roles. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener, setValueAt |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RolePermissionTableModel(AbstractBusinessObjectEditor abstractBusinessObjectEditor,
java.util.List<FRole> roles)
abstractBusinessObjectEditor - the abstract business object editorroles - the roles| Method Detail |
|---|
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelpublic int getRowCount()
public java.lang.Object getValueAt(int rowIndex,
int columnIndex)
public void setMinWidth(int minWidth)
minWidth - the new min widthpublic void setTableWidth()
public void setTable(javax.swing.JTable table)
table - the new table
public boolean isCellEditable(int rowIndex,
int columnIndex)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic AbstractBusinessObjectEditor getAbstractBusinessObjectEditor()
public java.util.List<FRole> getRoles()
public boolean isDirty()
public java.util.Set<FRole> getReadRoles()
public java.util.Set<FRole> getWriteRoles()
public java.util.Set<FRole> getExecuteRoles()
public void save()
public boolean isAllReadSet()
public boolean isAllWriteSet()
public boolean isAllExecuteSet()
public void addAllRead()
public void addAllWrite()
public void addAllExecute()
public void removeAllRead()
public void removeAllWrite()
public void removeAllExecute()
public void updateRoles(java.util.List<FRole> fRoles)
fRoles - the f roles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||