jaxx.runtime.swing.navigation
Class NavigationNodeRendererDecoratorImpl

java.lang.Object
  extended by jaxx.runtime.swing.navigation.NavigationNodeRendererDecoratorImpl
All Implemented Interfaces:
Serializable, NavigationNodeRenderer

public class NavigationNodeRendererDecoratorImpl
extends Object
implements NavigationNodeRenderer

Decorator Renderer of a NavigationTreeNode.

Apply a Decorator to the bean associated to the node.

Since:
1.7.2, replace NavigationUtil#NodeRenderer which disappear soon...
Author:
tchemit
See Also:
Serialized Form

Field Summary
protected  Decorator<?> decorator
          Decorator
protected  Class<?> internalClass
          internal class of representing data
protected  String text
          last renderered value
 
Constructor Summary
NavigationNodeRendererDecoratorImpl(Decorator<?> decorator)
           
 
Method Summary
 Class<?> getInternalClass()
          Can override the node internal class for display purpose.
 void reload(Object bean)
          Reload the render value from the bean of node.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

decorator

protected final Decorator<?> decorator
Decorator


internalClass

protected final Class<?> internalClass
internal class of representing data


text

protected String text
last renderered value

Constructor Detail

NavigationNodeRendererDecoratorImpl

public NavigationNodeRendererDecoratorImpl(Decorator<?> decorator)
Method Detail

toString

public String toString()
Specified by:
toString in interface NavigationNodeRenderer
Overrides:
toString in class Object
Returns:
the render value of the node

reload

public void reload(Object bean)
Description copied from interface: NavigationNodeRenderer
Reload the render value from the bean of node.

Specified by:
reload in interface NavigationNodeRenderer
Parameters:
bean - the bean associated to the node to render

getInternalClass

public Class<?> getInternalClass()
Description copied from interface: NavigationNodeRenderer
Can override the node internal class for display purpose.

Specified by:
getInternalClass in interface NavigationNodeRenderer
Returns:
the type of data to be displayed.


Copyright © 2008-2010 CodeLutin. All Rights Reserved.