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

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

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

The node representing a registry.

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

Nested Class Summary
protected static class RegistryNode.GetTargetSystemsWithNamesRequest
           
protected static class RegistryNode.NamedTargetSystem
           
 
Field Summary
 
Fields inherited from class com.intel.gpe.client2.common.panels.tree.BaseNode
contentsChangeListeners, listeners, nodeChangeListeners
 
Constructor Summary
RegistryNode(GridTreeModel model, Node parent, AsyncClient asyncClient, com.intel.gpe.clients.api.RegistryClient registry, java.lang.String name, boolean onlyDirectories, MessageAdapter messageAdapter)
          Deprecated. 
RegistryNode(GridTreeModel model, Node parent, AsyncClient asyncClient, com.intel.gpe.clients.api.RegistryClient registry, java.lang.String name, boolean onlyDirectories, MessageProvider messageProvider)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIconPath()
           
 PathElement getPathElement()
          Get the path element representing the node.
 com.intel.gpe.clients.api.RegistryClient getRegistry()
          Get the client to the registry.
 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.
 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegistryNode

@Deprecated
public RegistryNode(GridTreeModel model,
                               Node parent,
                               AsyncClient asyncClient,
                               com.intel.gpe.clients.api.RegistryClient registry,
                               java.lang.String name,
                               boolean onlyDirectories,
                               MessageAdapter messageAdapter)
Deprecated. 


RegistryNode

public RegistryNode(GridTreeModel model,
                    Node parent,
                    AsyncClient asyncClient,
                    com.intel.gpe.clients.api.RegistryClient registry,
                    java.lang.String name,
                    boolean onlyDirectories,
                    MessageProvider messageProvider)
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

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

getRegistry

public com.intel.gpe.clients.api.RegistryClient getRegistry()
Get the client to the registry.

Returns:
- the client to the registry

getPathElement

public PathElement getPathElement()
Get the path element representing the node.

Returns:
the path element for the node.

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.

observableUpdate

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

toString

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

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.