本文整理汇总了Java中com.vaadin.ui.AbsoluteLayout.setMargin方法的典型用法代码示例。如果您正苦于以下问题:Java AbsoluteLayout.setMargin方法的具体用法?Java AbsoluteLayout.setMargin怎么用?Java AbsoluteLayout.setMargin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.AbsoluteLayout
的用法示例。
在下文中一共展示了AbsoluteLayout.setMargin方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("300px");
mainLayout.setHeight("250px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("300px");
setHeight("250px");
// verticalLayout_1
verticalPasswordLayout = buildVerticalLayout_1();
mainLayout.addComponent(verticalPasswordLayout, "top:0.0px;left:0.0px;");
return mainLayout;
}
示例2: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("350px");
mainLayout.setHeight("350px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("350px");
setHeight("350px");
// verticalLayout_1
profileLayout = buildProfileLayout();
mainLayout.addComponent(profileLayout, "top:0.0px;left:0.0px;");
return mainLayout;
}
示例3: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("380px");
mainLayout.setHeight("300px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("380px");
setHeight("300px");
// verticalLayoutSecurity
verticalLayoutSecurity = buildVerticalLayoutSecurity();
mainLayout.addComponent(verticalLayoutSecurity,
"top:0.0px;bottom:9.0px;left:0.0px;");
return mainLayout;
}
示例4: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// codeField
codeField = new TextField();
codeField.setCaption("Código");
codeField.setImmediate(false);
codeField.setWidth("140px");
codeField.setHeight("-1px");
codeField.setTabIndex(1);
codeField.setRequired(true);
mainLayout.addComponent(codeField, "top:16.0px;left:20.0px;");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("-1px");
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
return mainLayout;
}
示例5: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("-1px");
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
// nameField
nameField = new TextField();
nameField.setCaption("Nombre");
nameField.setImmediate(false);
nameField.setWidth("120px");
nameField.setHeight("-1px");
nameField.setTabIndex(1);
nameField.setRequired(true);
mainLayout.addComponent(nameField, "top:17.0px;left:20.0px;");
return mainLayout;
}
示例6: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("24px");
descriptionField.setTabIndex(1);
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
// nameField
nameField = new TextField();
nameField.setCaption("Nombre");
nameField.setImmediate(false);
nameField.setWidth("140px");
nameField.setHeight("-1px");
nameField.setRequired(true);
mainLayout.addComponent(nameField, "top:17.0px;left:20.0px;");
return mainLayout;
}
示例7: buildErrorHeaderLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildErrorHeaderLayout() {
// common part: create layout
errorHeaderLayout = new AbsoluteLayout();
errorHeaderLayout.setImmediate(false);
errorHeaderLayout.setWidth("100.0%");
errorHeaderLayout.setHeight("100px");
errorHeaderLayout.setMargin(false);
// imageErrorImage
imageErrorImage = new Embedded();
imageErrorImage.setImmediate(false);
imageErrorImage.setWidth("60px");
imageErrorImage.setHeight("60px");
imageErrorImage.setSource(new ThemeResource(
"images/exclamation.png"));
imageErrorImage.setType(1);
imageErrorImage.setMimeType("image/png");
errorHeaderLayout.addComponent(imageErrorImage,
"top:20.0px;left:20.0px;");
// errorHeaderTittleLabel
errorHeaderTittleLabel = new Label();
errorHeaderTittleLabel.setImmediate(false);
errorHeaderTittleLabel.setWidth("100.0%");
errorHeaderTittleLabel.setHeight("100.0%");
errorHeaderTittleLabel.setValue("Error Header");
errorHeaderLayout.addComponent(errorHeaderTittleLabel,
"top:20.0px;right:36.0px;bottom:20.0px;left:118.0px;");
return errorHeaderLayout;
}
示例8: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// nameField
nameField = new TextField();
nameField.setCaption("Nombre");
nameField.setImmediate(false);
nameField.setWidth("140px");
nameField.setHeight("-1px");
nameField.setTabIndex(1);
nameField.setRequired(true);
mainLayout.addComponent(nameField, "top:16.0px;left:20.0px;");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("-1px");
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
return mainLayout;
}
示例9: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("350px");
mainLayout.setHeight("350px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("350px");
setHeight("350px");
return mainLayout;
}
示例10: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// nameField
nameField = new TextField();
nameField.setCaption("Nombre");
nameField.setImmediate(false);
nameField.setWidth("140px");
nameField.setHeight("-1px");
nameField.setTabIndex(1);
nameField.setRequired(true);
mainLayout.addComponent(nameField, "top:16.0px;left:20.0px;");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("-1px");
descriptionField.setTabIndex(2);
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
return mainLayout;
}
示例11: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("560px");
mainLayout.setHeight("100px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("560px");
setHeight("100px");
// codeField
codeField = new TextField();
codeField.setCaption("Código");
codeField.setImmediate(false);
codeField.setWidth("140px");
codeField.setHeight("-1px");
codeField.setTabIndex(1);
codeField.setRequired(true);
mainLayout.addComponent(codeField, "top:16.0px;left:20.0px;");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("520px");
descriptionField.setHeight("-1px");
descriptionField.setTabIndex(2);
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
return mainLayout;
}
示例12: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("520px");
mainLayout.setHeight("280px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("520px");
setHeight("280px");
// alarmDateField
alarmDateField = new DateField();
alarmDateField.setCaption("Fecha alarma");
alarmDateField.setImmediate(false);
alarmDateField.setWidth("120px");
alarmDateField.setHeight("-1px");
alarmDateField.setInvalidAllowed(false);
alarmDateField.setResolution(DateField.RESOLUTION_SEC);
mainLayout.addComponent(alarmDateField, "top:17.0px;left:380.0px;");
// areaField
areaField = new TextField();
areaField.setCaption("Area trabajo");
areaField.setImmediate(false);
areaField.setWidth("160px");
areaField.setHeight("-1px");
mainLayout.addComponent(areaField, "top:17.0px;left:200.0px;");
// messageField
messageField = new TextField();
messageField.setCaption("Message");
messageField.setImmediate(false);
messageField.setWidth("480px");
messageField.setHeight("164px");
mainLayout.addComponent(messageField, "top:100.0px;left:20.0px;");
// organizationField
organizationField = new TextField();
organizationField.setCaption("Organización");
organizationField.setImmediate(false);
organizationField.setWidth("160px");
organizationField.setHeight("-1px");
mainLayout.addComponent(organizationField, "top:17.0px;left:20.0px;");
// alarmTypeField
alarmTypeField = new ComboBox();
alarmTypeField.setCaption("Tipo alarma");
alarmTypeField.setImmediate(false);
alarmTypeField.setWidth("180px");
alarmTypeField.setHeight("-1px");
mainLayout.addComponent(alarmTypeField, "top:60.0px;left:20.0px;");
// alarmStatusField
alarmStatusField = new ComboBox();
alarmStatusField.setCaption("Estado alarma");
alarmStatusField.setImmediate(false);
alarmStatusField.setWidth("180px");
alarmStatusField.setHeight("-1px");
mainLayout.addComponent(alarmStatusField, "top:60.0px;left:220.0px;");
return mainLayout;
}
示例13: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("580px");
mainLayout.setHeight("280px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("580px");
setHeight("280px");
// clientField
clientField = new ComboBox();
clientField.setCaption("Cliente");
clientField.setImmediate(false);
clientField.setWidth("461px");
clientField.setHeight("-1px");
mainLayout.addComponent(clientField, "top:96.0px;left:19.0px;");
// codeField
codeField = new TextField();
codeField.setCaption("Código");
codeField.setImmediate(false);
codeField.setWidth("120px");
codeField.setHeight("-1px");
mainLayout.addComponent(codeField, "top:16.0px;left:20.0px;");
// observationField
observationField = new TextField();
observationField.setCaption("Observaciones");
observationField.setImmediate(false);
observationField.setWidth("540px");
observationField.setHeight("119px");
mainLayout.addComponent(observationField, "top:141.0px;left:20.0px;");
// offerRequestDateField
offerRequestDateField = new DateField();
offerRequestDateField.setCaption("Fecha Petición Oferta");
offerRequestDateField.setImmediate(false);
offerRequestDateField.setWidth("100.0%");
offerRequestDateField.setHeight("23px");
offerRequestDateField.setInvalidAllowed(false);
mainLayout.addComponent(offerRequestDateField,
"top:19.0px;right:19.0px;left:421.0px;");
// offerRequestStatusField
offerRequestStatusField = new ComboBox();
offerRequestStatusField.setCaption("Estado");
offerRequestStatusField.setImmediate(false);
offerRequestStatusField.setWidth("220px");
offerRequestStatusField.setHeight("-1px");
mainLayout.addComponent(offerRequestStatusField,
"top:58.0px;left:340.0px;");
// offerRequestTypeField
offerRequestTypeField = new ComboBox();
offerRequestTypeField.setCaption("Tipo");
offerRequestTypeField.setImmediate(false);
offerRequestTypeField.setWidth("300px");
offerRequestTypeField.setHeight("-1px");
mainLayout.addComponent(offerRequestTypeField,
"top:58.0px;left:20.0px;");
// hlSearchButtons
hlSearchButtons = buildHlSearchButtons();
mainLayout.addComponent(hlSearchButtons, "top:96.0px;left:484.0px;");
return mainLayout;
}
示例14: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("580px");
mainLayout.setHeight("280px");
mainLayout.setMargin(true);
// top-level component properties
setWidth("580px");
setHeight("280px");
// activeField
activeField = new CheckBox();
activeField.setCaption("Activo");
activeField.setImmediate(false);
activeField.setWidth("-1px");
activeField.setHeight("-1px");
activeField.setRequired(true);
mainLayout.addComponent(activeField, "top:14.0px;left:507.0px;");
// commentField
commentField = new TextField();
commentField.setCaption("Comentario");
commentField.setImmediate(false);
commentField.setWidth("540px");
commentField.setHeight("160px");
mainLayout.addComponent(commentField, "top:100.0px;left:20.0px;");
// codeField
codeField = new TextField();
codeField.setCaption("Código");
codeField.setImmediate(false);
codeField.setWidth("160px");
codeField.setHeight("-1px");
codeField.setRequired(true);
mainLayout.addComponent(codeField, "top:17.0px;left:20.0px;");
// descriptionField
descriptionField = new TextField();
descriptionField.setCaption("Descripción");
descriptionField.setImmediate(false);
descriptionField.setWidth("541px");
descriptionField.setHeight("-1px");
descriptionField.setRequired(true);
mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");
return mainLayout;
}