If it only can hold one value then an enum would be ok.
public interface Translatable{
public String getResourceKey();
}
public enum Status implements Translatable{
NOT_SENT( 0, "resource.notsent" ),
SENT( 1, "resource.sent" );
private int status;
private String resourceKey;
Status( int status, String resourceKey ){
this.status = status;
this.resourceKey = resourceKey;
}
public int getStatus(){
return status;
}
public String getResourceKey(){
return resourceKey;
}
}
If you use this in an DropDownChoice or want to use it in a label the
resourcekey should do the trick if the application is multilanguage
--
View this message in context:
http://www.nabble.com/How-to-manipulate-values-in-a-data-table--tp23401292p23412644.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]