本文整理汇总了Java中com.smartgwt.client.widgets.layout.Layout.setStyleName方法的典型用法代码示例。如果您正苦于以下问题:Java Layout.setStyleName方法的具体用法?Java Layout.setStyleName怎么用?Java Layout.setStyleName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.smartgwt.client.widgets.layout.Layout
的用法示例。
在下文中一共展示了Layout.setStyleName方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createAutoScaleButton
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
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;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:DataControlsTimeSeries.java示例2: createValueIntervalLabel
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
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;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:19,代码来源:LegendEntryTimeSeries.java示例3: getHomeLabel
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Layout getHomeLabel() {
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_logoBlock");
Img homeLabel = new Img("../img/client-logo.png", 289, 55);
homeLabel.setStyleName("n52_sensorweb_client_logo");
homeLabel.setCursor(Cursor.POINTER);
homeLabel.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
String url = "http://52north.org/communities/sensorweb/";
Window.open(url, "_blank", "");
}
});
layout.addMember(homeLabel);
return layout;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:17,代码来源:Header.java示例4: createEditCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
@Override
public Canvas createEditCanvas() {
controller.clearSelectionData();
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_create_abo_template_overundershootcondition");
layout.addMember(alignVerticalCenter(createEntryConditionEditCanvas()));
layout.addMember(alignVerticalCenter(createExitConditionEditCanvas()));
return layout;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:10,代码来源:OverUndershootRuleTemplate.java示例5: createNewEventAbonnementCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private Canvas createNewEventAbonnementCanvas() {
Layout subscriptionContent = new VLayout();
subscriptionContent.setStyleName("n52_sensorweb_client_create_abo_form_content");
subscriptionContent.addMember(createStationInfo());
subscriptionContent.addMember(createRuleTemplateSelectionCanvas());
subscriptionContent.addMember(new EventNameForm(controller));
subscriptionContent.addMember(createApplyCancelCanvas());
subscriptionContent.addMember(new TimeSeriesMetadataTable(controller));
return subscriptionContent;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:11,代码来源:EventSubscriptionWindow.java示例6: createEditCanvas
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
@Override
public Canvas createEditCanvas() {
controller.clearSelectionData();
Layout layout = new VLayout();
layout.setStyleName("n52_sensorweb_client_create_abo_template_sensorlosscondition");
layout.addMember(alignVerticalCenter(createEditConditionCanvas()));
return layout;
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:9,代码来源:SensorLossRuleTemplate.java示例7: generateHeader
import com.smartgwt.client.widgets.layout.Layout; //导入方法依赖的package包/类
private void generateHeader(){
setStyleName("n52_sensorweb_client_headerContainer");
setBackgroundImage("../img/52n_bg.png");
setAutoHeight();
addMember(getHomeLabel());
Layout rightLayout = new VLayout();
Layout linkLayout = new HLayout();
linkLayout.setStyleName("n52_sensorweb_client_linkBlock");
linkLayout.setAlign(Alignment.RIGHT);
// linkLayout.addMember(getVersionInfo());
// linkLayout.addMember(getSeparator());
// temporary button for metadata reset
//linkLayout.addMember(getMetadatareset());
//linkLayout.addMember(getSeparator());
linkLayout.addMember(getPermalinkLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getHelpLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getAddBookmarkLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getImprintLink());
linkLayout.addMember(getSeparator());
linkLayout.addMember(getCopyrightLink());
rightLayout.addMember(linkLayout);
if (ClientUtils.isSesEnabled()) {
rightLayout.addMember(createLoginInfo());
}
addMember(rightLayout);
}
开发者ID:52North,项目名称:SensorWebClient,代码行数:38,代码来源:Header.java本文标签属性:
示例:示例是什么意思
代码:代码编程
java:java自行车