本文整理了Java中com.smartgwt.client.widgets.Label.<init>()
方法的一些代码示例,展示了Label.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.<init>()
方法的具体详情如下:
包路径:com.smartgwt.client.widgets.Label
类名称:Label
方法名:<init>
暂无
代码示例来源:origin: com.smartgwt/smartgwt
public static Label getOrCreateRef(JavaScriptObject jsObj) {
if(jsObj == null) return null;
BaseWidget obj = BaseWidget.getRef(jsObj);
if(obj != null) {
return (Label) obj;
} else {
return new Label(jsObj);
}
}
代码示例来源:origin: com.github.livesense/org.liveSense.jcr.explorer
public MixinNodeTypes(JcrExplorer jcrExplorer) {
Label label = new Label(" Mixin Node Types");
label.setWidth(100);
this.addMember(label);
this.jcrExplorer = jcrExplorer;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getSeparator(){
Label pipe = new Label("|");
pipe.setStyleName("n52_sensorweb_client_pipe");
pipe.setAutoWidth();
return pipe;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getSeparator(){
Label pipe = new Label("|");
pipe.setStyleName("n52_sensorweb_client_pipe");
pipe.setAutoWidth();
return pipe;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private void createColorChangeButton() {
this.titleCol = new SmallButton(new Label(), i18n.changeColor(),
i18n.changeColorExtended());
this.titleCol.hide();
this.titleCol.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
LegendEntryTimeSeries.this.styleChanger.show();
}
});
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getHeaderLinkLabel(String labelText) {
Label label = new Label(labelText);
label.setStyleName("n52_sensorweb_client_headerlink");
label.setAutoWidth();
label.setWrap(false);
return label;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createAddTimeSeriesLabelButton() {
Label addTS = new Label(i18n.picker());
addTS.setStyleName("n52_sensorweb_client_legendbuttonPrimary");
addTS.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
StationSelector.getInst().show();
}
});
return addTS;
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-advancedviews-gwt
public Canvas createCategory(String title) {
Label cat = new Label(title);
cat.setStyleName("themeWidget-selectionPanelTitle");
cat.setWidth100();
cat.setHeight(20);
return cat;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label getHeaderLinkLabel(String labelText) {
Label label = new Label(labelText);
label.setStyleName("n52_sensorweb_client_headerlink");
label.setAutoWidth();
label.setWrap(false);
return label;
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-utility-gwt-example-jar
public MyCustomRibbonColumn(MapWidget mapWidget) {
super(8);
this.mapWidget = mapWidget;
xLabel = new Label(xText + ":");
xLabel.setSize("80px", "16px");
addMember(xLabel);
yLabel = new Label(yText + ":");
yLabel.setSize("80px", "16px");
addMember(yLabel);
listener = new MyMapListener();
mapWidget.addListener(listener);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createSESTabLabelButton() {
Label sesTabLabelButton = new Label(i18n.editProfile());
sesTabLabelButton.setStyleName("n52_sensorweb_client_legendbutton");
sesTabLabelButton.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Legend.this.showProfileWindow();
}
});
sesTabLabelButton.setVisible(true);
return sesTabLabelButton;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private VStack createDraggableStack(String text){
VStack dragStack = new VStack();
dragStack.setCanDrag(true);
dragStack.setCanDrop(true);
dragStack.addMember(new Label(text));
return dragStack;
}
代码示例来源:origin: org.geomajas.widget/geomajas-widget-featureinfo-gwt-example-jar
public CustomCountriesFeatureInfoCanvas(Feature feature) {
setBackgroundColor("#BBFFBB");
l = new Label("<b>Custom DetailPanel for feature: </b>" + feature.getId());
l.setWidth(250);
l.setPadding(10);
addChild(l);
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createCSVLabel() {
Label toCSV = new Label(i18n.toCSV());
toCSV.setWrap(false);
toCSV.setAutoFit(true);
toCSV.setPadding(3);
toCSV.setWidth100();
toCSV.setStyleName("n52_sensorweb_client_exportEntry");
toCSV.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
controller.exportTo(ExportType.CSV_ZIP);
exportMenu.hide();
}
});
return toCSV;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Label createPDFLabel() {
Label toPDF = new Label(i18n.toPDF());
toPDF.setWrap(false);
toPDF.setAutoFit(true);
toPDF.setPadding(3);
toPDF.setWidth100();
toPDF.setStyleName("n52_sensorweb_client_exportEntry");
toPDF.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
controller.exportTo(ExportType.PDF_ALL_IN_ONE);
exportMenu.hide();
}
});
return toPDF;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createAutoScaleButton() {
Layout layout = new Layout();
layout.setStyleName("n52_sensorweb_client_scaleButtonLayout");
autoScaleButton = new Label(i18n.resetScale());
autoScaleButton.setStyleName("n52_sensorweb_client_scaleButton");
autoScaleButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
EventBus.getMainEventBus().fireEvent(new SwitchAutoscaleEvent(true), new EventCallback() {
public void onEventFired() {
EventBus.getMainEventBus().fireEvent(new RequestDataEvent());
}
});
}
});
autoScaleButton.setWidth(80);
autoScaleButton.setWrap(false);
return autoScaleButton;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
public InteractionWindow(Layout content) {
this.setContent(content);
title = new Label();
title.setWidth100();
title.setAutoHeight();
title.setStyleName("n52_sensorweb_client_interactionmenuHeader");
title.setWrap(false);
title.hide();
addMember(title);
addMember(content);
setStyleName("n52_sensorweb_client_interactionmenu");
}
代码示例来源:origin: org.geomajas/geomajas-project-deskmanager-gwt
private void createLoadingWidget() {
loadingLayout = new VLayout();
loadingLayout.setWidth100();
loadingLayout.setHeight100();
loadingLayout.setOpacity(70);
loadingLayout.setBackgroundColor("ffffff");
loadingLabel = new Label();
loadingLabel.setTop("30%");
loadingLabel.setAlign(Alignment.CENTER);
loadingLayout.addMember(loadingLabel);
loadingLayout.hide();
}
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
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;
}
代码示例来源:origin: org.n52.sensorweb/sensorwebclient-ui
private Canvas createValueIntervalLabel() {
Layout interval = new HLayout();
interval.setAutoWidth();
interval.setStyleName("n52_sensorweb_client_legendInfoRow");
this.firstValueInterval.setAutoWidth();
this.firstValueInterval.setWrap(false);
this.firstValueInterval.setStyleName("n52_sensorweb_client_legendlink");
this.lastValueInterval.setAutoWidth();
this.lastValueInterval.setWrap(false);
this.lastValueInterval.setStyleName("n52_sensorweb_client_legendlink");
Label separator = new Label(i18n.to());
separator.setAlign(Alignment.CENTER);
separator.setWidth(20);
interval.addMember(this.firstValueInterval);
interval.addMember(separator);
interval.addMember(this.lastValueInterval);
return interval;
}
内容来源于网络,如有侵权,请联系作者删除!