com.google.gwt.user.client.ui.Label.setStyleName()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(6.0k)|赞(0)|评价(0)|浏览(182)

本文整理了Java中com.google.gwt.user.client.ui.Label.setStyleName()方法的一些代码示例,展示了Label.setStyleName()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setStyleName()方法的具体详情如下:
包路径:com.google.gwt.user.client.ui.Label
类名称:Label
方法名:setStyleName

Label.setStyleName介绍

暂无

代码示例

代码示例来源:origin: com.google.gwt/gwt-servlet

/**
 * Creates an empty label.
 */
public Label() {
 super(false);
 setStyleName("gwt-Label");
}

代码示例来源:origin: kaaproject/kaa

back.setStyleName(kaaAdminStyle.bNavLabel());

代码示例来源:origin: net.wetheinter/gwt-user

/**
 * Creates an empty label.
 */
public Label() {
 super(false);
 setStyleName("gwt-Label");
}

代码示例来源:origin: com.vaadin.external.gwt/gwt-user

/**
 * Creates an empty label.
 */
public Label() {
 super(false);
 setStyleName("gwt-Label");
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

private void initializeLabels() {
  emailLabel = new Label();
  emailLabel.setText( "Recipient Email (required)" );
  emailLabel.setStyleName(LABEL_STYLE);
  
  messageLabel = new Label();
  messageLabel.setText("Brief Message (optional):");
  messageLabel.setStyleName(LABEL_STYLE);
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

private void initLogo(boolean isInstitution) {
  atLabel.setStyleName("atLabel");
    atLabel.setStyleName("hide");
    logo.setUrl("images/logo_null.png");
    final String logoLink = StemCellSearchApplicationState.getInstance().getLogoLinkURL();
    this.initLogo( new ClickHandler() {
      @Override
      public void onClick (ClickEvent event){
        Window.Location.assign(logoLink);
      }
    });
}

代码示例来源:origin: com.blackducksoftware.tools/common-framework

/**
 * Builds the server label.
 *
 * @return the label
 */
private Label buildServerLabel() {
  Label serverFieldLabel = new Label("Server:");
  serverFieldLabel.setStyleName("gwt-Login-Label");
  serverFieldLabel.setSize("51px", "21px");
  return serverFieldLabel;
}

代码示例来源:origin: org.apache.cxf/cxf-rt-management-web

public void setMessageInsteadOfData(@Nonnull final String message, @Nullable final String styleName) {
  messageLabel.setText(message);
  messageLabel.setVisible(true);
  table.setVisible(false);
  if (styleName != null) {
    messageLabel.setStyleName(styleName);
  }
}

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

public static TextWidget makeTermRequestWidget(final EIInstance eiInstance) {
  final TextWidget termRequest = makeNonOntologyTextWidget( eiInstance, SweetUIConstants.termRequestEntity, "" );
  termRequest.label.setStyleName( "TermFormLabel" );
  termRequest.valueField.setStyleName( "TermFormText" );
  return termRequest;
}

代码示例来源:origin: org.nuiton.web/nuiton-gwt

public static void openLoaderPanel() {
  UIMessages messages = GWT.create(UIMessages.class);
  Label label = new Label(messages.loading());
  label.setStyleName("loading");
  glassPanel = new BlindedPopup(label);
}

代码示例来源:origin: org.uberfire/uberfire-widgets-commons

public LazyStackPanelHeader(String headerText) {
  this();
  final Label titleLabel = new Label(headerText);
  titleLabel.setStyleName("guvnor-cursor");
  titleLabel.addClickHandler(expandClickHandler);
  container.add(titleLabel);
}

代码示例来源:origin: org.jboss.ballroom/widgets

public void addItem(final String text, final Scheduler.ScheduledCommand command) {
  Label label = new Label(text);
  label.setStyleName(POPUP_ITEM_STYLE_NAME);
  menu.add(label);
  label.addClickHandler(new ClickHandler() {
    @Override
    public void onClick(ClickEvent event) {
      Scheduler.get().scheduleDeferred(command);
      popup.hide();
    }
  });
}

代码示例来源:origin: org.eagle-i/eagle-i-datatools-sweet-gwt

/**
 * Adds an invisible separator label.
 * 
 */
private void addNextCrumb() {
  final Label nextWidgetLabel = new Label( nextCrumb );
  nextWidgetLabel.setStyleName( "breadCrumbArrow" );
  add( nextWidgetLabel );
  nextWidgetLabel.setVisible( true );
}

代码示例来源:origin: com.vaadin.addon/vaadin-touchkit-agpl

private void addBackupWidget() {
  if (backUpWidget == null) {
    backUpWidget = new Label();
    backUpWidget.setStyleName("v-select-select"); // style like native
                           // input
    add(backUpWidget);
    backUpWidget.addClickHandler(this);
    updateValue();
  }
}

代码示例来源:origin: org.drools/drools-wb-guided-dtable-editor-client

Label ruleInheritanceLabel() {
  final Label label = new Label(GuidedDecisionTableConstants.INSTANCE.AllTheRulesInherit());
  label.setStyleName(GuidedDecisionTableResources.INSTANCE.css().ruleInheritanceLabel());
  return label;
}

代码示例来源:origin: com.sksamuel.jqm4gwt/jqm4gwt-library

/**
 * Set a general error on the form.
 */
public void setError(String string) {
  Label errorLabel = new Label(string);
  errorLabel.setStyleName(JQM4GWT_ERROR_LABEL_STYLENAME);
  errorLabel.addStyleName(JQM4GWT_GENERAL_ERROR_LABEL_STYLENAME);
  generalErrors.add(errorLabel);
  Window.scrollTo(0, 0);
}

代码示例来源:origin: jqm4gwt/jqm4gwt

/**
 * Set a general error on the form.
 */
public void setError(String string) {
  Label errorLabel = new Label(string);
  errorLabel.setStyleName(JQM4GWT_ERROR_LABEL_STYLENAME);
  errorLabel.addStyleName(JQM4GWT_GENERAL_ERROR_LABEL_STYLENAME);
  generalErrors.add(errorLabel);
  generalErrors.getElement().scrollIntoView();
}

代码示例来源:origin: net.sf.javaprinciples.client/client-presentation

private Panel createMenuGroupItem(AttributeMetadata instance)
{
  Label header = new Label(instance.getLabel());
  header.setStyleName("menu_group_heading");
  FlowPanel menuGroup = new FlowPanel();
  menuGroup.setStyleName("menu_group");
  menuGroup.add(header);
  return menuGroup;
}

代码示例来源:origin: org.eagle-i/eagle-i-search-gwt

public ReferencedBySidebarComponent() {
  initWidget( outerPanel );
  setStyleName( "referencedBySidebarComponent" );
  final Label title = new Label( "Related Resources" );
  outerPanel.add( title );
  title.setStyleName( "title" );
  outerPanel.add( linksPanel );
  linksPanel.setStyleName( "referencesPanel" );
  setVisible( false );
}

代码示例来源:origin: org.jboss.errai/errai-widgets

private void initReset() {
 for (int i = 0; i < fieldNames.length; i++) {
  Label label = new Label(fieldNames[i]);
  label.setStyleName("soa-prop-grid-label");
  grid.setWidget(i, 0, label);
  grid.setWidget(i, 1, new HTML(""));
  String style = (i % 2 == 0) ? "soa-prop-grid-even" : "soa-prop-grid-odd";
  grid.getRowFormatter().setStyleName(i, style);
  grid.getColumnFormatter().setWidth(0, "20%");
  grid.getColumnFormatter().setWidth(1, "80%");
 }
}

相关文章