List of usage examples for com.vaadin.ui VerticalLayout setSizeFull
@Override public void setSizeFull()
From source file:com.pms.component.ganttchart.GanttChart.java
License:Apache License
public Component init(Project project) { ganttListener = null;//from www. j av a2 s. com createGantt(project); MenuBar menu = controlsMenuBar(); Panel controls = createControls(); TabSheet tabsheet = new TabSheet(); tabsheet.setSizeFull(); Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment(UI.getCurrent().getPage().getUriFragment(), gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; } final VerticalLayout layout = new VerticalLayout(); layout.setStyleName("demoContentLayout"); layout.setSizeFull(); //layout.addComponent(menu); layout.addComponent(controls); layout.addComponent(wrapper); layout.setExpandRatio(wrapper, 1); return layout; }
From source file:com.pms.component.ganttchart.scheduletask.TaskGanntChart.java
License:Apache License
public Component init(Project project) { this.project = project; ganttListener = null;//from w w w. java 2s . co m createGantt(project); MenuBar menu = controlsMenuBar(); Panel controls = createControls(); TabSheet tabsheet = new TabSheet(); tabsheet.setSizeFull(); /* Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment(UI .getCurrent().getPage().getUriFragment(), gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; }*/ //to show table Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment("table", gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; } final VerticalLayout layout = new VerticalLayout(); layout.setStyleName("demoContentLayout"); layout.setSizeFull(); //layout.addComponent(menu); layout.addComponent(controls); layout.addComponent(wrapper); layout.setExpandRatio(wrapper, 1); controls.setVisible(false); return layout; }
From source file:com.pms.component.ganttchart.scheduletask.UserStoryGanntChart.java
License:Apache License
public Component init(Project project) { this.project = project; ganttListener = null;// www. j av a 2 s .c o m createGantt(project); MenuBar menu = controlsMenuBar(); Panel controls = createControls(); TabSheet tabsheet = new TabSheet(); tabsheet.setSizeFull(); /* Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment(UI.getCurrent().getPage().getUriFragment(), gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; }*/ //to show table Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment("table", gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; } final VerticalLayout layout = new VerticalLayout(); layout.setStyleName("demoContentLayout"); layout.setSizeFull(); //layout.addComponent(menu); layout.addComponent(controls); layout.addComponent(wrapper); layout.setExpandRatio(wrapper, 1); controls.setVisible(false); return layout; }
From source file:com.pms.component.member.taskganntchart.TaskGanttChart.java
License:Apache License
public Component init(Project project) { this.project = project; ganttListener = null;/*from w w w . j a v a 2s . co m*/ createGantt(project); //MenuBar menu = controlsMenuBar(); Panel controls = createControls(); TabSheet tabsheet = new TabSheet(); tabsheet.setSizeFull(); //to show table Component wrapper = UriFragmentWrapperFactory.wrapByUriFragment("table", gantt); if (wrapper instanceof GanttListener) { ganttListener = (GanttListener) wrapper; } final VerticalLayout layout = new VerticalLayout(); layout.setStyleName("demoContentLayout"); layout.setSizeFull(); //layout.addComponent(menu); layout.addComponent(controls); layout.addComponent(wrapper); layout.setExpandRatio(wrapper, 1); return layout; }
From source file:com.rdonasco.config.web.ConfigApplication.java
License:Apache License
@Override public void init() { Window mainWindow = new Window("rdonasco Config"); setMainWindow(mainWindow);//from w w w .j av a2 s . c o m final ConfigDataView controlledView = getConfigDataViewController().getControlledView(); // controlledView.setSizeFull(); final VerticalLayout mainWindowLayout = (VerticalLayout) mainWindow.getContent(); Button logoutButton = new Button("Refresh"); logoutButton.addListener(new Button.ClickListener() { private static final long serialVersionUID = 1L; @Override public void buttonClick(Button.ClickEvent event) { try { getConfigDataViewController().refreshView(); } catch (WidgetException ex) { LOG.log(Level.WARNING, ex.getMessage(), ex); } } }); setTheme("config"); mainWindowLayout.setMargin(true); mainWindowLayout.setSpacing(true); mainWindowLayout.addStyleName("mainWindow"); mainWindowLayout.setSizeFull(); mainWindowLayout.addComponent(logoutButton); mainWindowLayout.addComponent(controlledView); mainWindowLayout.setExpandRatio(controlledView, 1); }
From source file:com.saax.gestorweb.view.ChatView.java
private VerticalLayout containerUserTable() { VerticalLayout users = new VerticalLayout(); users.setSizeFull(); userTable = new Table(); userTable.setWidth("100%"); userTable.addContainerProperty(messages.getString("ChatView.usuario"), String.class, null); userTable.addContainerProperty(messages.getString("ChatView.funcao"), String.class, null); userTable.setImmediate(true);/* w ww .java 2 s . c om*/ userTable.setSelectable(true); users.addComponent(userTable); uploadHorizontalLayout = new HorizontalLayout(); uploadHorizontalLayout.setWidth("100%"); return users; }
From source file:com.save.area.AddLocationToAreaWindow.java
VerticalLayout getVlayout() { VerticalLayout vlayout = new VerticalLayout(); vlayout.setSizeFull(); vlayout.setMargin(true);//w ww . ja v a2 s . c o m vlayout.setSpacing(true); area.setInputPrompt("Select Area.."); area.setNullSelectionAllowed(false); vlayout.addComponent(area); province.setInputPrompt("Select Province.."); province.addValueChangeListener(new ProvincePropertyChangeListener(city)); vlayout.addComponent(province); city.setInputPrompt("Select City.."); city.setWidth("100%"); vlayout.addComponent(city); Button addBtn = new Button("ADD LOCATION TO AREA"); addBtn.setWidth("100%"); addBtn.addClickListener(addBtnListener); vlayout.addComponent(addBtn); return vlayout; }
From source file:com.save.area.AddNewCityWindow.java
VerticalLayout getVlayout() { VerticalLayout vlayout = new VerticalLayout(); vlayout.setSizeFull(); vlayout.setMargin(true);/*from ww w .j a v a 2s . c o m*/ vlayout.setSpacing(true); province.setInputPrompt("Select Province.."); province.setWidth("100%"); vlayout.addComponent(province); cityField.setWidth("100%"); vlayout.addComponent(cityField); Button addCityBtn = new Button("ADD CITY"); addCityBtn.setWidth("100%"); addCityBtn.addClickListener(addCityBtnListener); vlayout.addComponent(addCityBtn); return vlayout; }
From source file:com.save.area.AddNewProvinceWindow.java
VerticalLayout getVlayout() { VerticalLayout vlayout = new VerticalLayout(); vlayout.setSizeFull(); vlayout.setMargin(true);/* w w w . ja va2 s . com*/ vlayout.setSpacing(true); provinceField.setWidth("100%"); vlayout.addComponent(provinceField); Button provinceBtn = new Button("ADD PROVINCE"); provinceBtn.setWidth("100%"); provinceBtn.addClickListener(addProvinceBtnListener); vlayout.addComponent(provinceBtn); return vlayout; }
From source file:com.save.area.CreateNewAreaWindow.java
VerticalLayout getVlayout() { VerticalLayout vlayout = new VerticalLayout(); vlayout.setSizeFull(); vlayout.setMargin(true);/*from w w w. j av a2s . c om*/ vlayout.setSpacing(true); final TextField areaField = new TextField("Create Area: "); areaField.setWidth("100%"); areaField.setRequired(true); areaField.setRequiredError("*Required Field"); vlayout.addComponent(areaField); Button createBtn = new Button("CREATE NEW AREA"); createBtn.setWidth("100%"); createBtn.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { if (as.isAreaExist(areaField.getValue().trim().toLowerCase())) { Notification.show("Area already Exist!", Notification.Type.WARNING_MESSAGE); return; } if (areaField.getValue() == null || areaField.getValue().trim().isEmpty()) { Notification.show("Area Field cannot be empty!", Notification.Type.ERROR_MESSAGE); return; } boolean result = as.createNewArea(areaField.getValue().trim().toLowerCase()); if (result) { Notification.show("Done!"); close(); } } }); createBtn.setImmediate(true); vlayout.addComponent(createBtn); return vlayout; }