GWT Designer allows you to quickly create the modules, composites, panels, remote services and other elements that comprise Google Web Tookit applications.
Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg
by ashouric » Sat Nov 11, 2006 5:30 am
The designer doesn't parse the child widget:
- Code: Select all
public class Hello extends Composite {
public Hello() {
final Tree tree = new Tree();
initWidget(tree);
final Label label = new Label("Hello there");
tree.add( label );
}
}
-
ashouric
-
- Posts: 75
- Joined: Sat Sep 30, 2006 9:13 pm
by ashouric » Mon Nov 13, 2006 8:57 am
Now it is parsed, but:
1- It is added inside a 'null("")' TreeItem, may be the TreeItem should not be visible. Also, try to change TreeItem 'selected' property, you will have invalid code:
- Code: Select all
final void void_ = tree.add( label );
void_.setSelected(true);
2 - It is not allowed to add an arbitrary widget into tree.
-
ashouric
-
- Posts: 75
- Joined: Sat Sep 30, 2006 9:13 pm
by Konstantin.Scheglov » Wed Nov 15, 2006 9:19 pm
1. Yes, we should not add item in case of "add". But we should add item if "addItem" is used.
2. In latest version you can add widget to tree/items.
-
Konstantin.Scheglov
- Moderator
-
- Posts: 186
- Joined: Tue Oct 18, 2005 8:11 pm
- Location: Russian Federation, Lipetsk
-
Return to GWT Designer
Who is online
Users browsing this forum: No registered users and 3 guests