|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.grid.AbstractNode com.jidesoft.grid.AbstractRow com.jidesoft.grid.IndexReferenceRow
public class IndexReferenceRow
An implementation of ReferenceRow
which refers to a row using the row index.
Field Summary |
---|
Fields inherited from class com.jidesoft.grid.AbstractNode |
---|
_parent, PROPERTY_PARENT |
Fields inherited from interface com.jidesoft.grid.Node |
---|
PROPERTY_ADJUSTING |
Fields inherited from interface com.jidesoft.grid.Cacheable |
---|
INVALID_VALUE |
Constructor Summary | |
---|---|
IndexReferenceRow(DefaultGroupTableModel groupTableModel,
TableModel tableModel,
int rowIndex)
|
|
IndexReferenceRow(TableModel tableModel,
int rowIndex)
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
getActualColumnIndex(int columnIndex)
|
Object |
getCachedValue()
Gets the cached value. |
Class |
getCellClassAt(int columnIndex)
Gets the type for the cell at columnIndex . |
ConverterContext |
getConverterContextAt(int columnIndex)
Gets the converter context for the cell at columnIndex . |
EditorContext |
getEditorContextAt(int columnIndex)
Gets the editor context for the cell at columnIndex . |
int |
getRowIndex()
|
TableModel |
getTableModel()
|
TreeTableModel |
getTreeTableModel()
|
Object |
getValueAt(int columnIndex)
Gets the value for cell at columnIndex |
int |
hashCode()
|
void |
invalidateCache()
Invalidates the cache. |
void |
invalidateCache(Object key)
Invalidates the cached value which matches the key. |
boolean |
isCacheValid()
Checks if the cache is valid. |
boolean |
isCellEditable(int columnIndex)
Returns true if the cell at columnIndex is editable. |
void |
setCachedValue(Object value)
Sets the cached value. |
void |
setRowIndex(int rowIndex)
|
void |
setValueAt(Object value,
int columnIndex)
Sets the value in the cell at columnIndex . |
Methods inherited from class com.jidesoft.grid.AbstractRow |
---|
cellUpdated, rowUpdated |
Methods inherited from class com.jidesoft.grid.AbstractNode |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getLevel, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParent |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.grid.Row |
---|
cellUpdated, rowUpdated |
Methods inherited from interface com.jidesoft.grid.Node |
---|
getLevel, getNextSibling, getParent, getPreviousSibling, setParent |
Constructor Detail |
---|
public IndexReferenceRow(TableModel tableModel, int rowIndex)
public IndexReferenceRow(DefaultGroupTableModel groupTableModel, TableModel tableModel, int rowIndex)
Method Detail |
---|
public int getActualColumnIndex(int columnIndex)
public Object getValueAt(int columnIndex)
Row
columnIndex
getValueAt
in interface Row
columnIndex
- the column whose value to be queried
public int getRowIndex()
public void setRowIndex(int rowIndex)
public TreeTableModel getTreeTableModel()
getTreeTableModel
in interface GroupRow
public TableModel getTableModel()
public ConverterContext getConverterContextAt(int columnIndex)
Row
columnIndex
.
getConverterContextAt
in interface Row
getConverterContextAt
in class AbstractRow
columnIndex
- the column index
public EditorContext getEditorContextAt(int columnIndex)
Row
columnIndex
.
getEditorContextAt
in interface Row
getEditorContextAt
in class AbstractRow
columnIndex
- the column index
public Class getCellClassAt(int columnIndex)
Row
columnIndex
.
getCellClassAt
in interface Row
getCellClassAt
in class AbstractRow
columnIndex
- the column index
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public Object getCachedValue()
Cacheable
getCachedValue
in interface Cacheable
public void setCachedValue(Object value)
Cacheable
setCachedValue
in interface Cacheable
value
- the new cached value.public boolean isCacheValid()
Cacheable
Cacheable.invalidateCache()
will make this method return false.
isCacheValid
in interface Cacheable
public void invalidateCache()
Cacheable
Cacheable.INVALID_VALUE
.
invalidateCache
in interface Cacheable
public void invalidateCache(Object key)
Cacheable
Cacheable.INVALID_VALUE
if
current cached value matches the key.
invalidateCache
in interface Cacheable
key
- the keypublic boolean isCellEditable(int columnIndex)
Row
columnIndex
is editable. Otherwise, setValueAt
on the cell
will not change the value of that cell.
isCellEditable
in interface Row
isCellEditable
in class AbstractRow
columnIndex
- the column whose value to be queried
Row.setValueAt(java.lang.Object, int)
public void setValueAt(Object value, int columnIndex)
Row
columnIndex
.
setValueAt
in interface Row
setValueAt
in class AbstractRow
value
- the new valuecolumnIndex
- the column whose value is to be changedRow.getValueAt(int)
,
Row.isCellEditable(int)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |