jaxx.runtime.swing.navigation
Class NavigationNodeRendererI18nImpl

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

public class NavigationNodeRendererI18nImpl
extends Object
implements NavigationNodeRenderer

I18n label Renderer of a NavigationTreeNode.

Just apply a i18n translation on the given libelle.

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

Field Summary
protected  Class<?> internalClass
          internal class of representing data
protected  String libelle
          Static i18n label to render
protected  String text
          last renderered value
 
Constructor Summary
NavigationNodeRendererI18nImpl(String libelle)
           
 
Method Summary
 Class<?> getInternalClass()
          Can override the node internal class for display purpose.
 void reload(Object data)
          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

libelle

protected final String libelle
Static i18n label to render


internalClass

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


text

protected String text
last renderered value

Constructor Detail

NavigationNodeRendererI18nImpl

public NavigationNodeRendererI18nImpl(String libelle)
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 data)
Description copied from interface: NavigationNodeRenderer
Reload the render value from the bean of node.

Specified by:
reload in interface NavigationNodeRenderer
Parameters:
data - 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.