|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.biomoby.service.dashboard.treetable.AbstractTreeTableModel org.biomoby.service.dashboard.data.DataTypeModel
public class DataTypeModel
DataTypeModel is a TreeTableModel representing Biomoby data type with all their members expanded until primitive types found.
Field Summary | |
---|---|
static int |
COLUMN_ADD
Index of a column allowing to add an empty HAS member. |
static int |
COLUMN_CDATA
Index of a column indicating that a value should be stored as CDATA. |
static int |
COLUMN_CLONE
Index of a column allowing to add a HAS member by duplicating an exiting one. |
static int |
COLUMN_ID
Index of a column with identifiers. |
static int |
COLUMN_NS
Index of a column with namespaces. |
static int |
COLUMN_REMOVE
Index of a column allowing to remove a HAS member. |
static int |
COLUMN_TAREA
Index of a column indicating that a value editor should allow more lines. |
static int |
COLUMN_TREE
Index of a column with a data type tree. |
static int |
COLUMN_VALUE
Index of a column with values. |
Constructor Summary | |
---|---|
DataTypeModel(MobyDataType rootType,
MobyDataType[] dataTypes)
Constructor. |
Method Summary | |
---|---|
void |
fireTreeNodesRemoved(Object source,
Object[] path,
int[] childIndices,
Object[] children)
|
void |
fireTreeStructureChanged(Object source,
Object[] path,
int[] childIndices,
Object[] children)
Notify all listeners that underlying tree structure has been changed. |
Object |
getChild(Object node,
int i)
|
int |
getChildCount(Object node)
|
Class |
getColumnClass(int column)
Returns the type for column number column . |
int |
getColumnCount()
TreeTableModel interface |
String |
getColumnName(int column)
Returns the name for column number column . |
String |
getColumnToolTip(int column)
Return a header tool tip for the given column. |
Object |
getRoot()
TreeModel interface |
Object |
getValueAt(Object node,
int column)
Returns the value to be displayed for node node ,
at column number column . |
boolean |
isCellEditable(Object node,
int column)
By default, make the column with the Tree in it the only editable one. |
boolean |
isLeaf(Object node)
|
void |
setValueAt(Object aValue,
Object node,
int column)
Sets the value for node node ,
at column number column . |
Methods inherited from class org.biomoby.service.dashboard.treetable.AbstractTreeTableModel |
---|
addTreeModelListener, getIndexOfChild, removeTreeModelListener, valueForPathChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int COLUMN_ADD
public static final int COLUMN_CLONE
public static final int COLUMN_REMOVE
public static final int COLUMN_TREE
public static final int COLUMN_ID
public static final int COLUMN_NS
public static final int COLUMN_VALUE
public static final int COLUMN_TAREA
public static final int COLUMN_CDATA
Constructor Detail |
---|
public DataTypeModel(MobyDataType rootType, MobyDataType[] dataTypes)
Method Detail |
---|
public String getColumnToolTip(int column)
public void fireTreeStructureChanged(Object source, Object[] path, int[] childIndices, Object[] children)
public void fireTreeNodesRemoved(Object source, Object[] path, int[] childIndices, Object[] children)
public Object getRoot()
getRoot
in interface TreeModel
getRoot
in class AbstractTreeTableModel
public int getChildCount(Object node)
public Object getChild(Object node, int i)
public boolean isLeaf(Object node)
isLeaf
in interface TreeModel
isLeaf
in class AbstractTreeTableModel
public boolean isCellEditable(Object node, int column)
AbstractTreeTableModel
isCellEditable
in interface TreeTableModel
isCellEditable
in class AbstractTreeTableModel
public int getColumnCount()
public String getColumnName(int column)
TreeTableModel
column
.
public Class getColumnClass(int column)
TreeTableModel
column
.
getColumnClass
in interface TreeTableModel
getColumnClass
in class AbstractTreeTableModel
public Object getValueAt(Object node, int column)
TreeTableModel
node
,
at column number column
.
public void setValueAt(Object aValue, Object node, int column)
TreeTableModel
node
,
at column number column
.
setValueAt
in interface TreeTableModel
setValueAt
in class AbstractTreeTableModel
|
Version: 1.1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |