コード例 #1
0
 /**
  * Returns a model for this property title. Default behaviour is to lookup for a resource name
  * <page>.th.<propertyName>
  *
  * @param property
  * @return
  */
 IModel getPropertyTitle(Property<T> property) {
   String pageName = this.getPage().getClass().getSimpleName();
   ResourceModel resMod = new ResourceModel("th." + property.getName(), property.getName());
   return resMod;
 }
コード例 #2
0
 @Override
 protected IModel getPropertyTitle(Property<Integer> property) {
   return new Model(property.getName());
 }