本文整理汇总了Java中com.vaadin.ui.AbsoluteLayout类的典型用法代码示例。如果您正苦于以下问题:Java AbsoluteLayout类的具体用法?Java AbsoluteLayout怎么用?Java AbsoluteLayout使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AbsoluteLayout类属于com.vaadin.ui包,在下文中一共展示了AbsoluteLayout类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: drop
import com.vaadin.ui.AbsoluteLayout; //导入依赖的package包/类
@Override
public void drop(DragAndDropEvent event) {
WrapperTransferable transfrable = (WrapperTransferable) event.getTransferable();
WrapperTargetDetails details = (WrapperTargetDetails) event.getTargetDetails();
System.out.println("transfrable " + transfrable.getClass().getCanonicalName());
System.out.println("transfrable.getDraggedComponent() " + transfrable.getDraggedComponent().getClass().getCanonicalName());
if (transfrable.getDraggedComponent() instanceof Button) {
// Calculate the drag coordinate difference
int xChange = details.getMouseEvent().getClientX() - transfrable.getMouseDownEvent().getClientX();
int yChange = details.getMouseEvent().getClientY() - transfrable.getMouseDownEvent().getClientY();
// Move the component in the absolute layout
AbsoluteLayout.ComponentPosition componentPosition = processModelLayout.getPosition(transfrable.getSourceComponent());
componentPosition.setLeftValue(componentPosition.getLeftValue() + xChange);
componentPosition.setTopValue(componentPosition.getTopValue() + yChange);
ElementModelLayout elementModelLayout = (ElementModelLayout) ((Button) transfrable.getDraggedComponent()).getParent();
TaskModel elementModel = elementModelLayout.getTaskModel();
elementModel.setX(componentPosition.getLeftValue());
elementModel.setY(componentPosition.getTopValue());
processModel.getTaskModels().put(elementModel.getId(), elementModel);
transitionManager.setValue(processModel.getTaskModels(), processModel.getTransitionModels());
setTaskActive(elementModel);
}
}
示例2: buildMainLayout
import com.vaadin.ui.AbsoluteLayout; //导入依赖的package包/类
@AutoGenerated
private AbsoluteLayout buildMainLayout() {
// common part: create layout
mainLayout = new AbsoluteLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// horizontalSplitPanel_2
horizontalSplitPanel_2 = buildHorizontalSplitPanel_2();
mainLayout.addComponent(horizontalSplitPanel_2,
"top:0.0px;right:1.0px;bottom:3.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("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// verticalLayout_1
verticalLayout_1 = buildVerticalLayout_1();
mainLayout.addComponent(verticalLayout_1, "top:0.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("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// verticalLayout_4
verticalLayout_4 = buildVerticalLayout_4();
mainLayout.addComponent(verticalLayout_4,
"top:0.0px;right:0.0px;bottom:6.0px;left:0.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("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// horizontalSplitPanel_1
horizontalSplitPanel_1 = buildHorizontalSplitPanel_1();
mainLayout.addComponent(horizontalSplitPanel_1,
"top:0.0px;right:0.0px;bottom:8.0px;left:0.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("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;
}
示例7: 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;
}
示例8: 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("280px");
mainLayout.setMargin(false);
// top-level component properties
setWidth("300px");
setHeight("280px");
// profileLayout
profileLayout = buildVerticalProfileLayout();
mainLayout.addComponent(profileLayout, "top:0.0px;left:0.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");
// verticalLayout_1
profileLayout = buildProfileLayout();
mainLayout.addComponent(profileLayout, "top:0.0px;left:0.0px;");
return mainLayout;
}
示例10: addList
import com.vaadin.ui.AbsoluteLayout; //导入依赖的package包/类
private void addList( AbsoluteLayout mainLayout ) {
ListSelect list = new ListSelect();
list.setWidth( "100%" );
list.setHeight( "420px" );
list.setNullSelectionAllowed( false );
list.setImmediate( true );
list.addValueChangeListener( new Property.ValueChangeListener() {
@Override
public void valueChange( Property.ValueChangeEvent event ) {
Object value = event.getProperty().getValue();
if ( value != null ) {
close();
selectedUser = ( String ) value;
showUser( ( String ) value );
}
}
});
loadData( list );
mainLayout.addComponent( list, "left: 0px; top: 0px;" );
}
示例11: 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("100%");
// top-level component properties
setWidth("300px");
setHeight("100.0%");
// tablaEvaluaciones
tablaEvaluaciones = new Table();
tablaEvaluaciones.setImmediate(false);
tablaEvaluaciones.setWidth("300px");
tablaEvaluaciones.setHeight("100.0%");
mainLayout.addComponent(tablaEvaluaciones,
"top:48.0px;bottom:20.0px;left:0.0px;");
// panelTitulo
panelTitulo = buildPanelTitulo();
mainLayout.addComponent(panelTitulo, "top:20.0px;left:0.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("100%");
mainLayout.setHeight("100%");
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// tabSheetOpciones
tabSheetOpciones = new TabSheet();
tabSheetOpciones.setImmediate(false);
tabSheetOpciones.setWidth("100.0%");
tabSheetOpciones.setHeight("100.0%");
mainLayout.addComponent(tabSheetOpciones,
"top:20.0px;bottom:20.0px;left:0.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("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("120px");
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;
}
示例14: 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;
}
示例15: 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:57.0px;left:20.0px;");
return mainLayout;
}