Java Code Examples for com.google.gwt.user.client.ui.HTMLPanel#createUniqueId()

The following examples show how to use com.google.gwt.user.client.ui.HTMLPanel#createUniqueId() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ContentBox.java    From core with GNU Lesser General Public License v2.1 6 votes vote down vote up
public ContentBox(final String id, final String title, final SafeHtml body, Widget widget) {

        dp = new DisclosurePanel();
        dp.setHeader(new HTML(TEMPLATES.header(IdHelper.asId(id + "_", getClass(), "_" + "header"), title)));
        dp.addOpenHandler(this);
        dp.addCloseHandler(this);
        dp.setOpen(true);

        String linkId = HTMLPanel.createUniqueId();
        HTMLPanel panel = new HTMLPanel(TEMPLATES.body(body, linkId));
        panel.addStyleName("homepage-content-box-body");
        panel.add(widget, linkId);
        dp.add(panel);

        initWidget(dp);
        setStyleName("homepage-content-box");
    }
 
Example 2
Source File: TwoStepWizard.java    From core with GNU Lesser General Public License v2.1 5 votes vote down vote up
public TwoStepWizard(LoggerPresenter presenter, AddressTemplate address, SecurityContext securityContext, ResourceDescription resourceDescription) {

        super(HTMLPanel.createUniqueId(), new HandlerContext());
        this.presenter = presenter;
        this.address = address;
        this.securityContext = securityContext;
        this.resourceDescription = resourceDescription;

        addStep(HandlerSteps.ATTRIBUTES, new CommonAttributesStep(this, "Common Attributes"));
        addStep(HandlerSteps.FILE, new FileAttributeStep(this, "File Attribute"));
    }