org.gwtbootstrap3.client.ui.Label类的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(8.6k)|赞(0)|评价(0)|浏览(114)

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

Label介绍

[英]Bootstrap's label, see documentation.

Not to be confused with (see FormLabel) or GWT's com.google.gwt.user.client.ui.Label
[中]引导程序的标签,请参见documentation
不要与(参见FormLabel)或GWT的com混淆。谷歌。gwt。使用者客户用户界面。标签

代码示例

代码示例来源:origin: org.dashbuilder/dashbuilder-common-client

@Override
public MapEditor.View setEmptyText(final String text) {
  grid.setEmptyTableWidget(new org.gwtbootstrap3.client.ui.Label(text));
  return this;
}

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

@Override
public FileUploadEditor.View setFileLabelText(final String text) {
  fileLabel.setText(text);
  return this;
}

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

public Label() {
  super(Document.get().createSpanElement());
  setStyleName(Styles.LABEL);
  setType(LabelType.DEFAULT);
}

代码示例来源:origin: org.dashbuilder/dashbuilder-displayer-client

@Override
public void errorDataSetNotFound(String dataSetUUID) {
  statusLabel.setVisible(true);
  statusLabel.setText(CommonConstants.INSTANCE.dataset_lookup_dataset_notfound(dataSetUUID));
}

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

@Override
public EntitiesExplorerView showMessage(final LabelType labelType,
                    final String message) {
  clear();
  mainLabel.setText(message);
  mainLabel.setType(labelType);
  mainLabel.setVisible(true);
  mainContainer.setVisible(false);
  return this;
}

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

private void initialiseAvailableColumns() {
  availableColumnsContainer.add( availableColumnsWidget );
  availableColumnsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
  availableColumnsWidget.setMinimumWidth( 270 );
  final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailableColumns() );
  lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
  availableColumnsWidget.setEmptyListWidget( lstEmpty );
  availableColumnsWidget.setSelectionModel( availableSelectionModel );
  availableSelectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {
    @Override
    public void onSelectionChange( final SelectionChangeEvent event ) {
      availableColumnsSelections = availableSelectionModel.getSelectedSet();
      btnAdd.setEnabled( availableColumnsSelections.size() > 0 );
    }
  } );
}

代码示例来源:origin: org.jbpm/jbpm-console-ng-documents-client

private void initPathLink() {
  FlowPanel container = new FlowPanel();
  Label pathLabel = new Label();
  pathLabel.setText( "Path:" );
  pathLink = new Anchor();
  pathLink.setText( "/" );
  container.add( pathLabel );
  container.add( pathLink );
  listGrid.getLeftToolbar().add( container );
}

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

private void initialiseAvailablePatterns() {
  availablePatternsContainer.add( availablePatternsWidget );
  availablePatternsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
  availablePatternsWidget.setMinimumWidth( 170 );
  final Label lstEmpty = GWT.create(Label.class);
  lstEmpty.setText( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailablePatterns() );
  lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
  availablePatternsWidget.setEmptyListWidget( lstEmpty );
  final SingleSelectionModel<Pattern52> selectionModel = new SingleSelectionModel<Pattern52>();
  availablePatternsWidget.setSelectionModel( selectionModel );
  selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {
    @Override
    public void onSelectionChange( final SelectionChangeEvent event ) {
      availablePatternsSelection = selectionModel.getSelectedObject();
      presenter.selectPattern( availablePatternsSelection );
    }
  } );
}

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

@Override
public MapEditor.View clearError() {
  final Element element = errorLabel.getElement();
  element.setInnerText("");
  element.getStyle().setDisplay(Style.Display.NONE);
  element.getStyle().setBorderWidth(0, Style.Unit.PX);
  errorLabel.setVisible(false);
  return this;
}

代码示例来源:origin: org.dashbuilder/dashbuilder-common-client

@Override
public FileUploadEditor.View setFileLabelVisible(final boolean visible) {
  fileLabel.setVisible(visible);
  return this;
}

代码示例来源:origin: org.uberfire/uberfire-apps-client

private void displayNoneOnLabel() {
  label.getElement().getStyle().setProperty("display",
                       "none");
}

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

private void initialiseChosenColumns() {
  chosenColumnsContainer.add( chosenColumnsWidget );
  chosenColumnsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
  chosenColumnsWidget.setMinimumWidth( 270 );
  final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoChosenColumns() );
  lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
  chosenColumnsWidget.setEmptyListWidget( lstEmpty );
  chosenColumnsWidget.setSelectionModel( chosenSelectionModel );
  chosenSelectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {
    @Override
    public void onSelectionChange( final SelectionChangeEvent event ) {
      chosenColumnsSelections = chosenSelectionModel.getSelectedSet();
      btnRemove.setEnabled( chosenColumnsSelections.size() > 0 );
    }
  } );
}

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

private Widget makeDateSelector(final DTCellValue52 value) {
    //If read-only return a label
    if (isReadOnly) {
      Label dateLabel = new Label();
      dateLabel.setText(format.format(value.getDateValue()));
      return dateLabel;
    }

    final DatePicker datePicker = new DatePicker(allowEmptyValues);

    // Wire up update handler
    datePicker.addChangeDateHandler((e) -> value.setDateValue(datePicker.getValue()));

    datePicker.setFormat(DATE_FORMAT);
    datePicker.setValue(value.getDateValue());

    return datePicker;
  }
}

代码示例来源:origin: kiegroup/appformer

@Override
public void errorDataSetNotFound(String dataSetUUID) {
  statusLabel.setVisible(true);
  statusLabel.setText(CommonConstants.INSTANCE.dataset_lookup_dataset_notfound(dataSetUUID));
}

代码示例来源:origin: kiegroup/appformer

@Override
public EntitiesExplorerView showMessage(final LabelType labelType,
                    final String message) {
  clear();
  mainLabel.setText(message);
  mainLabel.setType(labelType);
  mainLabel.setVisible(true);
  mainContainer.setVisible(false);
  return this;
}

代码示例来源:origin: kiegroup/drools-wb

private void initialiseAvailablePatterns() {
  availablePatternsContainer.add( availablePatternsWidget );
  availablePatternsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
  availablePatternsWidget.setMinimumWidth( 170 );
  final Label lstEmpty = GWT.create(Label.class);
  lstEmpty.setText( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailablePatterns() );
  lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
  availablePatternsWidget.setEmptyListWidget( lstEmpty );
  final SingleSelectionModel<Pattern52> selectionModel = new SingleSelectionModel<Pattern52>();
  availablePatternsWidget.setSelectionModel( selectionModel );
  selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {
    @Override
    public void onSelectionChange( final SelectionChangeEvent event ) {
      availablePatternsSelection = selectionModel.getSelectedObject();
      presenter.selectPattern( availablePatternsSelection );
    }
  } );
}

代码示例来源:origin: org.dashbuilder/dashbuilder-common-client

@Override
public MapEditor.View clearError() {
  final Element element = errorLabel.getElement();
  element.setInnerText("");
  element.getStyle().setDisplay(Style.Display.NONE);
  element.getStyle().setBorderWidth(0, Style.Unit.PX);
  errorLabel.setVisible(false);
  return this;
}

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

@Override
public FileUploadEditor.View setFileLabelVisible(final boolean visible) {
  fileLabel.setVisible(visible);
  return this;
}

代码示例来源:origin: kiegroup/appformer

private void displayNoneOnLabel() {
  label.getElement().getStyle().setProperty("display",
                       "none");
}

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

private void initialiseAvailableImports() {
  availableImportsContainer.add( availableImportsWidget );
  availableImportsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
  availableImportsWidget.setMinimumWidth( 270 );
  final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailableImports() );
  lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
  availableImportsWidget.setEmptyListWidget( lstEmpty );
  availableImportsWidget.setSelectionModel( availableImportsSelectionModel );
  availableImportsSelectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {
    @Override
    public void onSelectionChange( final SelectionChangeEvent event ) {
      availableImportsSelections = availableImportsSelectionModel.getSelectedSet();
      btnAdd.setEnabled( availableImportsSelections.size() > 0 );
    }
  } );
}

相关文章