Tuesday, June 28, 2011

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

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.css
------
#ButtonContainer
{
    Old:visibility: hidden;
    New:display: none;
}

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();
        Element E = RootPanel.get("ButtonContainer").getElement();
        E.  (I can't see anything that looks like it will do the trick).
    }
}

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