br.com.arsmachina.tapestrycrud.encoder
Interface LabelEncoder<T>

Type Parameters:
T - the class related to this encoder.
All Known Subinterfaces:
Encoder<T,K>

public interface LabelEncoder<T>

Interface which defines a single method, toLabel(Object), that returns a user-presentable description (label) of a given object.

Author:
Thiago H. de Paula Figueiredo

Method Summary
 String toLabel(T object)
          Returns a user-presentable description (label) of a given object.
 

Method Detail

toLabel

String toLabel(T object)
Returns a user-presentable description (label) of a given object. It can be used, for example, as the object label in a Select or Palette.

Parameters:
object - a .
Returns:
a String.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.