net.sf.panoptes.model.node
Class Node

java.lang.Object
  |
  +--net.sf.panoptes.model.node.Node
Direct Known Subclasses:
Component, SymLinkNode

public abstract class Node
extends java.lang.Object

Node.java Interface to be implemented by all objects to be displayed in the element tree.

Version:
0.1
Author:
dag@liodden.no

Field Summary
static org.eclipse.swt.graphics.Image ICON_BROKEN_LINK
           
static org.eclipse.swt.graphics.Image ICON_CONNECTION
           
static org.eclipse.swt.graphics.Image ICON_CONNECTIONS_FOLDER
           
static org.eclipse.swt.graphics.Image ICON_DATASOURCE
           
static org.eclipse.swt.graphics.Image ICON_DOMAIN
           
static org.eclipse.swt.graphics.Image ICON_ERROR
           
static org.eclipse.swt.graphics.Image ICON_FOLDER
           
static org.eclipse.swt.graphics.Image ICON_INFO
           
static org.eclipse.swt.graphics.Image ICON_LOG
           
static org.eclipse.swt.graphics.Image ICON_LOG_FOLDER
           
static org.eclipse.swt.graphics.Image ICON_MBEAN
           
static org.eclipse.swt.graphics.Image ICON_QUERY_FOLDER
           
static org.eclipse.swt.graphics.Image ICON_SERVER
           
static org.eclipse.swt.graphics.Image ICON_SERVICE
           
static org.eclipse.swt.graphics.Image ICON_SESSION
           
static org.eclipse.swt.graphics.Image ICON_USER
           
static org.eclipse.swt.graphics.Image ICON_WARNING
           
 
Constructor Summary
Node()
           
 
Method Summary
abstract  boolean acceptsChildren()
           
 void addUpdateListener(NodeUpdateListener listener)
           
static org.eclipse.swt.graphics.Image createImage(java.lang.String iconName)
           
abstract  Node[] getChildren()
           
abstract  NodeDescriptor getConfigDescriptor()
           
abstract  java.lang.String[] getConfiguratorScripts()
           
abstract  org.eclipse.swt.graphics.Image getIcon()
           
 void notifyListeners(NodeUpdateEvent event)
           
 void removeUpdateListener(NodeUpdateListener listener)
           
 void setConfigDescriptor(NodeDescriptor configDescriptor)
           
 void setIcon(org.eclipse.swt.graphics.Image icon)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ICON_SERVER

public static final org.eclipse.swt.graphics.Image ICON_SERVER

ICON_SERVICE

public static final org.eclipse.swt.graphics.Image ICON_SERVICE

ICON_MBEAN

public static final org.eclipse.swt.graphics.Image ICON_MBEAN

ICON_LOG

public static final org.eclipse.swt.graphics.Image ICON_LOG

ICON_LOG_FOLDER

public static final org.eclipse.swt.graphics.Image ICON_LOG_FOLDER

ICON_SESSION

public static final org.eclipse.swt.graphics.Image ICON_SESSION

ICON_DATASOURCE

public static final org.eclipse.swt.graphics.Image ICON_DATASOURCE

ICON_CONNECTION

public static final org.eclipse.swt.graphics.Image ICON_CONNECTION

ICON_CONNECTIONS_FOLDER

public static final org.eclipse.swt.graphics.Image ICON_CONNECTIONS_FOLDER

ICON_FOLDER

public static final org.eclipse.swt.graphics.Image ICON_FOLDER

ICON_QUERY_FOLDER

public static final org.eclipse.swt.graphics.Image ICON_QUERY_FOLDER

ICON_USER

public static final org.eclipse.swt.graphics.Image ICON_USER

ICON_DOMAIN

public static final org.eclipse.swt.graphics.Image ICON_DOMAIN

ICON_ERROR

public static final org.eclipse.swt.graphics.Image ICON_ERROR

ICON_WARNING

public static final org.eclipse.swt.graphics.Image ICON_WARNING

ICON_INFO

public static final org.eclipse.swt.graphics.Image ICON_INFO

ICON_BROKEN_LINK

public static final org.eclipse.swt.graphics.Image ICON_BROKEN_LINK
Constructor Detail

Node

public Node()
Method Detail

createImage

public static org.eclipse.swt.graphics.Image createImage(java.lang.String iconName)

setIcon

public void setIcon(org.eclipse.swt.graphics.Image icon)
Parameters:
icon -

setConfigDescriptor

public void setConfigDescriptor(NodeDescriptor configDescriptor)
Parameters:
configDescriptor -

addUpdateListener

public void addUpdateListener(NodeUpdateListener listener)

removeUpdateListener

public void removeUpdateListener(NodeUpdateListener listener)

notifyListeners

public void notifyListeners(NodeUpdateEvent event)

getConfigDescriptor

public abstract NodeDescriptor getConfigDescriptor()

getChildren

public abstract Node[] getChildren()

acceptsChildren

public abstract boolean acceptsChildren()

getConfiguratorScripts

public abstract java.lang.String[] getConfiguratorScripts()

getIcon

public abstract org.eclipse.swt.graphics.Image getIcon()
Returns:


Copyright © 2003 . All Rights Reserved.