• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Label类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.gwtbootstrap3.client.ui.Label的典型用法代码示例。如果您正苦于以下问题:Java Label类的具体用法?Java Label怎么用?Java Label使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Label类属于org.gwtbootstrap3.client.ui包,在下文中一共展示了Label类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setup

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
@PostConstruct
public void setup() {
    l = new Label( "Click to close" );
    t = new TextBox();
    b = new Button( "Close" );
    b.addClickHandler( new ClickHandler() {

        @Override
        public void onClick( final ClickEvent event ) {
            placeManager.closePlace( place );
        }
    } );
    view.add( l );
    view.add( t );
    view.add( b );
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:17,代码来源:SimplePopup.java


示例2: setMessageStyle

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
/**
* Set the style type for alert labels
* @param statusLabel the label
* @param msgType the message type
*/
  private static void setMessageStyle(Label statusLabel, MessageType msgType) {
  	statusLabel.removeStyleName("alert-info");
  	statusLabel.removeStyleName("alert-warning");
  	statusLabel.removeStyleName("alert-danger");
  	statusLabel.removeStyleName("alert-success");
  	if(msgType.equals(MessageType.INFO)) {
  		statusLabel.addStyleName("alert-info");
  	} else if(msgType.equals(MessageType.WARNING)) {
  		statusLabel.addStyleName("alert-warning");
  	} else if(msgType.equals(MessageType.ERROR)) {
  		statusLabel.addStyleName("alert-danger");
  	} else if(msgType.equals(MessageType.SUCCESS)) {
  		statusLabel.addStyleName("alert-success");
  	}
  }
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:21,代码来源:UploadDriverPanel.java


示例3: initialiseAvailableTypes

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailableTypes() {
    availableTypesContainer.add(availableTypesWidget);
    availableTypesWidget.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
    availableTypesWidget.setMinimumWidth(270);

    final Label lstEmpty = new Label(GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailablePatterns());
    lstEmpty.setStyleName(WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem());
    availableTypesWidget.setEmptyListWidget(lstEmpty);

    final MultiSelectionModel<String> selectionModel = new MultiSelectionModel<String>();
    availableTypesWidget.setSelectionModel(selectionModel);

    selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange(final SelectionChangeEvent event) {
            availableTypesSelections = selectionModel.getSelectedSet();
            btnAdd.setEnabled(availableTypesSelections.size() > 0);
        }
    });
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:FactPatternsPageViewImpl.java


示例4: initialiseAvailableFactTypes

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailableFactTypes() {
    availableFactTypesContainer.add( availableFactTypesWidget );
    availableFactTypesWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
    availableFactTypesWidget.setMinimumWidth( 130 );

    final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailablePatterns() );
    lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
    availableFactTypesWidget.setEmptyListWidget( lstEmpty );

    final MultiSelectionModel<String> selectionModel = new MultiSelectionModel<String>();
    availableFactTypesWidget.setSelectionModel( selectionModel );

    selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange( final SelectionChangeEvent event ) {
            availableFactTypesSelections = selectionModel.getSelectedSet();
            btnAddFactTypes.setEnabled( availableFactTypesSelections.size() > 0 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:23,代码来源:ActionInsertFactFieldsPageViewImpl.java


示例5: initialiseAvailableFields

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailableFields() {
    availableFieldsContainer.add( availableFieldsWidget );
    availableFieldsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
    availableFieldsWidget.setMinimumWidth( 130 );

    final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailableFields() );
    lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
    availableFieldsWidget.setEmptyListWidget( lstEmpty );

    final MultiSelectionModel<AvailableField> selectionModel = new MultiSelectionModel<AvailableField>();
    availableFieldsWidget.setSelectionModel( selectionModel );

    selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange( final SelectionChangeEvent event ) {
            availableFieldsSelections = selectionModel.getSelectedSet();
            btnAdd.setEnabled( availableFieldsSelections.size() > 0 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:23,代码来源:ActionInsertFactFieldsPageViewImpl.java


示例6: initialiseAvailablePatterns

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailablePatterns() {
    availablePatternsContainer.add(availablePatternsWidget);
    availablePatternsWidget.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
    availablePatternsWidget.setMinimumWidth(170);

    final Label lstEmpty = new Label(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);
        }
    });
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:FactPatternConstraintsPageViewImpl.java


示例7: initialiseAvailableFields

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailableFields() {
    availableFieldsContainer.add(availableFieldsWidget);
    availableFieldsWidget.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);
    availableFieldsWidget.setMinimumWidth(170);

    final Label lstEmpty = new Label(GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailableFields());
    lstEmpty.setStyleName(WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem());
    availableFieldsWidget.setEmptyListWidget(lstEmpty);

    final MultiSelectionModel<AvailableField> selectionModel = new MultiSelectionModel<AvailableField>();
    availableFieldsWidget.setSelectionModel(selectionModel);

    selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange(final SelectionChangeEvent event) {
            availableFieldsSelections = selectionModel.getSelectedSet();
            btnAdd.setEnabled(availableFieldsSelections.size() > 0);
        }
    });
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:FactPatternConstraintsPageViewImpl.java


示例8: initialiseAvailableColumns

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
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 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:ColumnExpansionPageViewImpl.java


示例9: initialiseChosenColumns

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
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 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:ColumnExpansionPageViewImpl.java


示例10: initialiseAvailableImports

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
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 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:ImportsPageViewImpl.java


示例11: initialiseChosenImports

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseChosenImports() {
    chosenImportsContainer.add( chosenImportsWidget );
    chosenImportsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
    chosenImportsWidget.setMinimumWidth( 270 );

    final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoChosenImports() );
    lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
    chosenImportsWidget.setEmptyListWidget( lstEmpty );

    chosenImportsWidget.setSelectionModel( chosenImportsSelectionModel );

    chosenImportsSelectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange( final SelectionChangeEvent event ) {
            chosenImportSelections = chosenImportsSelectionModel.getSelectedSet();
            btnRemove.setEnabled( chosenImportSelections.size() > 0 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:22,代码来源:ImportsPageViewImpl.java


示例12: initialiseAvailablePatterns

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
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 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:24,代码来源:ActionSetFieldsPageViewImpl.java


示例13: initialiseAvailableFields

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initialiseAvailableFields() {
    availableFieldsContainer.add( availableFieldsWidget );
    availableFieldsWidget.setKeyboardSelectionPolicy( KeyboardSelectionPolicy.ENABLED );
    availableFieldsWidget.setMinimumWidth( 170 );

    final Label lstEmpty = new Label( GuidedDecisionTableConstants.INSTANCE.DecisionTableWizardNoAvailableFields() );
    lstEmpty.setStyleName( WizardCellListResources.INSTANCE.cellListStyle().cellListEmptyItem() );
    availableFieldsWidget.setEmptyListWidget( lstEmpty );

    final MultiSelectionModel<AvailableField> selectionModel = new MultiSelectionModel<AvailableField>();
    availableFieldsWidget.setSelectionModel( selectionModel );

    selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() {

        @Override
        public void onSelectionChange( final SelectionChangeEvent event ) {
            availableFieldsSelections = selectionModel.getSelectedSet();
            btnAdd.setEnabled( availableFieldsSelections.size() > 0 );
        }

    } );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:23,代码来源:ActionSetFieldsPageViewImpl.java


示例14: makeDateSelector

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
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;
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:19,代码来源:DTCellValueWidgetFactory.java


示例15: GlobalsEditorViewImpl

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
@Inject
public GlobalsEditorViewImpl( final Label generatedLabel,
                              final Button addGlobalButton,
                              final AddGlobalPopup addGlobalPopup,
                              final TranslationService translationService) {
    this.generatedLabel = generatedLabel;
    this.addGlobalButton = addGlobalButton;
    this.addGlobalPopup = addGlobalPopup;
    this.translationService = translationService;

    setup();

    // Hide/disable the following until content is loaded
    generatedLabel.setVisible( false );
    addGlobalButton.setEnabled( false );
}
 
开发者ID:kiegroup,项目名称:drools-wb,代码行数:17,代码来源:GlobalsEditorViewImpl.java


示例16: setEmptyTableWidget

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void setEmptyTableWidget() {
    String caption = "No data";
    if ( !( emptyTableCaption == null || emptyTableCaption.trim().isEmpty() ) ) {
        caption = emptyTableCaption;
    }
    dataGrid.setEmptyTableWidget( new Label( caption ) );
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:8,代码来源:SimpleTable.java


示例17: setEmptyTableWidget

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void setEmptyTableWidget() {
    String caption = "-----";
    if ( !( emptyTableCaption == null || emptyTableCaption.trim().isEmpty() ) ) {
        caption = emptyTableCaption;
    }
    dataGrid.setEmptyTableWidget( new Label( caption ) );
}
 
开发者ID:Teiid-Designer,项目名称:teiid-webui,代码行数:8,代码来源:PagedTable.java


示例18: initTable

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void initTable() {
    ListHandler<MetadataEnumeration> sortHandler =
        new ListHandler<MetadataEnumeration>(listProvider.getList());

    table.addColumnSortHandler(sortHandler);
    table.setEmptyTableWidget(new Label("No Authors found.."));
    
    this.metacompare = new Comparator<MetadataEnumeration>() {
      @Override
      public int compare(MetadataEnumeration e1, MetadataEnumeration e2) {
        if(e1.getLabel() != null && e2.getLabel() != null)
          return e1.getLabel().compareToIgnoreCase(e2.getLabel());
        return 0;
      }
    };
    
    // Name Column
    TextColumn<MetadataEnumeration> namecol = 
        new TextColumn<MetadataEnumeration>() {
      @Override
      public String getValue(MetadataEnumeration menum) {
        return menum.getLabel();
      }
    };
    table.addColumn(namecol, "Author Name");
    namecol.setSortable(true);
    sortHandler.setComparator(namecol, this.metacompare);
    table.getColumnSortList().push(namecol);    
    
    listProvider.addDataDisplay(table);
    pager.setDisplay(table);
}
 
开发者ID:KnowledgeCaptureAndDiscovery,项目名称:ontosoft,代码行数:33,代码来源:CommunityView.java


示例19: setEmptyTableWidget

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
protected void setEmptyTableWidget() {
    String caption = "-----";
    if (!emptyCaptionIsDefined()) {
        caption = emptyTableCaption;
    }
    dataGrid.setEmptyTableWidget(new Label(caption));
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:UberfireSimpleTable.java


示例20: generateTags

import org.gwtbootstrap3.client.ui.Label; //导入依赖的package包/类
private void generateTags() {
    this.tags.clear();
    for (String tag : tagsList) {
        tags.add(new Label(tag));
        tags.add(generateRemoveIcon(tag));
    }
}
 
开发者ID:kiegroup,项目名称:appformer,代码行数:8,代码来源:AddTag.java



注:本文中的org.gwtbootstrap3.client.ui.Label类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java TableOutputFormat类代码示例发布时间:2022-05-23
下一篇:
Java AndExpr类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap