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


Java AbsoluteLayout.addComponent方法代码示例

本文整理汇总了Java中com.vaadin.ui.AbsoluteLayout.addComponent方法的典型用法代码示例。如果您正苦于以下问题:Java AbsoluteLayout.addComponent方法的具体用法?Java AbsoluteLayout.addComponent怎么用?Java AbsoluteLayout.addComponent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.AbsoluteLayout的用法示例。


在下文中一共展示了AbsoluteLayout.addComponent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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("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

示例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%");

    // verticalLayout_1
    verticalLayout_1 = buildVerticalLayout_1();
    mainLayout.addComponent(verticalLayout_1, "top:0.0px;left:0.0px;");

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

示例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%");

    // 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

示例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%");
	
	// 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

示例6: 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

示例7: 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,代码来源:InvoiceLineStatusViewForm.java

示例8: addCreateButton

import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
private void addCreateButton(AbsoluteLayout mainLayout) {

        Button createButton = new Button( "Create" );

        createButton.addClickListener( new Button.ClickListener() {
            public void buttonClick( Button.ClickEvent event ) {
                close();
                setSelectedUser( null );
                showUser( null );
            }
        } );

        mainLayout.addComponent( createButton, "left: 10px; top: 425px;" );
    }
 
开发者ID:apache,项目名称:usergrid,代码行数:15,代码来源:UserListWindow.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("100%");
	mainLayout.setHeight("100%");
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("100.0%");
	
	// tablaCalificacionesEvaluacion
	tablaCalificacionesEvaluacion = new Table();
	tablaCalificacionesEvaluacion.setImmediate(false);
	tablaCalificacionesEvaluacion.setWidth("100.0%");
	tablaCalificacionesEvaluacion.setHeight("100.0%");
	mainLayout.addComponent(tablaCalificacionesEvaluacion,
			"top:60.0px;right:10.0px;bottom:10.0px;left:10.0px;");
	
	// buttonGuardar
	buttonGuardar = new Button();
	buttonGuardar.setCaption("Guardar");
	buttonGuardar.setImmediate(false);
	buttonGuardar.setWidth("-1px");
	buttonGuardar.setHeight("-1px");
	mainLayout.addComponent(buttonGuardar, "top:20.0px;left:10.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:31,代码来源:ListadoCalificacionesEvaluacion.java

示例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");
	
	// 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

示例11: 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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:33,代码来源:ErrorViewForm.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("380px");
	mainLayout.setHeight("260px");
	
	// top-level component properties
	setWidth("380px");
	setHeight("260px");
	
	// txtNombre
	txtNombre = new TextField();
	txtNombre.setCaption("Nombre");
	txtNombre.setImmediate(false);
	txtNombre.setWidth("240px");
	txtNombre.setHeight("-1px");
	mainLayout.addComponent(txtNombre, "top:40.0px;left:60.0px;");
	
	// btnGuardar
	btnGuardar = new Button();
	btnGuardar.setCaption("Guardar");
	btnGuardar.setImmediate(true);
	btnGuardar.setWidth("240px");
	btnGuardar.setHeight("-1px");
	mainLayout.addComponent(btnGuardar, "top:194.0px;left:60.0px;");
	
	// txtDesc
	txtDesc = new TextArea();
	txtDesc.setCaption("Descripción");
	txtDesc.setImmediate(false);
	txtDesc.setWidth("240px");
	txtDesc.setHeight("100px");
	mainLayout.addComponent(txtDesc, "top:80.0px;left:60.0px;");
	
	return mainLayout;
}
 
开发者ID:unicesi,项目名称:academ,代码行数:39,代码来源:PanelEditarPrograma.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("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;
}
 
开发者ID:thingtrack,项目名称:konekti,代码行数:35,代码来源:AlarmTypeViewForm.java

示例14: createWestLayout

import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
/**
    * Creates the west area layout including the
    * accordion and tree views.
    * 
    * @return
    */
   @SuppressWarnings("serial")
private Layout createWestLayout() {
       m_tree = createTree();
       
       
       final TextField filterField = new TextField("Filter");
       filterField.setTextChangeTimeout(200);
       
       
       final Button filterBtn = new Button("Filter");
       filterBtn.addListener(new ClickListener() {

           @Override
           public void buttonClick(ClickEvent event) {
           	GCFilterableContainer container = m_tree.getContainerDataSource();
               container.removeAllContainerFilters();
               
               String filterString = (String) filterField.getValue();
               if(!filterString.equals("") && filterBtn.getCaption().toLowerCase().equals("filter")) {
                   container.addContainerFilter(LABEL_PROPERTY, (String) filterField.getValue(), true, false);
                   filterBtn.setCaption("Clear");
               } else {
                   filterField.setValue("");
                   filterBtn.setCaption("Filter");
               }
               
           }
       });
       
       
       HorizontalLayout filterArea = new HorizontalLayout();
       filterArea.addComponent(filterField);
       filterArea.addComponent(filterBtn);
       filterArea.setComponentAlignment(filterBtn, Alignment.BOTTOM_CENTER);
       
       m_treeAccordion = new Accordion();
       m_treeAccordion.addTab(m_tree, m_tree.getTitle());
       m_treeAccordion.setWidth("100%");
       m_treeAccordion.setHeight("100%");
       
       AbsoluteLayout absLayout = new AbsoluteLayout();
       absLayout.setWidth("100%");
       absLayout.setHeight("100%");
       absLayout.addComponent(filterArea, "top: 25px; left: 15px;");
       absLayout.addComponent(m_treeAccordion, "top: 75px; left: 15px; right: 15px; bottom:25px;"); 
       
       return absLayout;
   }
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:55,代码来源:TopologyWidgetTestApplication.java

示例15: init

import com.vaadin.ui.AbsoluteLayout; //导入方法依赖的package包/类
@Override
public void init() {
    m_log.debug("initializing");

    setTheme("opennms");

    final MapWidgetComponent mapPanel = new MapWidgetComponent();
    mapPanel.setNodeDao(m_nodeDao);
    mapPanel.setAssetRecordDao(m_assetDao);
    mapPanel.setAlarmDao(m_alarmDao);
    mapPanel.setGeocoderService(m_geocoderService);
    mapPanel.setTransactionOperation(m_transaction);
    mapPanel.setSizeFull();

    m_rootLayout = new AbsoluteLayout();
    m_rootLayout.setSizeFull();

    m_window = new Window("OpenNMS Node Maps");
    m_window.setContent(m_rootLayout);
    m_window.addParameterHandler(new ParameterHandler() {
        @Override
        public void handleParameters(final Map<String, String[]> parameters) {
            if (parameters.containsKey("search")) {
                mapPanel.setSearchString(parameters.get("search")[0].toString());
                /*
                int nodeId = parseInt(parameters.get("nodeId")[0], 0);
                if (nodeId > 0) {
                    mapPanel.setSearchString("nodeId=" + nodeId);
                }
                */
            }
        }
    });
    setMainWindow(m_window);

    String mapLayerPosition = "top:0px; left:0px; right:0px; bottom:0px;";
    if (m_headerHtml != null) {
        final Panel header = new Panel("header");
        header.setCaption(null);
        header.setSizeUndefined();
        header.addStyleName("onmsheader");
        InputStream is = null;
        try {
            is = new ByteArrayInputStream(m_headerHtml.getBytes());
            final CustomLayout layout = new CustomLayout(is);
            header.setContent(layout);
            m_rootLayout.addComponent(header, "top: 0px; left: 0px; right:0px;");
            mapLayerPosition = "top:100px; left:0px; right:0px; bottom:0px;";
        } catch (final IOException e) {
            if (is != null) {
                try {
                    is.close();
                } catch (final IOException closeE) {
                    VConsole.log("failed to close HTML input stream");
                    VConsole.log(closeE);
                }
            }
            VConsole.log("failed to get header layout data");
            VConsole.log(e);
        }
    }
    m_rootLayout.addComponent(mapPanel, mapLayerPosition);

    final Refresher refresher = new Refresher();
    refresher.setRefreshInterval(REFRESH_INTERVAL);
    m_window.addComponent(refresher);
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:68,代码来源:NodeMapsApplication.java


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