com.intel.gpe.client2.common.panels.remotefs
Class GRIDNode

java.lang.Object
  extended by com.intel.gpe.client2.common.panels.tree.BaseNode
      extended by com.intel.gpe.client2.common.panels.remotefs.GRIDNode
All Implemented Interfaces:
ObjectWithIcon, RemoteFileChooserNode, Node, com.intel.gpe.util.observer.IObserver, java.lang.Comparable<Node>

public class GRIDNode
extends BaseNode
implements com.intel.gpe.util.observer.IObserver, RemoteFileChooserNode

The top-most node. It is named "GRID".

Version:
$Id: GRIDNode.java,v 1.16 2006/10/19 13:40:52 dizhigul Exp $
Author:
Alexander Lukichev

Nested Class Summary
protected static class GRIDNode.GetRegistriesRequest
           
 
Field Summary
 
Fields inherited from class com.intel.gpe.client2.common.panels.tree.BaseNode
contentsChangeListeners, listeners, nodeChangeListeners
 
Constructor Summary
GRIDNode(GridTreeModel model, AsyncClient asyncClient, java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries, boolean onlyDirectories, MessageAdapter messageAdapter)
          Deprecated. 
GRIDNode(GridTreeModel model, AsyncClient asyncClient, java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries, boolean onlyDirectories, MessageProvider messageProvider)
           
GRIDNode(GridTreeModel model, Client client, boolean onlyDirectories, MessageAdapter messageAdapter)
          Deprecated. 
 
Method Summary
 java.lang.String getIconPath()
           
 PathElement getPathElement()
           
 boolean isLeaf()
          Check if the node is a leaf.
 boolean matches(PathElement pathElement)
          Test if the node matches the path element.
 void observableUpdate(java.lang.Object theObserved, java.lang.Object changeCode)
           
 void refresh()
          Refresh the list of the children.
 void requestChildren()
          Get the child nodes.
 void requestContents()
          Get the contents of the node.
 void setRegistries(java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries)
           
 java.lang.String toString()
           
 
Methods inherited from class com.intel.gpe.client2.common.panels.tree.BaseNode
addChildrenChangeListener, addContentsChangeListener, compareTo, executeRequest, getAsyncClient, getChild, getChildCount, getChildren, getContents, getIndex, getMessageAdapter, getMessageProvider, getModel, getPath, notifyContentsChangeListener, notifyNodeChanged, removeChildrenChangeListener, removeContentsChangeListener, setChildren, setContents, setModel, showException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GRIDNode

@Deprecated
public GRIDNode(GridTreeModel model,
                           AsyncClient asyncClient,
                           java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries,
                           boolean onlyDirectories,
                           MessageAdapter messageAdapter)
Deprecated. 


GRIDNode

public GRIDNode(GridTreeModel model,
                AsyncClient asyncClient,
                java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries,
                boolean onlyDirectories,
                MessageProvider messageProvider)

GRIDNode

@Deprecated
public GRIDNode(GridTreeModel model,
                           Client client,
                           boolean onlyDirectories,
                           MessageAdapter messageAdapter)
Deprecated. 

Method Detail

refresh

public void refresh()
Description copied from class: BaseNode
Refresh the list of the children. After the refresh is completed the listeners are invoked.

Overrides:
refresh in class BaseNode

setRegistries

public void setRegistries(java.util.List<ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String>> registries)

requestChildren

public void requestChildren()
Description copied from class: BaseNode
Get the child nodes. This method is called whenever child nodes must be updated. The implementation should modify (if necessary) the child list with BaseNode.setChildren(List) method.

Specified by:
requestChildren in class BaseNode

requestContents

public void requestContents()
Description copied from class: BaseNode
Get the contents of the node. This may be not children nodes but some other information.

Specified by:
requestContents in class BaseNode

isLeaf

public boolean isLeaf()
Description copied from interface: Node
Check if the node is a leaf.

Specified by:
isLeaf in interface Node
Returns:
true if the node if a leaf, false otherwise.

getPathElement

public PathElement getPathElement()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

observableUpdate

public void observableUpdate(java.lang.Object theObserved,
                             java.lang.Object changeCode)
Specified by:
observableUpdate in interface com.intel.gpe.util.observer.IObserver

getIconPath

public java.lang.String getIconPath()
Specified by:
getIconPath in interface ObjectWithIcon
Overrides:
getIconPath in class BaseNode

matches

public boolean matches(PathElement pathElement)
Description copied from interface: RemoteFileChooserNode
Test if the node matches the path element.

Specified by:
matches in interface RemoteFileChooserNode
Parameters:
pathElement - - the path element to match
Returns:
true if the node matches the supplied path element, false otherwise.


Copyright © 2008. All Rights Reserved.