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

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


    }
    if(!createIfAbsent) return null;
    // stub the msg level panel
    // (child widget FORMAT: [{msg level img}]{ul html list of msg texts})
    mlp = new HorizontalPanel();
    mlp.addStyleName(MsgStyles.css().msg());
    mlp.addStyleName(MsgStyles.getMsgLevelStyle(level));
    mlp.getElement().setPropertyInt(ELEM_PROP_MSG_LEVEL, level.ordinal());
    mlp.add(new HtmlListPanel(false));
    container.add(mlp);
    return mlp;
View Full Code Here


    if(!createIfAbsent) return null;
    // stub the msg level panel
    // (child widget FORMAT: [{msg level img}]{ul html list of msg texts})
    mlp = new HorizontalPanel();
    mlp.addStyleName(MsgStyles.css().msg());
    mlp.addStyleName(MsgStyles.getMsgLevelStyle(level));
    mlp.getElement().setPropertyInt(ELEM_PROP_MSG_LEVEL, level.ordinal());
    mlp.add(new HtmlListPanel(false));
    container.add(mlp);
    return mlp;
  }
View Full Code Here

    }
    if(!createIfAbsent) return null;
    // stub the msg level panel
    // (child widget FORMAT: [{msg level img}]{ul html list of msg texts})
    mlp = new HorizontalPanel();
    mlp.addStyleName(Styles.MSG);
    mlp.addStyleName(level.getName().toLowerCase());
    mlp.getElement().setPropertyInt(ELEM_PROP_MSG_LEVEL, level.ordinal());
    mlp.add(new HtmlListPanel(false));
    container.add(mlp);
    return mlp;
View Full Code Here

    if(!createIfAbsent) return null;
    // stub the msg level panel
    // (child widget FORMAT: [{msg level img}]{ul html list of msg texts})
    mlp = new HorizontalPanel();
    mlp.addStyleName(Styles.MSG);
    mlp.addStyleName(level.getName().toLowerCase());
    mlp.getElement().setPropertyInt(ELEM_PROP_MSG_LEVEL, level.ordinal());
    mlp.add(new HtmlListPanel(false));
    container.add(mlp);
    return mlp;
  }
View Full Code Here

  private final Image removeParameterImage = new Image("/images/x.png");

  public CustomParameterWidget(String key, String value) {
    HorizontalPanel panel = new HorizontalPanel();
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    panel.addStyleName("tty-DataRequestParameter");
    panel.add(keyTextBox);
    panel.add(valueTextBox);
    panel.add(removeParameterImage);

    removeParameterImage.addClickHandler(new ClickHandler() {
View Full Code Here

          fireChangeEvent();
        }
      });
    HorizontalPanel panel = new HorizontalPanel();
    panel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
    panel.addStyleName("tty-DataRequestParameter");
    panel.add(keyListBox);
    panel.add(valueTextBox);
    panel.add(removeParameterImage);
    initWidget(panel);
  }
View Full Code Here

        nameWidget.addStyleName("tty-HomePageProjectsGridProjectName");

        HorizontalPanel projectWidget = new HorizontalPanel();
        projectWidget.add(favoriteStar);
        projectWidget.add(nameWidget);
        projectWidget.addStyleName("tty-HomePageProjectsGridProject");

        nameWidget.addClickHandler(new ClickHandler() {
          @Override
          public void onClick(ClickEvent event) {
            gotoProject(project.getProjectId().toString());
View Full Code Here

    private void displayNotification(final Message message) {

        final String css = getSeverityStyle(message.severity);
        HorizontalPanel panel = new HorizontalPanel();
        panel.addStyleName("notification-panel");
        panel.addStyleName(css);

        String actualMessage = message.getConciseMessage().length()>40 ?
                message.getConciseMessage().substring(0, 40)+" ..." :
                message.getConciseMessage();
View Full Code Here

    private void displayNotification(final Message message) {

        final String css = getSeverityStyle(message.severity);
        HorizontalPanel panel = new HorizontalPanel();
        panel.addStyleName("notification-panel");
        panel.addStyleName(css);

        String actualMessage = message.getConciseMessage().length()>40 ?
                message.getConciseMessage().substring(0, 40)+" ..." :
                message.getConciseMessage();
View Full Code Here

        } else {
            this.readOnly = readOnly;
        }

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

        String desc = modeller.getModel().getLHSBindingType(model.variableName) + " [" + model.variableName + "]";
        layout.add(new SmallLabel(HumanReadable.getActionDisplayName("retract") + "&nbsp;<b>" + desc + "</b>"));
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.