com.intel.gpe.client2.common.panels.targetsystemchooser
Class TargetSystemNode

java.lang.Object
  extended by com.intel.gpe.client2.common.panels.tree.BaseNode
      extended by com.intel.gpe.client2.common.panels.targetsystemchooser.TargetSystemNode
All Implemented Interfaces:
ObjectWithIcon, RegistryOrChildNode, TargetSystemChooserNode, TargetSystemOrChildNode, Node, java.lang.Comparable<Node>

public class TargetSystemNode
extends BaseNode
implements RegistryOrChildNode, TargetSystemOrChildNode, TargetSystemChooserNode

The node representing a target system.

Version:
$Id: TargetSystemNode.java,v 1.5 2007/02/15 12:51:14 vashorin Exp $
Author:
Alexander Lukichev

Field Summary
 
Fields inherited from class com.intel.gpe.client2.common.panels.tree.BaseNode
contentsChangeListeners, listeners, nodeChangeListeners
 
Constructor Summary
TargetSystemNode(GridTreeModel model, RegistryNode parent, AsyncClient asyncClient, ClientWrapper<com.intel.gpe.clients.api.TargetSystemClient,?> clientWrapper, MessageAdapter messageAdapter)
          Deprecated. 
TargetSystemNode(GridTreeModel model, RegistryNode parent, AsyncClient asyncClient, ClientWrapper<com.intel.gpe.clients.api.TargetSystemClient,?> clientWrapper, MessageProvider messageProvider)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIconPath()
           
 PathElement getPathElement()
          Get the path element representing the node.
 ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String> getRegistry()
          Get the client to the registry.
 ClientWrapper getTargetSystem()
          Get the target system client associated either with the target system node or the storage node or the file location.
 boolean isLeaf()
          Check if the node is a leaf.
 boolean matches(PathElement pathElement)
          Test if the node matches the path element.
 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
 
Methods inherited from interface com.intel.gpe.client2.common.panels.tree.Node
getChild, getChildCount, getIndex, getPath
 
Methods inherited from interface com.intel.gpe.client2.common.panels.tree.Node
getChild, getChildCount, getIndex, getPath
 

Constructor Detail

TargetSystemNode

@Deprecated
public TargetSystemNode(GridTreeModel model,
                                   RegistryNode parent,
                                   AsyncClient asyncClient,
                                   ClientWrapper<com.intel.gpe.clients.api.TargetSystemClient,?> clientWrapper,
                                   MessageAdapter messageAdapter)
Deprecated. 


TargetSystemNode

public TargetSystemNode(GridTreeModel model,
                        RegistryNode parent,
                        AsyncClient asyncClient,
                        ClientWrapper<com.intel.gpe.clients.api.TargetSystemClient,?> clientWrapper,
                        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

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.

toString

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

getPathElement

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

Returns:
the path element for the node.

equals

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

getTargetSystem

public ClientWrapper getTargetSystem()
Description copied from interface: TargetSystemOrChildNode
Get the target system client associated either with the target system node or the storage node or the file location.

Specified by:
getTargetSystem in interface TargetSystemOrChildNode
Returns:
The target system.

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: TargetSystemChooserNode
Test if the node matches the path element.

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

getRegistry

public ClientWrapper<com.intel.gpe.clients.api.RegistryClient,java.lang.String> getRegistry()
Get the client to the registry.

Specified by:
getRegistry in interface RegistryOrChildNode
Returns:
- the client to the registry


Copyright © 2008. All Rights Reserved.