当前位置: 首页>>代码示例>>Java>>正文


Java AbsoluteLayout类代码示例

本文整理汇总了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);
    }
}
 
开发者ID:hybridbpm,项目名称:hybridbpm,代码行数:26,代码来源:ProcessModelLayout.java

示例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;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:20,代码来源:TransactionLogView.java

示例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;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:19,代码来源:OpenTransactionLogFileDialog.java

示例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;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:20,代码来源:MainLayout.java

示例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;
}
 
开发者ID:alenca,项目名称:zklogtool,代码行数:20,代码来源:SnapshotView.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:21,代码来源:LoginViewForm.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:20,代码来源:PasswordChangeViewForm.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:20,代码来源:ProfileSettingsViewForm.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:20,代码来源:LogoutViewForm.java

示例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;" );
    }
 
开发者ID:apache,项目名称:usergrid,代码行数:25,代码来源:UserListWindow.java

示例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;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:27,代码来源:ListadoEvaluaciones.java

示例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;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:23,代码来源:PanelOpciones.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:34,代码来源:ProductUnitViewForm.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:34,代码来源:OfferStatusViewForm.java

示例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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:34,代码来源:OrganizationTypeViewForm.java


注:本文中的com.vaadin.ui.AbsoluteLayout类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。