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


Java HorizontalSplitPanel.setSizeFull方法代码示例

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


在下文中一共展示了HorizontalSplitPanel.setSizeFull方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createContent

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@Override
protected Component createContent() {

    VerticalLayout layout = new VerticalLayout();

    layout.addComponent(spellSound);

    title = new Label();
    classe = new LabelField<>("Classe : ");
    classLevel = new LabelField<>("Niveau de classe : ");
    layout.addComponents(title);

    tabs = new TabSheet();

    panel = new HorizontalSplitPanel();
    panel.setSizeFull();
    panel.setCaption(Messages.getInstance().getMessage("spellStep.spell.label"));
    panel.setFirstComponent(tabs);
    layout.addComponent(panel);

    return layout;
}
 
开发者ID:viydaag,项目名称:dungeonstory-java,代码行数:23,代码来源:SpellChoiceForm.java

示例2: showView

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
/**
 * Diese Methode setzt die obere und die zwei unteren Views in der Prozessansicht.
 * 
 * @author: Mirko Göpfrich
 */

@Override
public void showView(View topView, View bottomLeftView, View bottomRigthView) {
	verticalSplitPanel.setFirstComponent((Component) topView);
	
	//Teilt das Panel horizontal un zwei gleiche Bereiche auf und ertstellt eine vertiakel Trennlinie (nicht verstellbar.)
	horizontalSplitPanel = new HorizontalSplitPanel();
	horizontalSplitPanel.setSizeFull();
	horizontalSplitPanel.setSplitPosition(50, UNITS_PERCENTAGE);
	horizontalSplitPanel.setLocked(true);
	horizontalSplitPanel.setStyleName("small");

	horizontalSplitPanel.setFirstComponent((Component) bottomLeftView);
	horizontalSplitPanel.setSecondComponent((Component) bottomRigthView);
	
	//fügt dem unteren vertikalen Panel ein horizontales SplitPanel hinzu.
	verticalSplitPanel.setSecondComponent(horizontalSplitPanel);
	logger.debug("Horizontales SplitPanel für Prozessschritte und Infos erstellt und an das untere vertikale Panel übergeben");

}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:26,代码来源:ProcessViewImpl.java

示例3: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@PostConstruct
protected void init() {
    setSizeFull();

    tabbedPanel = new TabbedPanel();

    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);

    deployNavigator = new DeployNavigator(context, tabbedPanel);

    leftSplit.setFirstComponent(deployNavigator);
    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);

    addComponent(leftSplit);

}
 
开发者ID:JumpMind,项目名称:metl,代码行数:22,代码来源:DeployView.java

示例4: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@PostConstruct
protected void init() {
    setSizeFull();

    tabbedPanel = new TabbedPanel();

    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);

    projectNavigator = new DesignNavigator(context, tabbedPanel);

    leftSplit.setFirstComponent(projectNavigator);
    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);

    addComponent(leftSplit);
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:21,代码来源:DesignView.java

示例5: createMainComponent

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private void createMainComponent() {
	VerticalLayout main = new VerticalLayout();
	main.setMargin(false);
	main.setSizeFull();
	main.addComponent(createToolbar());

	mainSplitPanel = new HorizontalSplitPanel();
	mainSplitPanel.setMargin(false);
	mainSplitPanel.setMaxSplitPosition(80f, HorizontalSplitPanel.UNITS_PERCENTAGE);
	mainSplitPanel.setMinSplitPosition(20f, HorizontalSplitPanel.UNITS_PERCENTAGE);
	mainSplitPanel.setSizeFull();
	mainSplitPanel.setSplitPosition(30f, HorizontalSplitPanel.UNITS_PERCENTAGE);

	taskTable = createTable();
	mainSplitPanel.setFirstComponent(taskTable);

	displayEmptyTask();

	main.addComponent(mainSplitPanel);
	main.setExpandRatio(mainSplitPanel, 1.0f);
	mainComponent = main;
}
 
开发者ID:frincon,项目名称:openeos,代码行数:23,代码来源:TasksWindow.java

示例6: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@Override
protected void init(VaadinRequest request) {

	setPollInterval(1000);
	hl = new HorizontalSplitPanel();
	hl.setSizeFull();
	setContent(hl);

	buttonsOnTheLeft = new VerticalLayout();
	buttonsOnTheLeft.setSizeUndefined();

	hl.setFirstComponent(buttonsOnTheLeft);
	hl.setSplitPosition(25, Unit.PERCENTAGE);

	ServiceTracker<FragmentFactory, FragmentFactory> tracker = new ServiceTracker<FragmentFactory, FragmentFactory>(
			VaadinActivator.context, FragmentFactory.class, this);
	tracker.open();
	
	addDetachListener(new DetachListener() {
		
		@Override
		public void detach(DetachEvent event) {
			tracker.close();
		}
	});
}
 
开发者ID:vaadin,项目名称:osgi-bridge-and-fragmentedui-demo,代码行数:27,代码来源:VaadinOSGiUI.java

示例7: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@Override
public void init() {
    if (eventProxy == null)
        throw new RuntimeException("eventProxy cannot be null.");
    if (eventConfDao == null)
        throw new RuntimeException("eventConfDao cannot be null.");
    if (dataCollectionDao == null)
        throw new RuntimeException("dataCollectionDao cannot be null.");

    setTheme(Runo.THEME_NAME);

    final HorizontalSplitPanel mainPanel = new HorizontalSplitPanel();
    final MibConsolePanel mibConsole = new MibConsolePanel();
    final MibCompilerPanel mibPanel = new MibCompilerPanel(dataCollectionDao, eventConfDao, eventProxy, mibParser, mibConsole);

    mainPanel.setSizeFull();
    mainPanel.setSplitPosition(25, Sizeable.UNITS_PERCENTAGE);
    mainPanel.addComponent(mibPanel);
    mainPanel.addComponent(mibConsole);

    final Window mainWindow = new Window("MIB Compiler Application", mainPanel);
    setMainWindow(mainWindow);
}
 
开发者ID:qoswork,项目名称:opennmszh,代码行数:24,代码来源:MibCompilerApplication.java

示例8: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@Override
protected void init(VaadinRequest request) {
	treeToolEditor = new TreeToolEditor(this);
	toolEditor = new ToolEditor(this);
	textEditor = new TextEditor(this);
	final Panel vLayout = new Panel();
	vSplitPanel = new VerticalSplitPanel();
	vSplitPanel.setSplitPosition(50, Unit.PERCENTAGE);
	vSplitPanel.setImmediate(true);
	vSplitPanel.setLocked(false);
	vSplitPanel.setWidth("100%");
	vLayout.setContent(vSplitPanel);
    setContent(vSplitPanel);
    VerticalLayout vvLayout = new VerticalLayout();
    vvLayout.setSizeFull();
    Label title = new Label("<h2><b>&nbsp;Tool Editor</b></h2>", ContentMode.HTML);

    vvLayout.addComponent(title);
    vvLayout.setComponentAlignment(title, Alignment.TOP_LEFT);
    HorizontalSplitPanel hSplitpPanel = new HorizontalSplitPanel();
    hSplitpPanel.setSizeFull();
    vvLayout.addComponent(hSplitpPanel);

    HorizontalLayout buttonPanel = getButtonPanel();
    vvLayout.addComponent(buttonPanel);
    vvLayout.setComponentAlignment(buttonPanel, Alignment.MIDDLE_CENTER);

    vvLayout.setExpandRatio(hSplitpPanel, 5);
    vvLayout.setComponentAlignment(hSplitpPanel, Alignment.TOP_LEFT);
    vvLayout.setMargin(false);
    vvLayout.setSpacing(false);
    hSplitpPanel.setFirstComponent(treeToolEditor);
    hSplitpPanel.setSecondComponent(toolEditor);
    vSplitPanel.setFirstComponent(vvLayout);
    vSplitPanel.setSecondComponent(textEditor);
    hSplitpPanel.setStyleName("topborder");
}
 
开发者ID:chipster,项目名称:chipster,代码行数:38,代码来源:ToolEditorUI.java

示例9: generateUi

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
/**
 * Erstelle das GUI zum Prozessschritt "Perioden"
 * 
 * @author Daniel Dengler
 */
private void generateUi() {
	setSizeFull();
	setSplitPosition(60, UNITS_PERCENTAGE);
	setSizeFull();
	setLocked(true);
	setStyleName("small");
	setMargin(true);
	horizontalPanel = new HorizontalSplitPanel();
	horizontalPanel.setSplitPosition(35, UNITS_PERCENTAGE);
	horizontalPanel.setSizeFull();
	horizontalPanel.setLocked(true);
	horizontalPanel.setStyleName("small");
	setFirstComponent(horizontalPanel);
	
	VerticalLayout infoBox = new VerticalLayout();
	infoBox.setMargin(true);
	Label infoText1 = new Label ("<h3>Eingabe der Perioden</h3>");
	infoText1.setContentMode(Label.CONTENT_XHTML);
	Label infoText2 = new Label("Der Zeitstrahl ist gemäß Ihren getätigten Eingaben vorgegeben. Mit einem Klick auf den „Jahresbutton“ können Sie die entsprechenden Werte eintragen.");
	Label infoText3 = new Label  ("<h3>Direkte Eingabe der Cashflows:</h3>");
	infoText3.setContentMode(Label.CONTENT_XHTML);
	Label infoText4 = new Label ("Wählen Sie nun bitte die links angezeigten Perioden aus und geben Sie für jede Periode sowohl den Cashflow als auch das Fremdkapital der jeweiligen Periode an.");
	Label infoText5 = new Label  ("<h3>Gesamtkostenverfahren:</h3>");
	infoText5.setContentMode(Label.CONTENT_XHTML);
	Label infoText6 = new Label ("Wählen Sie nun bitte die links angezeigten Perioden aus und geben Sie für jede Periode die abgefragten Daten zur Berechnung des Cashflows an. Die benötigten Datensätze entnehmen Sie bitte Ihrer Gewinn- und Verlustrechnung, erstellt nach dem Gesamtkostenverfahren.");
	Label infoText7 = new Label  ("<h3>Umsatzkostenverfahren:</h3>");
	infoText7.setContentMode(Label.CONTENT_XHTML);
	Label infoText8 = new Label ("Wählen Sie nun bitte die links angezeigten Perioden aus und geben Sie für jede Periode die abgefragten Daten zur Berechnung des Cashflows an. Die benötigten Datensätze entnehmen Sie bitte Ihrer Gewinn- und Verlustrechnung, erstellt nach dem Umsatzkostenverfahren.");
	
	infoBox.addComponent(infoText1);
	infoBox.addComponent(infoText2);
	infoBox.addComponent(infoText3);
	infoBox.addComponent(infoText4);
	infoBox.addComponent(infoText5);
	infoBox.addComponent(infoText6);
	infoBox.addComponent(infoText7);
	infoBox.addComponent(infoText8);
	
	
	setSecondComponent(infoBox);

	
}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:49,代码来源:PeriodViewImpl.java

示例10: init

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@PostConstruct
protected void init() {
    setSizeFull();

    tabbedPanel = new TabbedPanel();

    HorizontalSplitPanel leftSplit = new HorizontalSplitPanel();
    leftSplit.setSizeFull();
    leftSplit.setSplitPosition(UIConstants.DEFAULT_LEFT_SPLIT, Unit.PIXELS);

    VerticalLayout container = new VerticalLayout();
    container.setSizeFull();
    container.addComponent(tabbedPanel);
    leftSplit.setSecondComponent(container);

    table = new TreeTable();
    table.addStyleName(ValoTheme.TREETABLE_NO_HORIZONTAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_NO_STRIPES);
    table.addStyleName(ValoTheme.TREETABLE_NO_VERTICAL_LINES);
    table.addStyleName(ValoTheme.TREETABLE_BORDERLESS);
    table.setColumnHeaderMode(ColumnHeaderMode.HIDDEN);
    table.setSizeFull();
    table.setCacheRate(100);
    table.setPageLength(100);
    table.setImmediate(true);
    table.setSelectable(true);
    table.addItemClickListener(this);
    table.addStyleName("noselect");
    table.addContainerProperty("id", String.class, null);
    table.setVisibleColumns(new Object[] { "id" });
    table.setColumnExpandRatio("id", 1);
    addItem("Users", Icons.USER);
    addItem("Groups", Icons.GROUP);
    addItem("REST", Icons.REST);
    addItem("General Settings", Icons.SETTINGS);
    addItem("Plugin Repositories", Icons.DATABASE);
    addItem("Plugins", Icons.COMPONENT);
    addItem("Mail Server", Icons.EMAIL);
    addItem("Notifications", Icons.NOTIFICATION);
    addItem("Active Users", FontAwesome.USERS);
    addItem("Audit Events", FontAwesome.BARS);
    addItem("Logging", Icons.LOGGING);        
    addItem("About", FontAwesome.QUESTION);
    
    VerticalLayout navigator = new VerticalLayout();
    navigator.addStyleName(ValoTheme.MENU_ROOT);
    navigator.setSizeFull();
    leftSplit.setFirstComponent(navigator);
            
    MenuBar leftMenuBar = new MenuBar();
    leftMenuBar.addStyleName(ValoTheme.MENUBAR_BORDERLESS);
    leftMenuBar.setWidth(100, Unit.PERCENTAGE);
    navigator.addComponent(leftMenuBar);

    navigator.addComponent(table);
    navigator.setExpandRatio(table, 1);
    
    addComponent(leftSplit);
    
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:61,代码来源:AdminView.java

示例11: EditFlowPanel

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
public EditFlowPanel(ApplicationContext context, String flowId, DesignNavigator designNavigator, TabbedPanel tabs) {
    this.configurationService = context.getConfigurationService();
    this.flow = configurationService.findFlow(flowId);
    this.readOnly = context.isReadOnly(configurationService.findProjectVersion(flow.getProjectVersionId()), Privilege.DESIGN);
    this.context = context;
    this.tabs = tabs;
    this.designNavigator = designNavigator;

    this.propertySheet = new PropertySheet(context, tabs, readOnly);
    this.propertySheet.setListener((components) -> {
        List<FlowStep> steps = new ArrayList<FlowStep>();
        for (Component c : components) {
            steps.add(EditFlowPanel.this.flow.findFlowStepWithComponentId(c.getId()));
        }
        refreshStepOnDiagram(steps);
    });
    propertySheet.setCaption("Property Sheet");

    componentPalette = new EditFlowPalette(this, context, flow.getProjectVersionId());

    addComponent(componentPalette);

    
    rightLayout = new VerticalLayout();
    rightLayout.setSizeFull();

    rightLayout.addComponent(buildButtonBar());

    // Create two different layouts for the user to toggle between.
    vSplit = new VerticalSplitPanel();
    vSplit.setSizeFull();
    vSplit.setSplitPosition(MAX_PANEL_POSITION, Unit.PERCENTAGE);
    hSplit = new HorizontalSplitPanel();
    hSplit.setSizeFull();
    hSplit.setSplitPosition(MAX_PANEL_POSITION, Unit.PERCENTAGE);
     
    diagramLayout = new VerticalLayout();
    diagramLayout.setWidth(10000, Unit.PIXELS);
    diagramLayout.setHeight(10000, Unit.PIXELS);

    DragAndDropWrapper wrapper = new DragAndDropWrapper(diagramLayout);
    wrapper.setSizeUndefined();
    wrapper.setDropHandler(new DropHandler());
    flowPanel = new Panel();
    flowPanel.setSizeFull();
    flowPanel.addStyleName(ValoTheme.PANEL_WELL);
    flowPanel.setContent(wrapper);

    if (isVerticalView()) {
        vSplit.addComponent(flowPanel);
        vSplit.addComponent(propertySheet);
        rightLayout.addComponent(vSplit);
        rightLayout.setExpandRatio(vSplit, 1);
    } else {
        hSplit.addComponent(flowPanel);
        hSplit.addComponent(propertySheet);
        rightLayout.addComponent(hSplit);
        rightLayout.setExpandRatio(hSplit, 1);
    }

    addComponent(rightLayout);
    setExpandRatio(rightLayout, 1);

    redrawFlow();
}
 
开发者ID:JumpMind,项目名称:metl,代码行数:66,代码来源:EditFlowPanel.java

示例12: buildUI

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
protected void buildUI() {

        ButtonBar buttonBar = new ButtonBar();
        addComponent(buttonBar);

        if (!readOnly) {
          Button testButton = buttonBar.addButton("Test", FontAwesome.FILE_CODE_O);
          testButton.addClickListener(new TestClickListener());
        }

        filterField = buttonBar.addFilter();
        filterField.addTextChangeListener(this);
        
        HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
        splitPanel.setSizeFull();
        splitPanel.setSplitPosition(50, Unit.PERCENTAGE);

        VerticalLayout leftLayout = new VerticalLayout();
        editor = new AceEditor();
        editor.setMode(AceMode.xml);
        editor.setSizeFull();
        editor.setHighlightActiveLine(true);
        editor.setShowPrintMargin(false);
        editor.addTextChangeListener(new StylesheetChangeListener());
        editor.setValue(component.findSetting(XsltProcessor.XSLT_PROCESSOR_STYLESHEET).getValue());
        leftLayout.addComponent(new Label("XSLT Stylesheet"));
        leftLayout.addComponent(editor);
        leftLayout.setExpandRatio(editor, 1.0f);
        leftLayout.setSizeFull();
        splitPanel.setFirstComponent(leftLayout);
        
        VerticalLayout rightLayout = new VerticalLayout();
        rightLayout.setSizeFull();
        rightLayout.addComponent(new Label("Sample Input XML"));
        textArea = new TextArea();
        textArea.setEnabled(false);
        textArea.setSizeFull();
        textArea.setValue(getSampleXml());
        rightLayout.addComponent(textArea);
        rightLayout.setExpandRatio(textArea, 1.0f);
        splitPanel.setSecondComponent(rightLayout);

        addComponent(splitPanel);
        setExpandRatio(splitPanel, 1.0f);
        
        textArea.setReadOnly(readOnly);
        editor.setReadOnly(readOnly);

    }
 
开发者ID:JumpMind,项目名称:metl,代码行数:50,代码来源:EditXsltPanel.java

示例13: attach

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
@Override
public void attach() {
	super.attach();

	// Setup the map in the findLayers pane
	splDivider = new HorizontalSplitPanel();
	mainLayout = new VerticalLayout();
	left = new VerticalLayout();
	right = new VerticalLayout();

	exportProps = new ExportProps();
	mapModel = new MapModel();

	// Views
	findLayers = new FindLayersViewComponent();
	modifyLayers = new SetupMapViewComponent();
	exportOptions = new ExportOptionsViewComponent(exportProps);

	mapToolbar = new MapToolbarViewComponent();
	mapComponent = new OpenLayersMapViewComponent();

	// Models
	setupMapModel = new SetupMapModel(this);

	// Presenters
	findLayersPresenter = new FindLayersPresenter(findLayers, mapComponent, mapModel);
	setupMapPresenter = new SetupMapPresenter(getSetupMapModel(), modifyLayers, mapComponent, mapModel);
	exportOptionsPresenter = new ExportOptionsPresenter(exportOptions);

	exportOptions.addListener(setupMapPresenter);

	refresher = new Refresher();
	addComponent(refresher);

	setCaption("ExpressZip");
	setSizeFull();
	splDivider.setSplitPosition(351, UNITS_PIXELS);

	mainLayout.setSizeFull();
	mainLayout.addComponent(mapToolbar);
	mainLayout.addComponent(splDivider);
	mainLayout.setExpandRatio(splDivider, 1f);

	splDivider.setSizeFull();
	splDivider.addComponent(left);
	splDivider.addComponent(right);

	setContent(mainLayout);

	right.setSpacing(true);

	right.setSizeFull();
	left.setSizeFull();

	left.addComponent(findLayers);
	setTheme("ExpressZip");
	// http://docs.geotools.org/latest/userguide/library/referencing/order.html
	System.setProperty("org.geotools.referencing.forceXY", "true");

	right.addComponent(mapComponent);

	right.setExpandRatio(mapComponent, 1f);

	try {
		findLayersPresenter.paneEntered();
	} catch (Exception e) {
		logger.error("Failed setting up map", e);
		showNotification("Setting Up Map Failed", "Check logs on server", Notification.TYPE_ERROR_MESSAGE);
	}
}
 
开发者ID:lizardtechblog,项目名称:ExpressZip,代码行数:71,代码来源:ExpressZipWindow.java

示例14: initLayout

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private void initLayout() {
    HorizontalSplitPanel splitPanel = new HorizontalSplitPanel();
    VerticalLayout rulesOverview = new VerticalLayout();
    splitPanel.addComponent(rulesOverview);
    splitPanel.addComponent(ruleEditor);
    rulesOverview.addComponent(rulesTable);
    rulesOverview.addComponent(addButton);
    rulesOverview.setSizeFull();
    rulesOverview.setExpandRatio(rulesTable, 1);
    rulesTable.setSizeFull();
    addButton.setWidth("100%");
    ruleEditor.setMargin(true);
    ruleEditor.setVisible(false);
    splitPanel.setHeight("100%");
    splitPanel.setMargin(true);
    splitPanel.setWidth("100%");
    splitPanel.setSizeFull();

    logPathField.addValidator(new AbstractStringValidator(null) {
        @Override
        protected boolean isValidString(String value) {
            try {
                if (value == null) {
                    setErrorMessage("Invalid path: can not be null");
                    return false;
                }
                File file = new File(value);
                if (!file.exists()) {
                    setErrorMessage("Invalid path");
                    return false;
                }
                File parent = new File(file.getParent());
                return parent.canWrite() || file.canWrite();
            } catch (Exception ex) {
                setErrorMessage("Invalid path: " + ex.getMessage());
                return false;
            }
        }
    });
    logPathField.setImmediate(true);
    logPathField.setWidth("100%");
    logPathField.setValue(config.getLogFilePath());
    VerticalLayout confLayout = new VerticalLayout();
    confLayout.setMargin(true);
    confLayout.addComponent(logPathField);
    confLayout.addComponent(splitPanel);
    addComponent(confLayout);
}
 
开发者ID:nvdk,项目名称:ods-lodms-plugins,代码行数:49,代码来源:OdsValidatorDialog.java

示例15: createLayout

import com.vaadin.ui.HorizontalSplitPanel; //导入方法依赖的package包/类
private void createLayout() {
	setSizeFull();

	buildComponent = new BuildComponent(builder, user, settings);

	initMenuBar();

	layout.addComponent(menu);
	menu.setWidth("100%");

	split = new HorizontalSplitPanel();
	split.setSizeFull();
	layout.addComponent(split);
	layout.setExpandRatio(split, 1);

	sideBar = new VerticalLayout();
	sideBar.setMargin(true);
	split.setFirstComponent(sideBar);

	sideBar.addComponent(componentTree);
	sideBar.addComponent(buildComponent);
	//adds delpoy component to view
	if (settings.paasDeployTurnedOn){
		sideBar.addComponent(new DeployComponent(project, settings,user));
	}
	
	sideBar.addComponent(new JettyComponent(project, user));

	ChatBox cb = new ChatBox(project.getChat());
	cb.setUser(new ChatUser(user.getUserId(), user.getName(), "user1"));
	cb.setWidth("100%");
	cb.setShowSendButton(false);
	sideBar.addComponent(new Panel("Chat", cb));

	split.setSplitPosition(20.0f);

	setActiveFile((ProjectFile) project.getProjectItem("App.java"));

	//adds new menuitem (that does not do anything)
	/*if (settings.easiCloudsFeaturesTurnedOn){
		MenuItem root = this.menu.addItem("Deploy to...",null);
		MenuItem item = root.addItem("Jetty", null);
		item.setCheckable(true);
		item.setChecked(true);
		item = root.addItem("Gae", null);
		item.setCheckable(true);
		item.setChecked(false);
	}*/
	
}
 
开发者ID:ahn,项目名称:mideaas,代码行数:51,代码来源:MideaasEditor.java


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