rcx.rcxtools.filebrowser
Class ListNode

java.lang.Object
  extended by rcx.rcxtools.filebrowser.ListNode

public class ListNode
extends java.lang.Object

The representation of a list entry of a ListBrowser. An ListNode is used internally by the ListBrowser to store informations related to an entry.

Author:
Thierry.Kormann@sophia.inria.fr

Constructor Summary
ListNode(java.awt.Image image, java.awt.Image simage, java.lang.String name, java.lang.Object item)
          Constructs a new ListNode with the specified image, name and item.
ListNode(java.net.URL url, java.net.URL surl, java.lang.String name, java.lang.Object item)
          Constructs a new ListNode.
 
Method Summary
 java.awt.Image getIconImage()
          Gets the Image of this icon.
 java.net.URL getIconURL()
          Gets the URL of this IconNode.
 java.lang.Object getItem()
          Gets the item of this node.
 boolean isSelected()
          Returns true if this node is selected, false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListNode

public ListNode(java.net.URL url,
                java.net.URL surl,
                java.lang.String name,
                java.lang.Object item)
Constructs a new ListNode.

Parameters:
url - the icon url
surl - the selected icon url
name - the entry name
item - the client data

ListNode

public ListNode(java.awt.Image image,
                java.awt.Image simage,
                java.lang.String name,
                java.lang.Object item)
Constructs a new ListNode with the specified image, name and item.

Parameters:
image - the icon
simage - the selected icon
name - the entry name
item - the client data
Method Detail

isSelected

public boolean isSelected()
Returns true if this node is selected, false otherwise.


getIconURL

public java.net.URL getIconURL()
Gets the URL of this IconNode.


getItem

public java.lang.Object getItem()
Gets the item of this node.


getIconImage

public java.awt.Image getIconImage()
Gets the Image of this icon.