Examples of addStyleName()


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

  Widget makePositioner(Widget reference) {
    // Use two widgets so that setPixelSize() consistently affects dimensions
    // excluding positioner border in quirks and strict modes
    SimplePanel outer = new SimplePanel();
    outer.addStyleName(CSS_DRAGDROP_POSITIONER);
    DOM.setStyleAttribute(outer.getElement(), "margin", "0px");

    // place off screen for border calculation
    RootPanel.get().add(outer, -500, -500);
View Full Code Here

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

    public Widget createWidget() {
        loggingEditor = new LoggerEditor(presenter);
        handlerEditor = new HandlerEditor(presenter);
       
        TabLayoutPanel tabLayoutpanel = new TabLayoutPanel(25, Style.Unit.PX);
        tabLayoutpanel.addStyleName("default-tabpanel");
       
        tabLayoutpanel.add(loggingEditor.asWidget(), "Logger");
        tabLayoutpanel.add(handlerEditor.asWidget(), Console.CONSTANTS.subsys_logging_handlers());

        return tabLayoutpanel;
View Full Code Here

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

        panel.add(new ContentDescription("Queue and Topic destinations."));

        // ----

        TabPanel bottomLayout = new TabPanel();
        bottomLayout.addStyleName("default-tabpanel");

        queueList = new QueueList(presenter);
        bottomLayout.add(queueList.asWidget(),"Queues");

        topicList = new TopicList(presenter);
View Full Code Here

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

        imageTableCellFormatter.setVerticalAlignment(0, 2, HasVerticalAlignment.ALIGN_TOP);
        imageTableCellFormatter.setVerticalAlignment(1, 0, HasVerticalAlignment.ALIGN_TOP);

        TextBox meTextBox = new TextBox();
        meTextBox.setValue(meLabel.getText());
        meTextBox.addStyleName(resources.css().mePeInput());
        TextBox peTextBox = new TextBox();
        peTextBox.setValue(peLabel.getText());
        peTextBox.addStyleName(resources.css().mePeInput());
        final DecoratedPopupPanel editBlueprintInfoPopup = new DecoratedPopupPanel(true);
        FlexTable editBlueprintInfoPopupFlexTable = new FlexTable();
View Full Code Here

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

        if (isMultivalued) {
            m_panel.addStyleName("wideTextField");       
            m_panel.addStyleName("multivalue");
            //have to do this here b/c gwt suggest box wipes
            //style name if added in previous if
            textfield.addStyleName("multivalue");
           
            textfield.addKeyPressHandler(new KeyPressHandler()
            {
                @Override
                public void onKeyPress(KeyPressEvent event)
View Full Code Here

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

    final String labelText = isUiAdd ? ("-New " + getIndexTypeName() + "-") : getInstanceName(index);

    if(enableDelete || isUiAdd) {
      final ToggleButton btnDeleteTgl =
        new ToggleButton(imageBundle.delete().createImage(), imageBundle.undo().createImage());
      btnDeleteTgl.addStyleName(Styles.DELETE_BUTTON);
      btnDeleteTgl.setTitle("Delete " + labelText);
      btnDeleteTgl.getElement().setPropertyBoolean(UI_ADD, isUiAdd);
      btnDeleteTgl.addClickHandler(new ClickHandler() {

        public void onClick(ClickEvent event) {
View Full Code Here

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

     */
    public boolean decorateFieldWithValidationError(IViewWithValidation view, LocalizableMessage message, String style) {
        Map<String, UIObject> map = view.getValidatedFieldMap();
        if (message.getContext() != null && map.containsKey(message.getContext())) {
            UIObject field = map.get(message.getContext());
            field.addStyleName(style);
            return true;
        } else {
            return false;
        }
    }
View Full Code Here

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

    // We can set the id of a widget by accessing its Element
    closeButton.getElement().setId("closeButton");
    final Label textToServerLabel = new Label();
    final HTML serverResponseLabel = new HTML();
    VerticalPanel dialogVPanel = new VerticalPanel();
    dialogVPanel.addStyleName("dialogVPanel");
    dialogVPanel.add(new HTML("<b>Sending name to the server:</b>"));
    dialogVPanel.add(textToServerLabel);
    dialogVPanel.add(new HTML("<br><b>Server replies:</b>"));
    dialogVPanel.add(serverResponseLabel);
    dialogVPanel.setHorizontalAlignment(VerticalPanel.ALIGN_RIGHT);
View Full Code Here

Examples of com.google.gwt.widgetideas.client.FastTreeItem.addStyleName()

        parent = getChild(parent, args[i]);
      }
    }
    FastTreeItem target = new FastTreeItem(message);
    parent.addItem(target);
    target.addStyleName(level.getName().toLowerCase());
    if (e != null) {
      target.addItem(DivLogHandler.formatMessage("thrown", level, e));
    }

    tree.setSelectedItem(target);
View Full Code Here

Examples of com.google.gwt.widgetideas.client.GlassPanel.addStyleName()

    // Attach an absolute panel and style it green using this !important CSS
    // rule:
    // .green { background-color: green !important; }
    GlassPanel greenGlassPanel = new GlassPanel(false);
    greenGlassPanel.addStyleName("green");
    absolutePanel.add(greenGlassPanel, 0, 0);
  }
}
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.