Hi there,
I tried to integrate some plain GWT apps into a Set of Tabs from SmartGWT. But it isn't working so far.
I played around using a Class extending Composite as Widget using initWidget() with a GWT FlowPanel. But adding a Tab to my TabSet lead to a blank tab without content.
The way i tried to put my Composite to the tab was over a SmartGWT VLayout:
where MyWidget Constructor looks like this:
I tried to integrate some plain GWT apps into a Set of Tabs from SmartGWT. But it isn't working so far.
I played around using a Class extending Composite as Widget using initWidget() with a GWT FlowPanel. But adding a Tab to my TabSet lead to a blank tab without content.
The way i tried to put my Composite to the tab was over a SmartGWT VLayout:
Code:
... Tab tmpTab = new Tab("testTab"); MyWidget wid = new MyWidget(); VLayout layout = new VLayout(); layout.addMember(wid); tmpTab.setPane(layout); ...
Code:
... super(); FlowPanel panel = new FlowPanel(); final Label label = new Label("Hello, GWT!!!"); final Button button = new Button("Click me!"); button.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { label.setVisible(!label.isVisible()); } }); panel.add(button); panel.add(label); panel.setVisible(true); initWidget(panel); ...
Comment