jaxx.runtime.swing.navigation
Interface NavigationNodeRenderer

All Superinterfaces:
Serializable
All Known Implementing Classes:
NavigationNodeRendererDecoratorImpl, NavigationNodeRendererI18nImpl

Deprecated. since 2.1, prefer use the simplify api jaxx.runtime.swing.tree.

@Deprecated
public interface NavigationNodeRenderer
extends Serializable

Text Renderer of a NavigationNode.

This object will be placed as the NavigationNode.getUserObject() of nodes.

In that way, we can use the toString() value to render the node without writing any TreeCellRenderer.

To rebuild the renderer text of a node use the method reload(Object) with the bean provides by the model for the node.

Since:
1.7.2, replace NavigationUtil#NodeRenderer which disappear soon...
Author:
tchemit

Method Summary
 Class<?> getInternalClass()
          Deprecated. Can override the node internal class for display purpose.
 void reload(Object bean)
          Deprecated. Reload the render value from the bean of node.
 String toString()
          Deprecated.  
 

Method Detail

toString

String toString()
Deprecated. 
Overrides:
toString in class Object
Returns:
the render value of the node

getInternalClass

Class<?> getInternalClass()
Deprecated. 
Can override the node internal class for display purpose.

Returns:
the type of data to be displayed.

reload

void reload(Object bean)
Deprecated. 
Reload the render value from the bean of node.

Parameters:
bean - the bean associated to the node to render


Copyright © 2008-2010 CodeLutin. All Rights Reserved.