Package com.google.gwt.user.client.ui

Examples of com.google.gwt.user.client.ui.SimplePanel.addStyleName()


        if (inElementType == ElementType.TEXTBOX)
        {
            textBox = new TextBox();
            textWidget = textBox;
            textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().textboxInputWrapper());
        }
        else
        {
            textWidget = new ExtendedTextArea(false);
            textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().textareaInputWrapper());
View Full Code Here


            textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().textboxInputWrapper());
        }
        else
        {
            textWidget = new ExtendedTextArea(false);
            textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().textareaInputWrapper());
        }
        textWidget.getElement().setAttribute("id", "actb-" + rand);
        textWidget.setTabIndex(1);

        // Need to do this to fix an especially nasty IE CSS bug (input margin inheritance)
View Full Code Here

        }
        textWidget.getElement().setAttribute("id", "actb-" + rand);
        textWidget.setTabIndex(1);

        // Need to do this to fix an especially nasty IE CSS bug (input margin inheritance)
        textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().acInputWrapper());
        textWrapper.add(textWidget);
        this.add(textWrapper);

        resultsPanel.getElement().setAttribute("id", "acra-" + rand);
        clearPanel.setStyleName(StaticResourceBundle.INSTANCE.coreCss().clear());
View Full Code Here

     * @return Overlay widget.
     */
    public Widget createOverlay(final String uniqueId, final Size size)
    {
        SimplePanel badgeOverlay = new SimplePanel();
        badgeOverlay.addStyleName(StaticResourceBundle.INSTANCE.coreCss().avatarBadgeOverlay());
        String sizeStyle;
        switch (size)
        {
        case VerySmall:
            sizeStyle = StaticResourceBundle.INSTANCE.coreCss().sizeVerySmall();
View Full Code Here

            break;
        default:
            sizeStyle = StaticResourceBundle.INSTANCE.coreCss().sizeNormal();
            break;
        }
        badgeOverlay.addStyleName(sizeStyle);
        badgeOverlay.addStyleName("badge-for-" + uniqueId);

        return badgeOverlay;
    }
View Full Code Here

        default:
            sizeStyle = StaticResourceBundle.INSTANCE.coreCss().sizeNormal();
            break;
        }
        badgeOverlay.addStyleName(sizeStyle);
        badgeOverlay.addStyleName("badge-for-" + uniqueId);

        return badgeOverlay;
    }

    /**
 
View Full Code Here

        FlowPanel body = new FlowPanel();
        body.addStyleName(StaticResourceBundle.INSTANCE.coreCss().body());

        SimplePanel boxWrapper = new SimplePanel();
        boxWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().boxWrapper());
        commentBox = new ExtendedTextArea(true);
        boxWrapper.add(commentBox);
        body.add(boxWrapper);
        commentBox.setFocus(true);
View Full Code Here

        Label addLinkLabel = new Label("Add Link");
        addLinkLabel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().title());
        addPanel.add(addLinkLabel);

        SimplePanel boxWrapper = new SimplePanel();
        boxWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().boxWrapper());
        boxWrapper.add(linkUrl);

        addPanel.add(fetchLink);
        addPanel.add(boxWrapper);
        fetchLink.addStyleName(StaticResourceBundle.INSTANCE.coreCss().addButtonSubmit());
View Full Code Here

        sp.add( new SmallLabel( " " + GuidedRuleEditorResources.CONSTANTS.AddXToListY( gca.getFactName(),
                                                                           gca.getGlobalName() ) ) );

        if ( this.readOnly ) {
            this.layout.addStyleName( "editor-disabled-widget" );
            sp.addStyleName( "editor-disabled-widget" );
        }

        layout.setWidget( 0,
                          0,
                          sp );
View Full Code Here

        main.add(requiredLabel);

        // Need to do this to fix an especially nasty IE CSS bug (input margin inheritance)
        final SimplePanel textWrapper = new SimplePanel();
        textWrapper.add(textBox);
        textWrapper.addStyleName(StaticResourceBundle.INSTANCE.coreCss().inputWrapper());

        main.add(textWrapper);

        if (size != null)
        {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.