public BeanModel getMyModel() {
    BeanModel myModel =
        _beanModelSource.createDisplayModel(User.class, _componentResources.getMessages());

    myModel.include("firstName", "lastName");
    myModel.get("firstName").sortable(false);
    myModel.get("lastName").label("Surname");
    return myModel;
  }
예제 #2
0
  void setupRender() {

    if (_myModel == null) {
      _myModel = _beanModelSource.createDisplayModel(User.class, _componentResources.getMessages());
      _myModel.add("action", null);
      _myModel.include("firstName", "lastName", "action");
      _myModel.get("firstName").sortable(false);
      _myModel.get("lastName").label("Surname");
    }
    users = createUsers(50);
  }
예제 #3
0
파일: Kawwa2Grid.java 프로젝트: got5/KAWWA
 @SuppressWarnings("unchecked")
 public BeanModel getModel() {
   this.model = beanModelSource.createDisplayModel(Celebrity.class, resources.getMessages());
   this.model.get("firstName").sortable(false);
   return model;
 }