本文整理汇总了Java中com.smartgwt.client.widgets.Label类的典型用法代码示例。如果您正苦于以下问题:Java Label类的具体用法?Java Label怎么用?Java Label使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Label类属于com.smartgwt.client.widgets包,在下文中一共展示了Label类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: buildLayout
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
/**
* Builds the view content.
* @return a layout containing the view content.
*/
@Override
public Layout buildLayout() {
this.jobsTotalLabel = new Label();
setTotalJobsLabel();
this.jobsTotalLabel.setAlign(Alignment.CENTER);
this.jobsTotalLabel.setWidth100();
this.jobsTotalLabel.setMinWidth(40);
this.jobsTotalLabel.setMargin(4);
HLayout labelLayout = new HLayout();
labelLayout.addStyleName("labelPaginationLayout");
labelLayout.addMember(this.jobsTotalLabel);
ToolStrip paginationLayout = getToolStripPaginationLayout();
paginationLayout.addMember(this.pageFirstButton);
paginationLayout.addMember(this.pagePreviousButton);
paginationLayout.addMember(labelLayout);
paginationLayout.addMember(this.pageLastButton);
paginationLayout.addMember(this.pageNextButton);
return paginationLayout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:29,代码来源:JobsPaginationView.java
示例2: buildOutputPane
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
protected VLayout buildOutputPane() {
this.label = new Label();
this.label.setWidth100();
this.label.setAlign(Alignment.CENTER);
this.label.hide();
this.text = new HTMLPane();
this.text.setHeight100();
this.text.setWidth100();
this.text.setShowEdges(true);
this.text.hide();
VLayout textLayout = new VLayout();
textLayout.addMember(this.label);
textLayout.addMember(this.text);
textLayout.setWidth100();
return textLayout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:20,代码来源:AbstractOutputDisplayView.java
示例3: buildContent
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
protected Layout buildContent() {
VLayout layout = new VLayout();
this.buildGrid();
this.loadingLabel = new Label("fetching " + this.itemName + "...");
this.loadingLabel.setIcon("loading.gif");
this.loadingLabel.setWidth100();
this.loadingLabel.setHeight100();
this.loadingLabel.setAlign(Alignment.CENTER);
this.loadingLabel.hide();
this.errorLabel = new Label("");
this.errorLabel.setWidth100();
this.errorLabel.setAlign(Alignment.CENTER);
this.errorLabel.hide();
layout.addMember(this.itemsGrid);
layout.addMember(this.loadingLabel);
layout.addMember(this.errorLabel);
return layout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:23,代码来源:AbstractGridItemsView.java
示例4: createDetailsLabelAndExportButton
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private HLayout createDetailsLabelAndExportButton() {
HLayout layout = new HLayout();
layout.setDefaultLayoutAlign(VerticalAlignment.CENTER);
layout.setHeight(30);
Label detailsLabel = new Label("<h3>Details</h3>");
detailsLabel.setHeight(20);
layout.addMember(detailsLabel);
layout.addMember(new LayoutSpacer());
IButton export = new IButton("Export");
export.setAutoFit(true);
export.addClickHandler(downloadUsageData());
layout.addMember(export);
LayoutSpacer toAlignWithRefresh = new LayoutSpacer();
toAlignWithRefresh.setWidth(2);
layout.addMember(toAlignWithRefresh);
return layout;
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:22,代码来源:UsageView.java
示例5: setRoot
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
public void setRoot(Layout layout) {
wrapper = new VLayout();
wrapper.setWidth100();
wrapper.setHeight100();
this.noJobSelectedMessage = new Label("No job selected.");
this.noJobSelectedMessage.setAlign(Alignment.CENTER);
this.noJobSelectedMessage.setWidth100();
wrapper.addMember(noJobSelectedMessage);
htmlPanel = new HTML();
htmlPanel.getElement().setId("html-view");
wrapper.addMember(htmlPanel);
layout.addMember(wrapper);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:18,代码来源:VisualizationViewHtml.java
示例6: LoadingMessage
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
public LoadingMessage() {
super();
Label label = new Label("Reconnecting...");
label.setIcon("loading.gif");
label.setMargin(20);
HLayout hlayout = new HLayout();
hlayout.setWidth100();
hlayout.setAlign(Alignment.CENTER);
hlayout.addMember(label);
this.setHeight100();
this.setWidth100();
this.setAlign(VerticalAlignment.CENTER);
this.addMember(hlayout);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:17,代码来源:LoadingMessage.java
示例7: SourceOverview
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
public SourceOverview(RMController controller, String url, String nsname, AsyncCallback<String> extraCallback) {
nsInfo = new MBeanSourceDetailedView(extraCallback,
controller,
url,
MonitoringSourceView.MBEAN_NAME_PREFIX + "-" + nsname,
Arrays.asList("Hosts", "VMs"));
nsInfo.reload();
VLayout nsInfoRow = new VLayout();
Label nsLabel = new Label("<nobr style='font-weight:bold;'>Overview<nobr>");
nsLabel.setHeight(50);
nsInfoRow.addMember(nsLabel);
nsInfoRow.addMember(nsInfo);
nsInfoRow.setWidth("50%");
nsInfoRow.setHeight("120px");
addMember(nsInfoRow);
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:22,代码来源:SourceOverview.java
示例8: update
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
/**
* The purpose of this function is to update the specified {@code nodeLabelToUpdate} icon with the new one received
* from a state refresh available within the specified {@code nodes} data structure. The specified
* {@code nodeSourceName}, {@code hostName} and {@code nodeUrl} are used to lookup the new icon value
* from {@code nodes}. If the specified {@code nodeUrl} is {@code null}, no action is performed.
*
* @param nodes new nodes information received.
* @param nodeSourceName the node source name associated to the node to update.
* @param hostName the host name associated to the node to update.
* @param nodeUrl the URL of the node to update.
* @param nodeLabelToUpdate the label whose the icon must be updated.
*/
public static void update(Map<String, NodeSource> nodes, Label nodeLabelToUpdate, String nodeSourceName,
String hostName, String nodeUrl) {
if (nodeUrl != null) {
NodeSource nodeSource = nodes.get(nodeSourceName);
if (nodeSource != null) {
NodeSource.Host host = nodeSource.getHosts().get(hostName);
if (host != null) {
Node node = host.getNodes().get(nodeUrl);
if (node != null) {
nodeLabelToUpdate.setIcon(node.getIcon());
}
}
}
}
}
开发者ID:ow2-proactive,项目名称:scheduling-portal,代码行数:32,代码来源:NodeLabel.java
示例9: MultiFeatureListGrid
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
public MultiFeatureListGrid(MapWidget map) {
super();
this.map = map;
tabset = new TabSet();
tabset.setWidth100();
tabset.setHeight100();
tabset.setOverflow(Overflow.HIDDEN);
tabset.addCloseClickHandler(new CloseClickHandler() {
public void onCloseClick(TabCloseClickEvent event) {
setEmpty((tabset.getTabs().length == 1));
}
});
this.addChild(tabset);
empty = new Label(MESSAGES.multiFeatureListGridNoData());
empty.setWidth100();
empty.setAlign(Alignment.CENTER);
empty.setPadding(15);
this.addChild(empty);
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:23,代码来源:MultiFeatureListGrid.java
示例10: setStyleName
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
@Override
public void setStyleName(String styleName) {
super.setStyleName(styleName);
for (VStack group : groups) {
group.setStyleName(styleName + "Group");
}
for (Label groupTitle : groupTitles) {
groupTitle.setStyleName(styleName + "GroupTitle");
}
for (VStack body : bodies) {
body.setStyleName(styleName + "GroupBody");
}
for (RibbonColumn button : buttons) {
if (button instanceof RibbonButton) {
button.setButtonBaseStyle(styleName + "Button");
}
}
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:19,代码来源:DropDownPanel.java
示例11: addLabelsToPanel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
protected void addLabelsToPanel() {
Label header = new Label("<div class=\"" + WidgetLayout.MEASURE_DISTANCE_PANEL_HEADER + "\" ><b>"
+ I18nProvider.getMenu().measureDistancePanelHeader() + "</b></div>");
header.setHeight100();
panel.addMember(header);
distanceLabel = new DistanceLabel();
panel.addMember(distanceLabel);
if (showArea) {
areaLabel = new AreaLabel();
panel.addMember(areaLabel);
}
if (showCoordinate) {
coordinateLabel = new CoordinateLabel();
panel.addMember(coordinateLabel);
}
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:20,代码来源:MeasureDistancePanel.java
示例12: addVector
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private void addVector(VectorLayer layer, int ruleIndex, String title) {
HLayout layout = new HLayout(WidgetLayout.marginSmall);
layout.setHeight(WidgetLayout.legendVectorRowHeight);
UrlBuilder urlBuilder = new UrlBuilder(Geomajas.getDispatcherUrl());
urlBuilder.addPath("legendgraphic");
urlBuilder.addPath(layer.getServerLayerId());
urlBuilder.addPath(layer.getLayerInfo().getNamedStyleInfo().getName());
urlBuilder.addPath(ruleIndex + ".png");
Img icon = new Img(urlBuilder.toString(), WidgetLayout.legendRasterIconWidth,
WidgetLayout.legendRasterIconHeight);
icon.setLayoutAlign(Alignment.LEFT);
layout.addMember(icon);
Label label = new Label(title);
label.setWrap(false);
label.setLayoutAlign(Alignment.LEFT);
layout.addMember(label);
addMember(layout);
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:19,代码来源:Legend.java
示例13: addRaster
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private void addRaster(RasterLayer layer) {
HLayout layout = new HLayout(WidgetLayout.marginSmall);
layout.setHeight(WidgetLayout.legendRasterRowHeight);
UrlBuilder urlBuilder = new UrlBuilder(Geomajas.getDispatcherUrl());
urlBuilder.addPath("legendgraphic");
urlBuilder.addPath(layer.getServerLayerId() + ".png");
Img icon =
new Img(urlBuilder.toString(), WidgetLayout.legendRasterIconWidth, WidgetLayout.legendRasterIconHeight);
icon.setLayoutAlign(Alignment.LEFT);
layout.addMember(icon);
Label label = new Label(layer.getLabel());
label.setWrap(false);
label.setLayoutAlign(Alignment.LEFT);
layout.addMember(label);
addMember(layout);
}
开发者ID:geomajas,项目名称:geomajas-project-client-gwt,代码行数:17,代码来源:Legend.java
示例14: createLabel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
/**
* Create a label.
*
* @param textToShow
* @return
*/
private Label createLabel(String textToShow) {
Label label = new Label();
label.setBackgroundColor(BACKGROUND_COLOR_LABEL);
label.setHeight(30);
label.setWidth100();
label.setPadding(0);
label.setMargin(3);
label.setAlign(Alignment.CENTER);
label.setValign(VerticalAlignment.CENTER);
label.setContents(textToShow);
label.setWrap(false);
return label;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:22,代码来源:NewsTab.java
示例15: createDisplayLabel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private VLayout createDisplayLabel() {
i_label = new Label("<b>" + MESSAGE + "<b>");
i_label.setWidth100();
i_label.setHeight(30);
i_label.setMargin(2);
i_label.setValign(VerticalAlignment.CENTER);
i_label.setBackgroundColor(BACKGROUND_COLOR);
final VLayout vLayoutLayoutSpacers = new VLayout();
vLayoutLayoutSpacers.setWidth100();
vLayoutLayoutSpacers.setHeight(30);
vLayoutLayoutSpacers.setBackgroundColor(BACKGROUND_COLOR);
vLayoutLayoutSpacers.setLayoutMargin(6);
vLayoutLayoutSpacers.setMembersMargin(6);
vLayoutLayoutSpacers.addMember(i_label);
return vLayoutLayoutSpacers;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:19,代码来源:CategorySelectionWindow.java
示例16: createMessagePanel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private HLayout createMessagePanel(String message) {
Label messageLabel = new Label(message);
messageLabel.setWidth100();
messageLabel.setHeight100();
HLayout messagePanel = new HLayout();
messagePanel.setWidth100();
messagePanel.setHeight100();
messagePanel.setLayoutMargin(10);
messagePanel.setLayoutMargin(6);
messagePanel.setMembersMargin(6);
messagePanel.addMember(messageLabel);
return messagePanel;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:17,代码来源:MessageWindow.java
示例17: createDisplayLabel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private VLayout createDisplayLabel() {
i_label = new Label("<b>HTP Information Message<b>");
i_label.setWidth100();
i_label.setHeight(30);
i_label.setMargin(2);
i_label.setValign(VerticalAlignment.CENTER);
i_label.setBackgroundColor(BACKGROUND_COLOR);
final VLayout vLayoutLayoutSpacers = new VLayout();
vLayoutLayoutSpacers.setWidth100();
vLayoutLayoutSpacers.setHeight(30);
vLayoutLayoutSpacers.setBackgroundColor(BACKGROUND_COLOR);
vLayoutLayoutSpacers.setLayoutMargin(6);
vLayoutLayoutSpacers.setMembersMargin(6);
// vLayoutLayoutSpacers.setBorder("1px dashed red");
vLayoutLayoutSpacers.addMember(i_label);
return vLayoutLayoutSpacers;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:21,代码来源:MessageWindow.java
示例18: createLabel
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
/**
* Create a label.
*
* @param textToShow
* @return
*/
public static Label createLabel(String textToShow, Alignment alignment) {
Label label = new Label();
label.setHeight(40);
label.setWidth100();
label.setPadding(0);
label.setMargin(10);
label.setAlign(alignment);
label.setValign(VerticalAlignment.CENTER);
label.setContents(textToShow);
label.setWrap(false);
return label;
}
开发者ID:SHARP-HTP,项目名称:phenotype-portal,代码行数:22,代码来源:UiHelper.java
示例19: createSelectionMenuButton
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private Canvas createSelectionMenuButton() {
showSelectionMenuButton = new Label(i18n.chooseDataSource());
showSelectionMenuButton.setStyleName("n52_sensorweb_client_legendbuttonPrimary");
showSelectionMenuButton.setZIndex(1000000);
showSelectionMenuButton.setAutoHeight();
showSelectionMenuButton.setAutoWidth();
showSelectionMenuButton.setWrap(false);
showSelectionMenuButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
if (selectionMenu.isVisible()) {
selectionMenu.animateHide(AnimationEffect.SLIDE);
} else {
selectionMenu.animateShow(AnimationEffect.SLIDE);
}
}
});
setSelectionMenuButtonPosition();
return showSelectionMenuButton;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:21,代码来源:StationSelector.java
示例20: createInformationFieldForSelectedStation
import com.smartgwt.client.widgets.Label; //导入依赖的package包/类
private Canvas createInformationFieldForSelectedStation() {
VLayout layout = new VLayout();
timeseriesInfoHTMLPane = new HTMLPane();
phenomenonBox = new SelectItem(i18n.phenomenonLabel());
phenomenonBox.addChangedHandler(new ChangedHandler() {
@Override
public void onChanged(ChangedEvent event) {
String category = (String) event.getItem().getValue();
controller.loadTimeseriesByCategory(category);
}
});
DynamicForm form = new DynamicForm();
form.setItems(phenomenonBox);
// phenomenonInfoLabel = new Label();
// phenomenonInfoLabel.setAutoHeight();
stationInfoLabel = new Label();
stationInfoLabel.setAutoHeight();
// layout.addMember(phenomenonInfoLabel);
layout.addMember(form);
layout.addMember(stationInfoLabel);
layout.addMember(timeseriesInfoHTMLPane);
return layout;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:24,代码来源:StationSelector.java
注:本文中的com.smartgwt.client.widgets.Label类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论