|
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.DefaultWrappedRow
public class DefaultWrappedRow
The default wrapped row class used by ColumnTableModelWrapper.
Field Summary |
---|
Fields inherited from interface com.jidesoft.grid.Expandable |
---|
PROPERTY_EXPANDABLE, PROPERTY_EXPANDED |
Fields inherited from interface com.jidesoft.grid.Node |
---|
PROPERTY_ADJUSTING |
Constructor Summary | |
---|---|
DefaultWrappedRow(ColumnTableModelWrapper wrapperModel,
ExpandableRow originalRow)
The constructor. |
Method Summary | |
---|---|
Object |
addChild(int index,
Object child)
Adds a child to the list of children at the specified index. |
Object |
addChild(Object child)
Adds child to the list of children. |
void |
addChildren(int index,
List<? extends Row> children)
Adds a list of children. |
void |
cellUpdated(int columnIndex)
Notifies the cell at the specified column is updated. |
boolean |
equals(Object obj)
|
int |
getAllVisibleChildrenCount()
Gets the children count after filtering. |
Class<?> |
getCellClassAt(int columnIndex)
Gets the type for the cell at columnIndex . |
Object |
getChildAt(int index)
Gets child at certain index. |
int |
getChildIndex(Object child)
Gets the index of the child if exists. |
List<?> |
getChildren()
Gets the list of children. |
int |
getChildrenCount()
Gets the children count. |
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 |
getLevel()
Gets the number of level counting from the first level. |
Node |
getNextSibling()
Gets next sibling of current node. |
int |
getNumberOfVisibleExpandable()
Gets the number of visible expandable, include itself. |
ExpandableRow |
getOriginalRow()
Gets the original row. |
Expandable |
getParent()
Gets the parent of this expandable. |
Node |
getPreviousSibling()
Gets previous sibling of current node. |
Object |
getValueAt(int columnIndex)
Gets the value for cell at columnIndex |
boolean |
hasChildren()
Checks if the expandable has children. |
int |
hashCode()
|
boolean |
isCellEditable(int columnIndex)
Returns true if the cell at columnIndex is editable. |
boolean |
isExpandable()
Checks if it is expandable. |
boolean |
isExpanded()
Checks if it is expanded. |
boolean |
moveDownChild(Object child)
Moves down the child in the children list. |
boolean |
moveUpChild(Object child)
Moves up the child in the children list. |
void |
notifyCellUpdated(Object child,
int columnIndex)
Notifies the child is updated. |
void |
notifyChildDeleted(Object child)
Notifies a child is deleted. |
void |
notifyChildInserted(Object child,
int childIndex)
Notifies the child is inserted as the specified index of this expandable. |
void |
notifyChildrenDeleted(List<? extends Row> children)
Notifies the children are deleted. |
void |
notifyChildrenInserted(List children,
int firstIndex)
Notifies the children are inserted as the specified index arrange of this expandable. |
void |
notifyChildrenUpdated(List<? extends Row> children)
Notifies the children are updated. |
void |
notifyChildUpdated(Object child)
Notifies the child is updated. |
void |
removeAllChildren()
Removes all children from this expandable. |
boolean |
removeChild(Object child)
Removes child from the list of children. |
boolean |
removeChildren(List<? extends Row> children)
Removes children from the list of children. |
void |
rowUpdated()
Notifies the row is updated. |
void |
setChildren(List<?> children)
Sets the list of children. |
void |
setExpandable(boolean expandable)
Sets the expandable attribute. |
void |
setExpanded(boolean expanded)
Sets the expanded attribute. |
void |
setParent(Expandable parent)
Sets the parent of this expandable. |
void |
setValueAt(Object value,
int columnIndex)
Sets the value in the cell at columnIndex . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultWrappedRow(ColumnTableModelWrapper wrapperModel, ExpandableRow originalRow)
wrapperModel
- the column wrapper table modeloriginalRow
- the original rowMethod Detail |
---|
public ExpandableRow getOriginalRow()
WrappedRow
getOriginalRow
in interface WrappedRow
public 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
columnIndex
- the column whose value to be queried
Row.setValueAt(java.lang.Object, int)
public Object getValueAt(int columnIndex)
Row
columnIndex
getValueAt
in interface Row
columnIndex
- the column whose value to be queried
public void setValueAt(Object value, int columnIndex)
Row
columnIndex
.
setValueAt
in interface Row
value
- the new valuecolumnIndex
- the column whose value is to be changedRow.getValueAt(int)
,
Row.isCellEditable(int)
public ConverterContext getConverterContextAt(int columnIndex)
Row
columnIndex
.
getConverterContextAt
in interface Row
columnIndex
- the column index
public EditorContext getEditorContextAt(int columnIndex)
Row
columnIndex
.
getEditorContextAt
in interface Row
columnIndex
- the column index
public Class<?> getCellClassAt(int columnIndex)
Row
columnIndex
.
getCellClassAt
in interface Row
columnIndex
- the column index
public void cellUpdated(int columnIndex)
Row
cellUpdated
in interface Row
columnIndex
- the column index the column index.public void rowUpdated()
Row
Row.cellUpdated(int)
instead.
rowUpdated
in interface Row
public int getLevel()
Node
getLevel
in interface Node
public Expandable getParent()
Node
getParent
in interface Node
public void setParent(Expandable parent)
Node
setParent
in interface Node
public Node getPreviousSibling()
Node
getPreviousSibling
in interface Node
public Node getNextSibling()
Node
getNextSibling
in interface Node
public void notifyCellUpdated(Object child, int columnIndex)
ExpandableRow
notifyCellUpdated
in interface ExpandableRow
child
- the child which is updatedcolumnIndex
- the column index.public boolean isExpanded()
Expandable
isExpanded
in interface Expandable
public void setExpanded(boolean expanded)
Expandable
setExpanded
in interface Expandable
expanded
- true or falsepublic boolean isExpandable()
Expandable
isExpandable
in interface Expandable
public void setExpandable(boolean expandable)
Expandable
setExpandable
in interface Expandable
expandable
- true or false.public boolean hasChildren()
Expandable
hasChildren
in interface Expandable
public void removeAllChildren()
Expandable
removeAllChildren
in interface Expandable
public int getChildrenCount()
Expandable
getChildrenCount
in interface Expandable
public int getAllVisibleChildrenCount()
Expandable
Row
implements
Cachedable
. In the other word, this method will not do the filter. It will simply look at the cached
value after filtered was done by FilterableTreeTableModel
.
getAllVisibleChildrenCount
in interface Expandable
public List<?> getChildren()
Expandable
getChildren
in interface Expandable
public void setChildren(List<?> children)
Expandable
setChildren
in interface Expandable
children
- the list of childrenpublic Object addChild(Object child)
Expandable
addChild
in interface Expandable
child
- the child to be added.
public Object addChild(int index, Object child)
Expandable
addChild
in interface Expandable
index
- the index where the child will be added.child
- the child to be added.
public void addChildren(int index, List<? extends Row> children)
Expandable
addChildren
in interface Expandable
index
- the index where the children to be inserted.children
- the children to be added.public boolean removeChild(Object child)
Expandable
removeChild
in interface Expandable
child
- the child to be removed.
public boolean removeChildren(List<? extends Row> children)
Expandable
removeChildren(getChildren());
You would use the following line to remove all children.
List children = getChildren();
List cloneList = new ArrayList();
cloneList.addAll(children);
removeChildren(cloneList);
removeChildren
in interface Expandable
children
- the child to be removed.
public boolean moveUpChild(Object child)
Expandable
moveUpChild
in interface Expandable
child
- the child to be moved up.
public boolean moveDownChild(Object child)
Expandable
moveDownChild
in interface Expandable
child
- the child to be moved down.
public int getChildIndex(Object child)
Expandable
getChildIndex
in interface Expandable
child
- the child
public Object getChildAt(int index)
Expandable
getChildAt
in interface Expandable
index
- the index of the child.
public int getNumberOfVisibleExpandable()
Expandable
getNumberOfVisibleExpandable
in interface Expandable
public void notifyChildInserted(Object child, int childIndex)
Expandable
notifyChildInserted
in interface Expandable
child
- the child which is inserted.childIndex
- the index where it is inserted. -1 if the child is inserted as the last one.public void notifyChildrenInserted(List children, int firstIndex)
Expandable
notifyChildrenInserted
in interface Expandable
children
- the children which are inserted.firstIndex
- the first index where it is inserted.public void notifyChildDeleted(Object child)
Expandable
notifyChildDeleted
in interface Expandable
child
- the child that is deletedpublic void notifyChildrenDeleted(List<? extends Row> children)
Expandable
notifyChildrenDeleted
in interface Expandable
children
- the children that are deletedpublic void notifyChildUpdated(Object child)
Expandable
notifyChildUpdated
in interface Expandable
child
- the child which is updatedpublic void notifyChildrenUpdated(List<? extends Row> children)
Expandable
notifyChildrenUpdated
in interface Expandable
children
- the children which are updatedpublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |