|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.intel.gpe.client2.common.panels.tree.BaseNode
public abstract class BaseNode
The base class for Grid Tree nodes.
Field Summary | |
---|---|
protected java.util.List<ContentsChangeListener> |
contentsChangeListeners
|
protected java.util.List<ChildrenChangeListener> |
listeners
|
protected java.util.List<NodeChangeListener> |
nodeChangeListeners
|
Constructor Summary | |
---|---|
BaseNode(GridTreeModel model,
Node parent,
AsyncClient asyncClient,
MessageAdapter messageAdapter)
Deprecated. |
|
BaseNode(GridTreeModel model,
Node parent,
AsyncClient asyncClient,
MessageProvider messageProvider)
|
Method Summary | |
---|---|
void |
addChildrenChangeListener(ChildrenChangeListener l)
Add the listener of changes in the list of the children |
void |
addContentsChangeListener(ContentsChangeListener listener)
|
int |
compareTo(Node node)
|
void |
executeRequest(Request request,
com.intel.gpe.util.observer.IObserver observer)
|
AsyncClient |
getAsyncClient()
|
Node |
getChild(int i)
Get the child specified with the index. |
int |
getChildCount()
Get the number of children nodes. |
java.util.List<Node> |
getChildren()
Get the currently cached list of the children. |
java.util.List |
getContents()
Get the currently cached contents of the node. |
java.lang.String |
getIconPath()
|
int |
getIndex(Node node)
Get the index of the child. |
MessageAdapter |
getMessageAdapter()
Deprecated. use getMessageProvider() instead |
MessageProvider |
getMessageProvider()
|
GridTreeModel |
getModel()
Get the tree model. |
java.lang.Object[] |
getPath()
Get the path to the node. |
void |
notifyContentsChangeListener(java.util.List contents)
|
void |
notifyNodeChanged()
Send the notification to the listeners of the node state (not including the children change listeners) |
void |
refresh()
Refresh the list of the children. |
void |
removeChildrenChangeListener(ChildrenChangeListener l)
Remove the listener of changes in the list of the children |
void |
removeContentsChangeListener(ContentsChangeListener listener)
|
abstract void |
requestChildren()
Get the child nodes. |
abstract void |
requestContents()
Get the contents of the node. |
void |
setChildren(java.util.List<Node> children)
Set the child nodes. |
void |
setContents(java.util.List contents)
Set the contents |
void |
setModel(GridTreeModel model)
|
void |
showException(java.lang.String message,
java.lang.Throwable e)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.intel.gpe.client2.common.panels.tree.Node |
---|
isLeaf |
Field Detail |
---|
protected java.util.List<ChildrenChangeListener> listeners
protected java.util.List<NodeChangeListener> nodeChangeListeners
protected java.util.List<ContentsChangeListener> contentsChangeListeners
Constructor Detail |
---|
@Deprecated public BaseNode(GridTreeModel model, Node parent, AsyncClient asyncClient, MessageAdapter messageAdapter)
public BaseNode(GridTreeModel model, Node parent, AsyncClient asyncClient, MessageProvider messageProvider)
Method Detail |
---|
public void notifyNodeChanged()
public abstract void requestChildren()
setChildren(List)
method.
public abstract void requestContents()
public void refresh()
public java.util.List<Node> getChildren()
null
then a children request is
started and an empty list is returned.
null
!) if no children cached.public java.util.List getContents()
null
then the request of
the contents is invoked.
public void setChildren(java.util.List<Node> children)
children
- new child node listpublic void setContents(java.util.List contents)
contents
- -
the contentspublic void addChildrenChangeListener(ChildrenChangeListener l)
l
- -
the listenerpublic void removeChildrenChangeListener(ChildrenChangeListener l)
l
- -
the listenerpublic void notifyContentsChangeListener(java.util.List contents)
public void addContentsChangeListener(ContentsChangeListener listener)
public void removeContentsChangeListener(ContentsChangeListener listener)
public int getChildCount()
Node
getChildCount
in interface Node
public Node getChild(int i)
Node
getChild
in interface Node
i
- The index of the child to get
public java.lang.Object[] getPath()
Node
getPath
in interface Node
public GridTreeModel getModel()
public void executeRequest(Request request, com.intel.gpe.util.observer.IObserver observer)
public AsyncClient getAsyncClient()
public void showException(java.lang.String message, java.lang.Throwable e)
@Deprecated public MessageAdapter getMessageAdapter()
getMessageProvider()
instead
public MessageProvider getMessageProvider()
public void setModel(GridTreeModel model)
public java.lang.String getIconPath()
getIconPath
in interface ObjectWithIcon
public int getIndex(Node node)
Node
-1
is
returned.
getIndex
in interface Node
node
- -
the node
public int compareTo(Node node)
compareTo
in interface java.lang.Comparable<Node>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |