List of usage examples for com.vaadin.ui GridLayout GridLayout
public GridLayout()
From source file:com.klwork.explorer.ui.task.HistoricTaskDetailPanel.java
License:Apache License
protected void initPeopleGrid() { peopleGrid = new GridLayout(); peopleGrid.setColumns(2);// w w w . j av a 2 s. c o m peopleGrid.setSpacing(true); peopleGrid.setMargin(new MarginInfo(true, false, false, false)); peopleGrid.setWidth(100, UNITS_PERCENTAGE); peopleLayout.addComponent(peopleGrid); }
From source file:com.klwork.explorer.ui.task.HistoricTaskDetailPanel.java
License:Apache License
protected void initSubTaskGrid() { subTaskGrid = new GridLayout(); subTaskGrid.setColumns(2); subTasksLayout.addComponent(subTaskGrid); }
From source file:com.klwork.explorer.ui.task.ProcessInstanceEventsPanel.java
License:Apache License
protected void initEventGrid() { eventGrid = new GridLayout(); eventGrid.setColumns(2);// w w w. j av a 2 s.com eventGrid.setSpacing(true); eventGrid.setMargin(new MarginInfo(true, false, false, false)); eventGrid.setWidth("100%"); eventGrid.setColumnExpandRatio(1, 1.0f); eventGrid.addStyleName(ExplorerLayout.STYLE_TASK_EVENT_GRID); pMainContent.addComponent(eventGrid); pMainContent.setExpandRatio(eventGrid, 1.0f); }
From source file:com.klwork.explorer.ui.task.SubTaskComponent.java
License:Apache License
protected void initSubTasksLayout() { subTaskLayout = new GridLayout(); subTaskLayout.setColumns(3);//from w w w . j a v a2 s. c o m subTaskLayout.addStyleName(ExplorerLayout.STYLE_TASK_SUBTASKS_LIST); subTaskLayout.setWidth(99, UNITS_PERCENTAGE); subTaskLayout.setColumnExpandRatio(2, 1.0f); subTaskLayout.setSpacing(true); layout.addComponent(subTaskLayout); }
From source file:com.klwork.explorer.ui.task.TaskInvolvedPeopleComponent.java
License:Apache License
protected void initPeopleGrid() { peopleGrid = new GridLayout(); peopleGrid.setColumns(2);/*from ww w . j av a2s. c o m*/ peopleGrid.setSpacing(true); peopleGrid.setMargin(new MarginInfo(true, false, false, false)); peopleGrid.setWidth(100, UNITS_PERCENTAGE); layout.addComponent(peopleGrid); populatePeopleGrid(); }
From source file:com.parship.roperty.ui.LoginUI.java
License:Apache License
@AutoGenerated private GridLayout buildLoginLayout() { // common part: create layout loginLayout = new GridLayout(); loginLayout.setImmediate(false);//www .j a va 2 s . c o m loginLayout.setWidth("-1px"); loginLayout.setHeight("100px"); loginLayout.setMargin(false); loginLayout.setSpacing(true); loginLayout.setColumns(2); loginLayout.setRows(2); // userTextField userTextField = new TextField(); userTextField.setCaption("Username"); userTextField.setImmediate(false); userTextField.setWidth("220px"); userTextField.setHeight("-1px"); userTextField.setTabIndex(1); userTextField.setRequired(true); loginLayout.addComponent(userTextField, 0, 0); loginLayout.setComponentAlignment(userTextField, new Alignment(33)); // passTextField passTextField = new PasswordField(); passTextField.setCaption("Password"); passTextField.setImmediate(false); passTextField.setWidth("220px"); passTextField.setHeight("-1px"); passTextField.setTabIndex(2); passTextField.setRequired(true); loginLayout.addComponent(passTextField, 1, 0); loginLayout.setComponentAlignment(passTextField, new Alignment(33)); // buttonLayout buttonLayout = buildButtonLayout(); loginLayout.addComponent(buttonLayout, 1, 1); return loginLayout; }
From source file:com.salsaw.msalsa.HomePageView.java
License:Apache License
@AutoGenerated private GridLayout buildMainLayout() { // common part: create layout mainLayout = new GridLayout(); mainLayout.setImmediate(false);/* w w w . j ava 2s .c o m*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); mainLayout.setMargin(false); mainLayout.setRows(4); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // title title = new Label(); title.setImmediate(false); title.setWidth("-1px"); title.setHeight("-1px"); title.setValue("M-SALSA"); mainLayout.addComponent(title, 0, 0); mainLayout.setComponentAlignment(title, new Alignment(48)); // uploadInput uploadInput = new Upload(); uploadInput.setCaption("Upload and process align input"); uploadInput.setImmediate(false); uploadInput.setWidth("-1px"); uploadInput.setHeight("-1px"); mainLayout.addComponent(uploadInput, 0, 1); mainLayout.setComponentAlignment(uploadInput, new Alignment(48)); return mainLayout; }
From source file:com.salsaw.msalsa.PhylogeneticTreeView.java
License:Apache License
private GridLayout initializeUiComponents() { mainLayout = new GridLayout(); mainLayout.setImmediate(false);/*from w w w .j av a2s . c om*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); mainLayout.setMargin(false); // title title = new Label(); title.setImmediate(false); title.setWidth("-1px"); title.setHeight("-1px"); title.setValue("M-SALSA"); mainLayout.addComponent(title); mainLayout.setComponentAlignment(title, Alignment.MIDDLE_CENTER); return mainLayout; }
From source file:com.vaushell.treetasker.application.content.layout.LoginLayout.java
License:Open Source License
@AutoGenerated private GridLayout buildVFormLayout() { // common part: create layout vFormLayout = new GridLayout(); vFormLayout.setImmediate(false);//from w w w . j ava2s .com vFormLayout.setWidth("100.0%"); vFormLayout.setHeight("100.0%"); vFormLayout.setMargin(true); vFormLayout.setSpacing(true); vFormLayout.setColumns(2); vFormLayout.setRows(4); // vLBLuserName vLBLuserName = new Label(); vLBLuserName.setImmediate(false); vLBLuserName.setWidth("-1px"); vLBLuserName.setHeight("-1px"); vLBLuserName.setValue("E-mail :"); vFormLayout.addComponent(vLBLuserName, 0, 0); vFormLayout.setComponentAlignment(vLBLuserName, new Alignment(33)); // vTFuserNameValue vTFuserNameValue = new TextField(); vTFuserNameValue.setImmediate(true); vTFuserNameValue.setWidth("80.0%"); vTFuserNameValue.setHeight("-1px"); vTFuserNameValue.setInputPrompt("E-mail"); vTFuserNameValue.setSecret(false); vFormLayout.addComponent(vTFuserNameValue, 1, 0); vFormLayout.setComponentAlignment(vTFuserNameValue, new Alignment(33)); // vLBLpassword vLBLpassword = new Label(); vLBLpassword.setImmediate(false); vLBLpassword.setWidth("-1px"); vLBLpassword.setHeight("-1px"); vLBLpassword.setValue("Mot de passe :"); vFormLayout.addComponent(vLBLpassword, 0, 1); // vTFpasswordValue vTFpasswordValue = new PasswordField(); vTFpasswordValue.setImmediate(true); vTFpasswordValue.setWidth("80.0%"); vTFpasswordValue.setHeight("-1px"); vTFpasswordValue.setInputPrompt("password"); vFormLayout.addComponent(vTFpasswordValue, 1, 1); vFormLayout.setComponentAlignment(vTFpasswordValue, new Alignment(33)); // vBTregister vBTregister = new Button(); vBTregister.setCaption("S'enregistrer"); vBTregister.setImmediate(true); vBTregister.setWidth("-1px"); vBTregister.setHeight("26px"); vFormLayout.addComponent(vBTregister, 1, 2); vFormLayout.setComponentAlignment(vBTregister, new Alignment(33)); // vBTlogin vBTlogin = new Button(); vBTlogin.setCaption("Se connecter"); vBTlogin.setImmediate(true); vBTlogin.setWidth("-1px"); vBTlogin.setHeight("-1px"); vFormLayout.addComponent(vBTlogin, 1, 3); vFormLayout.setComponentAlignment(vBTlogin, new Alignment(33)); return vFormLayout; }
From source file:com.vaushell.treetasker.application.content.layout.RegistrationLayout.java
License:Open Source License
@AutoGenerated private GridLayout buildMainLayout() { // common part: create layout mainLayout = new GridLayout(); mainLayout.setImmediate(false);/*from w w w. ja va 2 s . c om*/ mainLayout.setWidth("-1px"); mainLayout.setHeight("-1px"); mainLayout.setMargin(true); mainLayout.setSpacing(true); mainLayout.setColumns(2); mainLayout.setRows(5); // top-level component properties setWidth("-1px"); setHeight("-1px"); // vLBLregistration vLBLregistration = new Label(); vLBLregistration.setImmediate(false); vLBLregistration.setWidth("-1px"); vLBLregistration.setHeight("-1px"); vLBLregistration.setValue("<h2>Enregistrement</h2>"); vLBLregistration.setContentMode(3); mainLayout.addComponent(vLBLregistration, 0, 0); // vLBLmail vLBLmail = new Label(); vLBLmail.setImmediate(false); vLBLmail.setWidth("-1px"); vLBLmail.setHeight("-1px"); vLBLmail.setValue("E-mail"); mainLayout.addComponent(vLBLmail, 0, 1); // vTFmailValue vTFmailValue = new TextField(); vTFmailValue.setImmediate(true); vTFmailValue.setWidth("100.0%"); vTFmailValue.setHeight("-1px"); vTFmailValue.setSecret(false); mainLayout.addComponent(vTFmailValue, 1, 1); // vLBLpassword vLBLpassword = new Label(); vLBLpassword.setImmediate(false); vLBLpassword.setWidth("-1px"); vLBLpassword.setHeight("-1px"); vLBLpassword.setValue("Mot de passe :"); mainLayout.addComponent(vLBLpassword, 0, 2); // vTFpasswordValue vTFpasswordValue = new PasswordField(); vTFpasswordValue.setImmediate(true); vTFpasswordValue.setWidth("100.0%"); vTFpasswordValue.setHeight("-1px"); mainLayout.addComponent(vTFpasswordValue, 1, 2); // vLBLpassword2 vLBLpassword2 = new Label(); vLBLpassword2.setImmediate(false); vLBLpassword2.setWidth("-1px"); vLBLpassword2.setHeight("-1px"); vLBLpassword2.setValue("Confirmation de mot de passe :"); mainLayout.addComponent(vLBLpassword2, 0, 3); // vTFpasswordConfirmationValue vTFpasswordConfirmationValue = new PasswordField(); vTFpasswordConfirmationValue.setImmediate(true); vTFpasswordConfirmationValue.setWidth("100.0%"); vTFpasswordConfirmationValue.setHeight("-1px"); mainLayout.addComponent(vTFpasswordConfirmationValue, 1, 3); // buttonsLayout buttonsLayout = buildButtonsLayout(); mainLayout.addComponent(buttonsLayout, 1, 4); return mainLayout; }