|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.table.AbstractTableModel | +--javax.swing.table.DefaultTableModel | +--com.ibm.dse.tools.workbench.gui.EntityAttributesTableModel
The implementation of the model of EntitiesAtributes table
Field Summary | |
protected java.util.Vector |
attribRef
|
java.util.Vector |
attributes
|
protected static java.lang.String |
DATA_TYPE_DOMAIN
|
protected static java.lang.String |
DATA_TYPE_DOMAIN_NAME
|
protected static java.lang.String |
DATA_TYPE_REFERENCE
|
protected java.util.Vector |
dataType
|
protected static TableRow |
dataTypeDomain
|
protected static java.lang.Object[] |
dataTypeDomainAllowedValues
|
protected java.util.Vector |
defaultValue
|
protected java.util.Vector |
domainRef
|
protected static java.lang.Object[] |
domains
|
protected TableRow |
entity
|
protected java.util.Vector |
entityRef
|
int |
errorRow
|
int |
inheritedAttributes
|
boolean |
modified
|
int |
tableError
|
Fields inherited from class javax.swing.table.DefaultTableModel |
columnIdentifiers,
dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
listenerList |
Fields inherited from interface com.ibm.dse.tools.workbench.base.TableNames |
ALLOWED_VALUES,
ATTRIBUTES,
DOMAINS,
ENTITIES,
ENTITIES_ENTITIES,
GROUPS,
GROUPS_ENTITIES,
GROUPS_GROUPS,
GROUPS_INSTANCES,
INSTANCE_ERRORS,
INSTANCES,
PROPERTIES,
USERS |
Constructor Summary | |
EntityAttributesTableModel(TableRow entity,
java.awt.Window par)
EntityAttributesTableModel constructor. |
Method Summary | |
void |
addAttribute(int index,
TableRow attribute)
This method adds an attribute to the model at position index |
void |
addAttribute(TableRow attribute)
This method adds an attribute to the model at position index |
void |
addAttributes(TableRow[] attributes)
This method adds an attribute to the model at position index |
void |
addInheritedAttributes(java.lang.String code)
This method removes old Inherited Attributes of the table and insert the new ones. |
protected boolean |
checkValue(java.lang.String value,
java.lang.String type)
This method checks if value is allowed in type. |
void |
clearValueAt(int row,
int column)
This method clears valuues in row and column indicated |
java.lang.Class |
getColumnClass(int columnIndex)
Gets the class of the column columnIndex |
int |
getColumnCount()
This method return the number of columns of the model |
java.lang.String |
getColumnName(int columnIndex)
This method returns the name of the column |
int |
getRowCount()
This method returns the number of rows of the model |
java.lang.Object |
getValueAt(int rowIndex,
int columnIndex)
This method returns the value in posiiton RowIndex and columnIndex |
boolean |
hasTableErrors()
This method checks if an error occurred in definition of attributes table, and if it's necessary shows a message. |
boolean |
isCellEditable(int rowIndex,
int columnIndex)
This method checks if a cell is editable. |
void |
removeAttribute(int index)
This method removes index row from the model |
void |
setValueAt(java.lang.Object aValue,
int rowIndex,
int columnIndex)
This methods sets a value at position indicated |
boolean |
validateEntityRef(TableRow entR)
This method validates the value (aValue) of the column EntityRef. |
Methods inherited from class javax.swing.table.DefaultTableModel |
addColumn,
addColumn,
addColumn,
addRow,
addRow,
convertToVector,
convertToVector,
getDataVector,
insertRow,
insertRow,
moveRow,
newDataAvailable,
newRowsAdded,
removeRow,
rowsRemoved,
setColumnIdentifiers,
setColumnIdentifiers,
setDataVector,
setDataVector,
setNumRows |
Methods inherited from class javax.swing.table.AbstractTableModel |
addTableModelListener,
findColumn,
fireTableCellUpdated,
fireTableChanged,
fireTableDataChanged,
fireTableRowsDeleted,
fireTableRowsInserted,
fireTableRowsUpdated,
fireTableStructureChanged,
removeTableModelListener |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static final java.lang.String DATA_TYPE_DOMAIN
protected static final java.lang.String DATA_TYPE_REFERENCE
protected static final java.lang.String DATA_TYPE_DOMAIN_NAME
protected static TableRow dataTypeDomain
protected static java.lang.Object[] dataTypeDomainAllowedValues
protected static java.lang.Object[] domains
protected TableRow entity
public int inheritedAttributes
public java.util.Vector attributes
protected java.util.Vector entityRef
protected java.util.Vector attribRef
protected java.util.Vector domainRef
protected java.util.Vector defaultValue
protected java.util.Vector dataType
public boolean modified
public int tableError
public int errorRow
Constructor Detail |
public EntityAttributesTableModel(TableRow entity, java.awt.Window par)
Method Detail |
public void addAttribute(int index, TableRow attribute)
index
- int Position of the attributeattribute
- com.ibm.dse.tools.workbench.base.TableRowpublic void addAttribute(TableRow attribute)
attribute
- com.ibm.dse.tools.workbench.base.TableRowpublic void addAttributes(TableRow[] attributes)
attribute
- com.ibm.dse.tools.workbench.base.TableRowpublic void addInheritedAttributes(java.lang.String code)
code
- java.lang.String EntityCode to get its attributes.protected boolean checkValue(java.lang.String value, java.lang.String type)
code
- java.lang.String valuecode
- java.lang.String typepublic void clearValueAt(int row, int column)
row
- intcolumn
- intpublic java.lang.Class getColumnClass(int columnIndex)
columnIndex
- int.public int getColumnCount()
public java.lang.String getColumnName(int columnIndex)
public int getRowCount()
public java.lang.Object getValueAt(int rowIndex, int columnIndex)
int
- rowIndexint
- columnIndexpublic boolean hasTableErrors()
public boolean isCellEditable(int rowIndex, int columnIndex)
public void removeAttribute(int index)
int
- indexpublic void setValueAt(java.lang.Object aValue, int rowIndex, int columnIndex)
java.lang.Object
- aValueint
- rowIndexint
- columnIndexpublic boolean validateEntityRef(TableRow entR)
TableRow
- entR Value of the cell, entity to validate.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |