|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 row| Method Detail |
|---|
public ExpandableRow getOriginalRow()
WrappedRow
getOriginalRow in interface WrappedRowpublic boolean isCellEditable(int columnIndex)
RowcolumnIndex is editable. Otherwise, setValueAt on the cell
will not change the value of that cell.
isCellEditable in interface RowcolumnIndex - the column whose value to be queried
Row.setValueAt(java.lang.Object, int)public Object getValueAt(int columnIndex)
RowcolumnIndex
getValueAt in interface RowcolumnIndex - the column whose value to be queried
public void setValueAt(Object value,
int columnIndex)
RowcolumnIndex.
setValueAt in interface Rowvalue - the new valuecolumnIndex - the column whose value is to be changedRow.getValueAt(int),
Row.isCellEditable(int)public ConverterContext getConverterContextAt(int columnIndex)
RowcolumnIndex.
getConverterContextAt in interface RowcolumnIndex - the column index
public EditorContext getEditorContextAt(int columnIndex)
RowcolumnIndex.
getEditorContextAt in interface RowcolumnIndex - the column index
public Class<?> getCellClassAt(int columnIndex)
RowcolumnIndex.
getCellClassAt in interface RowcolumnIndex - the column index
public void cellUpdated(int columnIndex)
Row
cellUpdated in interface RowcolumnIndex - the column index the column index.public void rowUpdated()
RowRow.cellUpdated(int) instead.
rowUpdated in interface Rowpublic int getLevel()
Node
getLevel in interface Nodepublic Expandable getParent()
Node
getParent in interface Nodepublic void setParent(Expandable parent)
Node
setParent in interface Nodepublic Node getPreviousSibling()
Node
getPreviousSibling in interface Nodepublic Node getNextSibling()
Node
getNextSibling in interface Node
public void notifyCellUpdated(Object child,
int columnIndex)
ExpandableRow
notifyCellUpdated in interface ExpandableRowchild - the child which is updatedcolumnIndex - the column index.public boolean isExpanded()
Expandable
isExpanded in interface Expandablepublic void setExpanded(boolean expanded)
Expandable
setExpanded in interface Expandableexpanded - true or falsepublic boolean isExpandable()
Expandable
isExpandable in interface Expandablepublic void setExpandable(boolean expandable)
Expandable
setExpandable in interface Expandableexpandable - true or false.public boolean hasChildren()
Expandable
hasChildren in interface Expandablepublic void removeAllChildren()
Expandable
removeAllChildren in interface Expandablepublic int getChildrenCount()
Expandable
getChildrenCount in interface Expandablepublic int getAllVisibleChildrenCount()
ExpandableRow 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 Expandablepublic List<?> getChildren()
Expandable
getChildren in interface Expandablepublic void setChildren(List<?> children)
Expandable
setChildren in interface Expandablechildren - the list of childrenpublic Object addChild(Object child)
Expandable
addChild in interface Expandablechild - the child to be added.
public Object addChild(int index,
Object child)
Expandable
addChild in interface Expandableindex - 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 Expandableindex - the index where the children to be inserted.children - the children to be added.public boolean removeChild(Object child)
Expandable
removeChild in interface Expandablechild - 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 Expandablechildren - the child to be removed.
public boolean moveUpChild(Object child)
Expandable
moveUpChild in interface Expandablechild - the child to be moved up.
public boolean moveDownChild(Object child)
Expandable
moveDownChild in interface Expandablechild - the child to be moved down.
public int getChildIndex(Object child)
Expandable
getChildIndex in interface Expandablechild - the child
public Object getChildAt(int index)
Expandable
getChildAt in interface Expandableindex - the index of the child.
public int getNumberOfVisibleExpandable()
Expandable
getNumberOfVisibleExpandable in interface Expandable
public void notifyChildInserted(Object child,
int childIndex)
Expandable
notifyChildInserted in interface Expandablechild - 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 Expandablechildren - the children which are inserted.firstIndex - the first index where it is inserted.public void notifyChildDeleted(Object child)
Expandable
notifyChildDeleted in interface Expandablechild - the child that is deletedpublic void notifyChildrenDeleted(List<? extends Row> children)
Expandable
notifyChildrenDeleted in interface Expandablechildren - the children that are deletedpublic void notifyChildUpdated(Object child)
Expandable
notifyChildUpdated in interface Expandablechild - the child which is updatedpublic void notifyChildrenUpdated(List<? extends Row> children)
Expandable
notifyChildrenUpdated in interface Expandablechildren - the children which are updatedpublic int hashCode()
hashCode in class Objectpublic 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 | ||||||||