|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Expandable
An interface to indicate an object that has children and can be expanded and collapsed.
| Field Summary | |
|---|---|
static String |
PROPERTY_EXPANDABLE
|
static String |
PROPERTY_EXPANDED
|
| Fields inherited from interface com.jidesoft.grid.Node |
|---|
PROPERTY_ADJUSTING |
| 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. |
int |
getAllVisibleChildrenCount()
Gets the children count after filtering. |
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. |
int |
getNumberOfVisibleExpandable()
Gets the number of visible expandable, include itself. |
boolean |
hasChildren()
Checks if the expandable has children. |
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 |
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 |
setChildren(List<?> children)
Sets the list of children. |
void |
setExpandable(boolean expandable)
Sets the expandable attribute. |
void |
setExpanded(boolean expanded)
Sets the expanded attribute. |
| Methods inherited from interface com.jidesoft.grid.Node |
|---|
getLevel, getNextSibling, getParent, getPreviousSibling, setParent |
| Field Detail |
|---|
static final String PROPERTY_EXPANDED
static final String PROPERTY_EXPANDABLE
| Method Detail |
|---|
boolean isExpanded()
void setExpanded(boolean expanded)
expanded - true or falseboolean isExpandable()
void setExpandable(boolean expandable)
expandable - true or false.boolean hasChildren()
void removeAllChildren()
int getChildrenCount()
int getAllVisibleChildrenCount()
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.
List<?> getChildren()
void setChildren(List<?> children)
children - the list of childrenObject addChild(Object child)
child - the child to be added.
Object addChild(int index,
Object child)
index - the index where the child will be added.child - the child to be added.
void addChildren(int index,
List<? extends Row> children)
index - the index where the children to be inserted.children - the children to be added.boolean removeChild(Object child)
child - the child to be removed.
boolean removeChildren(List<? extends Row> children)
removeChildren(getChildren());
You would use the following line to remove all children.
List children = getChildren();
List cloneList = new ArrayList();
cloneList.addAll(children);
removeChildren(cloneList);
children - the child to be removed.
boolean moveUpChild(Object child)
child - the child to be moved up.
boolean moveDownChild(Object child)
child - the child to be moved down.
int getChildIndex(Object child)
child - the child
Object getChildAt(int index)
index - the index of the child.
int getNumberOfVisibleExpandable()
void notifyChildInserted(Object child,
int childIndex)
child - the child which is inserted.childIndex - the index where it is inserted. -1 if the child is inserted as the last one.
void notifyChildrenInserted(List children,
int firstIndex)
children - the children which are inserted.firstIndex - the first index where it is inserted.void notifyChildDeleted(Object child)
child - the child that is deletedvoid notifyChildrenDeleted(List<? extends Row> children)
children - the children that are deletedvoid notifyChildUpdated(Object child)
child - the child which is updatedvoid notifyChildrenUpdated(List<? extends Row> children)
children - the children which are updated
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||