Tuesday, June 28, 2011

Re: .setVisible(true); // I can't see what I am missing

 
Alisson,
 
I made the following change, but still does not display.

My.css
------
#ButtonContainer
{
    Old:visibility: hidden;
    New:display: none;
}

-----------------------------------------------------------
David,
 
I have tried to do something like you have suggested but I just
can't see any properties or functions of Element that look like what you
have shown.
 
My.java
-------
import com.google.gwt.dom.client.Element;

public class SmartPage implements EntryPoint
{
    public void onModuleLoad()
    {
        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();
        //RootPanel.get("ButtonContainer").setVisible(true);
        Element E = RootPanel.get("ButtonContainer").getElement();
        E.  (I can't see anything that looks like it will do the trick).
    }
}
 
 
Thanks,
 
Raney
 
Raney

--
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/-/jm9CVc3SSD0J.
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