List of usage examples for com.vaadin.ui TabSheet TabSheet
public TabSheet()
From source file:adminviews.MCCView.java
License:Open Source License
public MCCView(IOpenBisClient openbis, OpenbisCreationController creationController, String user) { this.openbis = openbis; this.creator = creationController; this.user = user; this.cases = new HashSet<String>(); this.patients = new ArrayList<String>(); mccProjects = new ComboBox("Source Project"); List<String> projects = new ArrayList<String>(); for (Project p : openbis.getProjectsOfSpace(mccSpace)) projects.add(p.getCode());//from w w w . j a v a 2s.c o m mccProjects.addStyleName(Styles.boxTheme); mccProjects.addItems(projects); mccProjects.setImmediate(true); newProject = new StandardTextField("New Project"); newProject.setImmediate(true); newProject.setWidth("80px"); HorizontalLayout projectTab = new HorizontalLayout(); projectTab.setSpacing(true); projectTab.addComponent(mccProjects); projectTab.addComponent(newProject); treatment = new StandardTextField("Treatment"); timepoint = new StandardTextField("Timepoint"); timepoint.setWidth("40px"); patient = new StandardTextField("Patient #"); patient.setWidth("50px"); HorizontalLayout paramTab = new HorizontalLayout(); paramTab.setSpacing(true); paramTab.addComponent(treatment); paramTab.addComponent(patient); paramTab.addComponent(timepoint); existingPatients = new Table("Existing Patients"); existingPatients.setStyleName(Styles.tableTheme); existingPatients.setPageLength(1); editView = new TabSheet(); editView.addStyleName(ValoTheme.TABSHEET_FRAMED); samples = new Table("Samples"); samples.setStyleName(Styles.tableTheme); samples.setPageLength(1); metaData = new Table(); metaData.setEditable(true); metaData.setStyleName(Styles.tableTheme); editView.addTab(samples, "Overview"); editView.addTab(metaData, "Change Metadata"); editView.setVisible(false); registerInfo = new Label(); bar = new ProgressBar(); addSamples = new Button("Add Samples"); addSamples.setEnabled(false); initMCCListeners(); addComponent(Styles.questionize(projectTab, "Samples can only be added if Timepoint, Treatment, Project and Patient Number " + "are filled in and they don't already exist in the current project. E.g. you can add a new timepoint for the same patient and " + "treatment but not the same timepoint.", "Adding new Samples")); addComponent(paramTab); addComponent(existingPatients); addComponent(editView); addComponent(registerInfo); addComponent(bar); addComponent(addSamples); }
From source file:annis.gui.AdminUI.java
License:Apache License
@Override protected void init(VaadinRequest request) { super.init(request); getPage().setTitle("ANNIS Adminstration"); WebResource rootResource = Helper.getAnnisWebResource(); UserManagement userManagement = new UserManagement(); userManagement.setRootResource(rootResource); GroupManagement groupManagement = new GroupManagement(); groupManagement.setRootResource(rootResource); CorpusManagement corpusManagement = new CorpusManagement(); corpusManagement.setRootResource(rootResource); boolean isLoggedIn = Helper.getUser() != null; corpusAdminPanel = new CorpusAdminPanel(); corpusController = new CorpusController(corpusManagement, corpusAdminPanel, this, isLoggedIn); userManagementPanel = new UserManagementPanel(); userController = new UserController(userManagement, userManagementPanel, this, isLoggedIn); groupManagementPanel = new GroupManagementPanel(); groupManagementController = new GroupController(groupManagement, corpusManagement, groupManagementPanel, this, userManagementPanel, isLoggedIn); boolean kickstarter = Boolean.parseBoolean( getSession().getConfiguration().getInitParameters().getProperty("kickstarterEnvironment", "false")); importPanel = new ImportPanel(!kickstarter, Helper.getUser() != null); tabSheet = new TabSheet(); tabSheet.addTab(importPanel, "Import Corpus", FontAwesome.UPLOAD); tabSheet.addTab(corpusAdminPanel, "Corpus management", FontAwesome.LIST_ALT); if (!kickstarter) { tabSheet.addTab(userManagementPanel, "User management", FontAwesome.USER); tabSheet.addTab(groupManagementPanel, "Group management", FontAwesome.USERS); }//from ww w . ja va 2 s .c o m tabSheet.setSizeFull(); tabSheet.addSelectedTabChangeListener(this); MainToolbar toolbar = new MainToolbar(null); addExtension(toolbar.getScreenshotExtension()); toolbar.addLoginListener(AdminUI.this); layout = new VerticalLayout(toolbar, tabSheet); layout.setSizeFull(); layout.setExpandRatio(toolbar, 0.0f); layout.setExpandRatio(tabSheet, 1.0f); tabSheet.addStyleName(ValoTheme.TABSHEET_FRAMED); setContent(layout); getPage().addUriFragmentChangedListener(this); selectTabFromFragment(getPage().getUriFragment()); }
From source file:annis.gui.AdminView.java
License:Apache License
public AdminView(AnnisUI ui) { Page.getCurrent().setTitle("ANNIS Adminstration"); UserManagement userManagement = new UserManagement(); userManagement.setWebResourceProvider(AdminView.this); GroupManagement groupManagement = new GroupManagement(); groupManagement.setWebResourceProvider(AdminView.this); CorpusManagement corpusManagement = new CorpusManagement(); corpusManagement.setWebResourceProvider(AdminView.this); boolean isLoggedIn = Helper.getUser() != null; corpusAdminPanel = new CorpusAdminPanel(); corpusController = new CorpusController(corpusManagement, corpusAdminPanel, this, isLoggedIn); userManagementPanel = new UserManagementPanel(); userController = new UserController(userManagement, userManagementPanel, this, isLoggedIn); groupManagementPanel = new GroupManagementPanel(); groupManagementController = new GroupController(groupManagement, corpusManagement, groupManagementPanel, this, userManagementPanel, isLoggedIn); importPanel = new ImportPanel(); tabSheet = new TabSheet(); tabSheet.addTab(importPanel, "Import Corpus", FontAwesome.UPLOAD); tabSheet.addTab(corpusAdminPanel, "Corpus management", FontAwesome.LIST_ALT); tabSheet.addTab(userManagementPanel, "User management", FontAwesome.USER); tabSheet.addTab(groupManagementPanel, "Group management", FontAwesome.USERS); tabSheet.setSizeFull();/* w w w . jav a 2 s . c o m*/ tabSheet.addSelectedTabChangeListener(AdminView.this); addComponents(tabSheet); setSizeFull(); setExpandRatio(tabSheet, 1.0f); tabSheet.addStyleName(ValoTheme.TABSHEET_FRAMED); }
From source file:annis.gui.controlpanel.ControlPanel.java
License:Apache License
public ControlPanel(InstanceConfig instanceConfig, ExampleQueriesPanel autoGenQueries, AnnisUI ui) { this.ui = ui; setSizeFull();//from ww w. j a v a 2 s . com setMargin(true); setStyleName(ValoTheme.PANEL_BORDERLESS); queryPanel = new QueryPanel(ui); queryPanel.setHeight("-1px"); queryPanel.setWidth("100%"); optionsTab = new TabSheet(); optionsTab.setHeight("100%"); optionsTab.setWidth("100%"); optionsTab.addStyleName(ValoTheme.TABSHEET_FRAMED); corpusList = new CorpusListPanel(instanceConfig, autoGenQueries, ui); searchOptions = new SearchOptionsPanel(); optionsTab.addTab(corpusList, "Corpus List", null); optionTab = optionsTab.addTab(searchOptions, "Search Options", null); addComponent(queryPanel); addComponent(optionsTab); setExpandRatio(optionsTab, 1.0f); }
From source file:annis.gui.SearchUI.java
License:Apache License
@Override protected void init(VaadinRequest request) { super.init(request); this.instanceConfig = getInstanceConfig(request); getPage().setTitle(instanceConfig.getInstanceDisplayName() + " (ANNIS Corpus Search)"); queryController = new QueryController(this); refresh = new Refresher(); // deactivate refresher by default refresh.setRefreshInterval(-1);//w ww . j a va 2 s .c o m refresh.addListener(queryController); addExtension(refresh); // always get the resize events directly setImmediate(true); VerticalLayout mainLayout = new VerticalLayout(); setContent(mainLayout); mainLayout.setSizeFull(); mainLayout.setMargin(false); final ScreenshotMaker screenshot = new ScreenshotMaker(this); addExtension(screenshot); css = new CSSInject(this); HorizontalLayout layoutToolbar = new HorizontalLayout(); layoutToolbar.setWidth("100%"); layoutToolbar.setHeight("-1px"); mainLayout.addComponent(layoutToolbar); layoutToolbar.addStyleName("toolbar"); layoutToolbar.addStyleName("border-layout"); Button btAboutAnnis = new Button("About ANNIS"); btAboutAnnis.addStyleName(ChameleonTheme.BUTTON_SMALL); btAboutAnnis.setIcon(new ThemeResource("info.gif")); btAboutAnnis.addClickListener(new AboutClickListener()); btBugReport = new Button("Report Bug"); btBugReport.addStyleName(ChameleonTheme.BUTTON_SMALL); btBugReport.setDisableOnClick(true); btBugReport.setIcon(new ThemeResource("../runo/icons/16/email.png")); btBugReport.addListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { screenshot.makeScreenshot(); btBugReport.setCaption("bug report is initialized..."); } }); String bugmail = (String) VaadinSession.getCurrent().getAttribute("bug-e-mail"); if (bugmail != null && !bugmail.isEmpty() && !bugmail.startsWith("${") && new EmailValidator("").isValid(bugmail)) { this.bugEMailAddress = bugmail; } btBugReport.setVisible(this.bugEMailAddress != null); lblUserName = new Label("not logged in"); lblUserName.setWidth("-1px"); lblUserName.setHeight("-1px"); lblUserName.addStyleName("right-aligned-text"); btLoginLogout = new Button("Login", new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { if (isLoggedIn()) { // logout Helper.setUser(null); Notification.show("Logged out", Notification.Type.TRAY_NOTIFICATION); updateUserInformation(); } else { showLoginWindow(); } } }); btLoginLogout.setSizeUndefined(); btLoginLogout.setStyleName(ChameleonTheme.BUTTON_SMALL); btLoginLogout.setIcon(new ThemeResource("../runo/icons/16/user.png")); Button btOpenSource = new Button("Help us to make ANNIS better!"); btOpenSource.setStyleName(BaseTheme.BUTTON_LINK); btOpenSource.addListener(new Button.ClickListener() { @Override public void buttonClick(ClickEvent event) { Window w = new HelpUsWindow(); w.setCaption("Help us to make ANNIS better!"); w.setModal(true); w.setResizable(true); w.setWidth("600px"); w.setHeight("500px"); addWindow(w); w.center(); } }); layoutToolbar.addComponent(btAboutAnnis); layoutToolbar.addComponent(btBugReport); layoutToolbar.addComponent(btOpenSource); layoutToolbar.addComponent(lblUserName); layoutToolbar.addComponent(btLoginLogout); layoutToolbar.setSpacing(true); layoutToolbar.setComponentAlignment(btAboutAnnis, Alignment.MIDDLE_LEFT); layoutToolbar.setComponentAlignment(btBugReport, Alignment.MIDDLE_LEFT); layoutToolbar.setComponentAlignment(btOpenSource, Alignment.MIDDLE_CENTER); layoutToolbar.setComponentAlignment(lblUserName, Alignment.MIDDLE_RIGHT); layoutToolbar.setComponentAlignment(btLoginLogout, Alignment.MIDDLE_RIGHT); layoutToolbar.setExpandRatio(btOpenSource, 1.0f); //HorizontalLayout hLayout = new HorizontalLayout(); final HorizontalSplitPanel hSplit = new HorizontalSplitPanel(); hSplit.setSizeFull(); mainLayout.addComponent(hSplit); mainLayout.setExpandRatio(hSplit, 1.0f); AutoGeneratedQueries autoGenQueries = new AutoGeneratedQueries("example queries", this); controlPanel = new ControlPanel(queryController, instanceConfig, autoGenQueries); controlPanel.setWidth(100f, Layout.Unit.PERCENTAGE); controlPanel.setHeight(100f, Layout.Unit.PERCENTAGE); hSplit.setFirstComponent(controlPanel); tutorial = new TutorialPanel(); tutorial.setHeight("99%"); mainTab = new TabSheet(); mainTab.setSizeFull(); mainTab.addTab(autoGenQueries, "example queries"); mainTab.addTab(tutorial, "Tutorial"); queryBuilder = new QueryBuilderChooser(queryController, this, instanceConfig); mainTab.addTab(queryBuilder, "Query Builder"); hSplit.setSecondComponent(mainTab); hSplit.setSplitPosition(CONTROL_PANEL_WIDTH, Unit.PIXELS); hSplit.addSplitterClickListener(new AbstractSplitPanel.SplitterClickListener() { @Override public void splitterClick(AbstractSplitPanel.SplitterClickEvent event) { if (event.isDoubleClick()) { if (hSplit.getSplitPosition() == CONTROL_PANEL_WIDTH) { // make small hSplit.setSplitPosition(0.0f, Unit.PIXELS); } else { // reset to default width hSplit.setSplitPosition(CONTROL_PANEL_WIDTH, Unit.PIXELS); } } } }); // hLayout.setExpandRatio(mainTab, 1.0f); addAction(new ShortcutListener("^Query builder") { @Override public void handleAction(Object sender, Object target) { mainTab.setSelectedTab(queryBuilder); } }); addAction(new ShortcutListener("Tutor^eial") { @Override public void handleAction(Object sender, Object target) { mainTab.setSelectedTab(tutorial); } }); getPage().addUriFragmentChangedListener(this); getSession().addRequestHandler(new RequestHandler() { @Override public boolean handleRequest(VaadinSession session, VaadinRequest request, VaadinResponse response) throws IOException { checkCitation(request); if (request.getPathInfo() != null && request.getPathInfo().startsWith("/vis-iframe-res/")) { String uuidString = StringUtils.removeStart(request.getPathInfo(), "/vis-iframe-res/"); UUID uuid = UUID.fromString(uuidString); IFrameResourceMap map = VaadinSession.getCurrent().getAttribute(IFrameResourceMap.class); if (map == null) { response.setStatus(404); } else { IFrameResource res = map.get(uuid); if (res != null) { response.setStatus(200); response.setContentType(res.getMimeType()); response.getOutputStream().write(res.getData()); } } return true; } return false; } }); getSession().setAttribute(MediaController.class, new MediaControllerImpl()); getSession().setAttribute(PDFController.class, new PDFControllerImpl()); loadInstanceFonts(); checkCitation(request); lastQueriedFragment = ""; evaluateFragment(getPage().getUriFragment()); updateUserInformation(); }
From source file:annis.gui.SearchView.java
License:Apache License
public SearchView(AnnisUI ui) { super(2, 2);/*from w w w . ja va 2 s . c o m*/ this.ui = ui; this.selectedTabHistory = new LinkedHashSet<>(); // init a doc browser controller this.docBrowserController = new DocBrowserController(ui); // always get the resize events directly setImmediate(true); setSizeFull(); setMargin(false); setRowExpandRatio(1, 1.0f); setColumnExpandRatio(1, 1.0f); final HelpPanel help = new HelpPanel(ui); mainTab = new TabSheet(); mainTab.setSizeFull(); mainTab.setCloseHandler(SearchView.this); mainTab.addStyleName(ValoTheme.TABSHEET_FRAMED); mainTab.addSelectedTabChangeListener(SearchView.this); TabSheet.Tab helpTab = mainTab.addTab(help, "Help/Examples"); helpTab.setIcon(FontAwesome.QUESTION_CIRCLE); helpTab.setClosable(false); controlPanel = new ControlPanel(ui.getInstanceConfig(), help.getExamples(), ui); controlPanel.setWidth(CONTROL_PANEL_WIDTH, Layout.Unit.PIXELS); controlPanel.setHeight(100f, Layout.Unit.PERCENTAGE); ui.addAction(new ShortcutListener("Tutor^eial") { @Override public void handleAction(Object sender, Object target) { mainTab.setSelectedTab(help); } }); addComponent(controlPanel, 0, 1); addComponent(mainTab, 1, 1); }
From source file:at.meikel.nentis.Nentis.java
License:Apache License
@Override public void init() { nentisApi = NentisApi.getInstance(); mainWindow = new Window("Nentis"); setMainWindow(mainWindow);//from w w w. j a v a2 s .c om TabSheet tabSheet = new TabSheet(); mainWindow.setContent(tabSheet); initInfo(tabSheet); initMain(tabSheet); }
From source file:at.peppol.webgui.app.components.InvoiceTabForm.java
License:Mozilla Public License
private GridLayout buildMainLayout() { // common part: create layout mainLayout = new GridLayout(); mainLayout.setImmediate(true);/*from w w w. java 2 s .c o m*/ mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); mainLayout.setMargin(false); // top-level component properties setWidth("100.0%"); setHeight("100.0%"); // set form layout setLayout(mainLayout); // invTabSheet invTabSheet = new TabSheet(); invTabSheet.setImmediate(true); invTabSheet.setWidth("100.0%"); invTabSheet.setHeight("100.0%"); invTabSheet.addTab(tTabInvoiceHeader, "Invoice Header"); invTabSheet.addTab(supplierForm, "Supplier Party"); invTabSheet.addTab(customerForm, "Customer Party"); // invTabSheet.addTab (new // Label("move payee party here? or merge all parties here!"), // "Payee Party"); invTabSheet.addTab(tTabInvoiceDelivery, "Delivery"); invTabSheet.addTab(tTabInvoicePayment, "Payment"); invTabSheet.addTab(tTabInvoiceAllowanceCharge, "Allowance/Charge"); invTabSheet.addTab(tTabInvoiceLine, "Invoice Lines"); invTabSheet.addTab(tTabInvoiceTaxTotal, "Tax Total"); invTabSheet.addTab(tTabInvoiceMonetaryTotal, "Monetary Total"); mainLayout.addComponent(invTabSheet, 0, 0); //BIIRULE-T10-R011 tTabInvoiceLine.getTable().addListener(new LinesTotalAmountListener()); //BIIRULE-T10-R012 TaxExclusiveAmountListener taxExclusiveAmountListener = new TaxExclusiveAmountListener(); tTabInvoiceLine.getTable().addListener(taxExclusiveAmountListener); tTabInvoiceAllowanceCharge.getTable().addListener(taxExclusiveAmountListener); //BIIRULE-T10-R013 TaxInclusiveAmountListener taxInclusiveAmountListener = new TaxInclusiveAmountListener(); tTabInvoiceTaxTotal.getInvoiceTaxTotalTopForm().getField(TabInvoiceTaxTotal.taxTotalAmount) .addListener(taxInclusiveAmountListener); tTabInvoiceMonetaryTotal.getMonetaryTotalForm().getField(TabInvoiceMonetaryTotal.taxExclusiveAmount) .addListener(taxInclusiveAmountListener); //BIIRULE-T10-R015 & BIIRULE-T10-R016 BIIRULE_T10_R015_R016 biirule_t10_r015_r016 = new BIIRULE_T10_R015_R016(); tTabInvoiceLine.getTable().addListener(biirule_t10_r015_r016); tTabInvoiceAllowanceCharge.getTable().addListener(biirule_t10_r015_r016); //BIIRULE-T10-R017 BIIRULE_T10_R017 biirule_t10_r017 = new BIIRULE_T10_R017(); tTabInvoiceMonetaryTotal.getMonetaryTotalForm().getField(TabInvoiceMonetaryTotal.taxInclusiveAmount) .addListener(biirule_t10_r017); tTabInvoiceMonetaryTotal.getMonetaryTotalForm().getField(TabInvoiceMonetaryTotal.prepaidAmount) .addListener(biirule_t10_r017); return mainLayout; }
From source file:br.com.anteros.mobileserver.app.form.ExecuteForm.java
License:Apache License
private void createForm() { if (actionSynchronism.getItems() != null) { Label lblTitle = new Label("Parmetros de execuo Ao " + actionSynchronism.getName() + " (" + actionSynchronism.getId() + ")"); lblTitle.setStyleName("h2 color"); lblTitle.setImmediate(false);/*w w w . j av a2 s .c om*/ addComponent(lblTitle); setComponentAlignment(lblTitle, Alignment.TOP_LEFT); Synchronism synchronism = actionSynchronism.getItems().iterator().next(); executeForm = new Form(); fields.clear(); ParameterSynchronism[] parameters = null; if (synchronism instanceof TableSynchronism) parameters = ((TableSynchronism) synchronism).getParameters(); if (synchronism instanceof ProcedureSynchronism) parameters = ((ProcedureSynchronism) synchronism).getParameters(); for (ParameterSynchronism param : parameters) { if (param.getParameterType().intValue() == ParameterSynchronism.INPUT || param.getParameterType().intValue() == ParameterSynchronism.SUBSTITUITION) { String value = FieldTypes.getFieldTypes().get(param.getParameterDataType().intValue() + ""); if (value != null) { if (FieldTypes.UNKNOW.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("400px"); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.INTEGER.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.VARCHAR.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("400px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.FLOAT.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.NUMERIC.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.DATE.equalsIgnoreCase(value)) { PopupDateField field = new PopupDateField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); field.setResolution(PopupDateField.RESOLUTION_DAY); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.TIME.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } else if (FieldTypes.TIMESTAMP.equalsIgnoreCase(value)) { TextField field = new TextField(); field.setCaption(param.getName()); field.setWidth("150px"); field.setRequired(true); field.setRequiredError("Informe o valor para o campo " + param.getName()); executeForm.addField(param.getName(), field); fields.add(field); } } } } panelForm = new Panel(); panelForm.setHeight("100%"); panelForm.setWidth("100%"); panelForm.setScrollable(true); addComponent(panelForm); executeForm.setImmediate(true); executeForm.setWidth("100%"); panelForm.addComponent(executeForm); executeCommit = new CheckBox("Executar COMMIT no final do processo?"); addComponent(executeCommit); HorizontalLayout buttons = new HorizontalLayout(); buttons.setImmediate(false); buttons.setWidth("600px"); buttons.setHeight("-1px"); buttons.setMargin(false); buttons.setSpacing(true); addComponent(buttons); btnExecute = new Button(); btnExecute.setCaption("Executar"); btnExecute.setIcon(new ThemeResource("icons/16/run.png")); btnExecute.addListener(clickListener); buttons.addComponent(btnExecute); buttons.setComponentAlignment(btnExecute, Alignment.MIDDLE_RIGHT); buttons.setExpandRatio(btnExecute, 1); btnClose = new Button(); btnClose.setCaption("Fechar"); btnClose.setIcon(new ThemeResource("icons/16/doorOut.png")); btnClose.addListener(clickListener); buttons.addComponent(btnClose); buttons.setComponentAlignment(btnClose, Alignment.MIDDLE_RIGHT); buttons.setMargin(true, false, true, false); addComponent(buttons); pageControl = new TabSheet(); pageControl.setImmediate(true); pageControl.setWidth("100.0%"); pageControl.setHeight("100.0%"); textPanel = new Panel(); textPanel.setImmediate(true); textPanel.setWidth("100%"); textPanel.setHeight("100%"); pageControl.addTab(textPanel, "Resultado", null); addComponent(pageControl); setExpandRatio(pageControl, 1.0f); } }
From source file:br.com.anteros.mobileserver.app.form.ProcedureForm.java
License:Apache License
private void createPageControl() { pageControl = new TabSheet(); pageControl.setWidth("100%"); pageControl.setHeight("250px"); pageControl.addTab(gridParameters, "Parmetros"); }