|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<CheckListModel.ColumnType>
org.openpermis.editor.policy.gui.checklist.CheckListModel.ColumnType
static enum CheckListModel.ColumnType
Describes the type of a column, including getters and setters.
Enum Constant Summary | |
---|---|
CHECKBOX
|
|
ITEM
|
Field Summary | |
---|---|
private Class<?> |
columnClass
|
private String |
columnName
|
private boolean |
editable
|
private boolean |
valueType
|
Method Summary | ||
---|---|---|
protected boolean |
contains(List<?> list,
Object item)
Checks if the specified item is in the given list. |
|
Class<?> |
getColumnClass()
The value class of this column. |
|
String |
getColumnName()
The name of this column. |
|
abstract Object |
getValue(int rowIndex,
List<?> itemPool,
List<?> selectionList)
Returns the value of this column at the specified row index. |
|
protected int |
indexOf(List<?> list,
Object item)
Returns the index of the specified item in the given list. |
|
boolean |
isEditable()
|
|
boolean |
isValueType()
Check if this column denotes a type that reflects a value. |
|
abstract
|
setValue(int rowIndex,
Object value,
List<T> itemPool,
List<T> selectionList)
Sets the value of this column at the specified row index. |
|
static CheckListModel.ColumnType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
|
static CheckListModel.ColumnType[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final CheckListModel.ColumnType CHECKBOX
public static final CheckListModel.ColumnType ITEM
Field Detail |
---|
private final String columnName
private final Class<?> columnClass
private final boolean editable
private final boolean valueType
Method Detail |
---|
public static final CheckListModel.ColumnType[] values()
for(CheckListModel.ColumnType c : CheckListModel.ColumnType.values()) System.out.println(c);
public static CheckListModel.ColumnType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified nameprotected int indexOf(List<?> list, Object item)
list
- the list to find the item in.item
- the item to search for by identity.
protected boolean contains(List<?> list, Object item)
list
- the list to search.item
- the item to check.
true
if the item is in the list, false
otherwise.public abstract Object getValue(int rowIndex, List<?> itemPool, List<?> selectionList)
rowIndex
- the index for which to retrieve the value.itemPool
- the pool of items.selectionList
- the list of currently selected items.
public abstract <T> void setValue(int rowIndex, Object value, List<T> itemPool, List<T> selectionList)
rowIndex
- the index for which to set the value.itemPool
- the pool of items.selectionList
- the list of currently selected items.public String getColumnName()
public Class<?> getColumnClass()
public boolean isEditable()
public boolean isValueType()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
PERMIS Role Based Access Control 0.4.0 (Build 15)
2009/05/20 08:15:22
Copyright (c) 2002-2007 Ergon Informatik AG