SMACS

smacs.gui.service.simple
Class SimpleNodeDecorator

java.lang.Object
  extended bysmacs.gui.service.simple.SimpleNodeDecorator
All Implemented Interfaces:
XDecorator

public class SimpleNodeDecorator
extends Object
implements XDecorator

xngr XDecorator implementation.

shows an icon and associated text in the treepanel view of the xngr browser.

The original xngr browser will not give us smacs SimpleNode but instead its own explorer node derived directly from the Element. In that case we just present the NodeName and possibly its NodeValue in the view.

Author:
Copyright (C) 2004 Guido Draheim, All rights reserved, part of SMACS project.

Field Summary
protected  ImageIcon _ObjectNameIcon
           
protected  ImageIcon _SimpleNodeIcon
           
 
Constructor Summary
SimpleNodeDecorator()
           
 
Method Summary
 String getDescription(XElement element)
          Returns the description for the specific element...
 ImageIcon getIcon(XElement element)
          Returns the icon for the specific element.
 String getName(XElement element)
          Returns the name for the specific element...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_SimpleNodeIcon

protected ImageIcon _SimpleNodeIcon

_ObjectNameIcon

protected ImageIcon _ObjectNameIcon
Constructor Detail

SimpleNodeDecorator

public SimpleNodeDecorator()
Method Detail

getName

public String getName(XElement element)
Description copied from interface: XDecorator
Returns the name for the specific element...

Specified by:
getName in interface XDecorator
Parameters:
element - the element to get the name for.
Returns:
the name for the element.

getDescription

public String getDescription(XElement element)
Description copied from interface: XDecorator
Returns the description for the specific element...

Specified by:
getDescription in interface XDecorator
Parameters:
element - the element to get the description for.
Returns:
the description for the element.

getIcon

public ImageIcon getIcon(XElement element)
Description copied from interface: XDecorator
Returns the icon for the specific element.

Specified by:
getIcon in interface XDecorator
Parameters:
element - the element to return the icon for.
Returns:
the icon for the element.

SMACS