gwt - CellWidget not getting displayed -


i trying make basic cellbrowser widget work in app. structure can replace later meaningfull. looked samples , implemented 1 when try integarting in application, wont work!

here part of code. problem? why cant see widget?

public class listviewimpl extends composite implements listview {  private static listviewimpluibinder uibinder = gwt         .create(listviewimpluibinder.class);  interface listviewimpluibinder extends uibinder<widget, listviewimpl> { }  private presenter presenter;  @uifield(provided=true) cellbrowser cellbrowser;  public listviewimpl() {      treeviewmodel model = new listtreeviewmodel();     cellbrowser=new cellbrowser(model,null);     cellbrowser.setkeyboardselectionpolicy(keyboardselectionpolicy.enabled);     cellbrowser.setanimationenabled(true);     initwidget(uibinder.createandbindui(this)); }  @override public void setpresenter(presenter presenter) {     this.presenter=presenter; }   @override   public widget aswidget() {     return this;  }  } 

the uibinder file goes -->

<ui:style>       .browser {     border: 1px solid #ccc; }  .out  {         outline:#ccc solid thick;  } </ui:style>      <g:htmlpanel stylename='{style.out}' >                     <c:cellbrowser addstylenames='{style.browser}' defaultcolumnwidth='300'  ui:field='cellbrowser'  />     </g:htmlpanel> 

the listtreeview model class perfect when use code in standalone application , add cellbrowser rootlayoutpanel. works!

cellbrowser requiresresize widget (it uses splitlayoutpanel internally), requiresresize widget, have either put within providesresize widget, or give explicit dimensions.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -