Thanks to all,
This does what I was looking for.
Raney
My.html
-------
<body>
<div class = "Container"
id = "ButtonContainer">
<div id = "Buttons">
</div>
</div>
</body>
-------
<body>
<div class = "Container"
id = "ButtonContainer">
<div id = "Buttons">
</div>
</div>
</body>
My.css
------
Nothing about display or visibility for #ButtonContainer
------
Nothing about display or visibility for #ButtonContainer
My.java
-------
public class SmartPage implements EntryPoint
{
public void onModuleLoad()
{
--> RootPanel.get("ButtonContainer").setVisible(false);
-------
public class SmartPage implements EntryPoint
{
public void onModuleLoad()
{
--> RootPanel.get("ButtonContainer").setVisible(false);
HLayout Buttons = new HLayout();
Buttons.setMembersMargin(15);
IButton ButtonOne = new IButton("Button One");
IButton ButtonTwo = new IButton("Button Two");
Buttons.addMember(ButtonTwo);
Buttons.addMember(ButtonOne);
VLayout ButtonLayout = new VLayout();
ButtonLayout.addMember(Buttons);
ButtonLayout.setHeight(ButtonOne.getHeight());
RootPanel.get("Buttons").add(ButtonLayout);
ButtonLayout.draw();
Buttons.setMembersMargin(15);
IButton ButtonOne = new IButton("Button One");
IButton ButtonTwo = new IButton("Button Two");
Buttons.addMember(ButtonTwo);
Buttons.addMember(ButtonOne);
VLayout ButtonLayout = new VLayout();
ButtonLayout.addMember(Buttons);
ButtonLayout.setHeight(ButtonOne.getHeight());
RootPanel.get("Buttons").add(ButtonLayout);
ButtonLayout.draw();
--> RootPanel.get("ButtonContainer").setVisible(true);
}
}
}
}
This does what I was looking for.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/uQPWrPGb8TgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment