List of usage examples for com.vaadin.ui Label Label
public Label()
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());/* w w w . j ava 2 s .com*/ 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.admin.ImportPanel.java
License:Apache License
public ImportPanel() { setSizeFull();//from w ww. j ava2 s .c om layout = new VerticalLayout(); layout.setWidth("100%"); layout.setHeight("100%"); layout.setMargin(true); setContent(layout); FormLayout form = new FormLayout(); layout.addComponent(form); cbOverwrite = new CheckBox("Overwrite existing corpus"); form.addComponent(cbOverwrite); txtMail = new TextField("e-mail address for status updates"); txtMail.addValidator(new EmailValidator("Must be a valid e-mail address")); form.addComponent(txtMail); txtAlias = new TextField("alias name"); form.addComponent(txtAlias); HorizontalLayout actionBar = new HorizontalLayout(); actionBar.setSpacing(true); actionBar.setWidth("100%"); upload = new Upload("", this); upload.setButtonCaption("Upload ZIP file with relANNIS corpus and start import"); upload.setImmediate(true); upload.addStartedListener(this); upload.addFinishedListener(this); upload.setEnabled(true); actionBar.addComponent(upload); progress = new ProgressBar(); progress.setIndeterminate(true); progress.setVisible(false); actionBar.addComponent(progress); lblProgress = new Label(); lblProgress.setWidth("100%"); actionBar.addComponent(lblProgress); actionBar.setExpandRatio(lblProgress, 1.0f); actionBar.setComponentAlignment(lblProgress, Alignment.MIDDLE_LEFT); actionBar.setComponentAlignment(upload, Alignment.MIDDLE_LEFT); actionBar.setComponentAlignment(progress, Alignment.MIDDLE_LEFT); layout.addComponent(actionBar); btDetailedLog = new Button(); btDetailedLog.setStyleName(BaseTheme.BUTTON_LINK); btDetailedLog.addClickListener(new Button.ClickListener() { @Override public void buttonClick(Button.ClickEvent event) { setLogVisible(!isLogVisible()); } }); layout.addComponent(btDetailedLog); txtMessages = new TextArea(); txtMessages.setSizeFull(); txtMessages.setValue(""); txtMessages.setReadOnly(true); layout.addComponent(txtMessages); layout.setExpandRatio(txtMessages, 1.0f); setLogVisible(false); appendMessage("Ready."); }
From source file:annis.gui.HelpUsWindow.java
License:Apache License
public HelpUsWindow() { setSizeFull();// www. j a va2 s .c om layout = new VerticalLayout(); setContent(layout); layout.setSizeFull(); layout.setMargin(new MarginInfo(false, false, true, false)); HorizontalLayout hLayout = new HorizontalLayout(); hLayout.setSizeFull(); hLayout.setMargin(false); VerticalLayout labelLayout = new VerticalLayout(); labelLayout.setMargin(true); labelLayout.setSizeFull(); Label lblOpenSource = new Label(); lblOpenSource.setValue("<h1>ANNIS is <a href=\"http://opensource.org/osd\">Open Source</a> " + "software.</h1>" + "<p>This means you are free to download the source code and add new " + "features or make other adjustments to ANNIS on your own.<p/>" + "Here are some examples how you can help ANNIS:" + "<ul>" + "<li>Fix or report problems (bugs) you encounter when using the ANNIS software.</li>" + "<li>Add new features.</li>" + "<li>Enhance the documentation</li>" + "</ul>" + "<p>Feel free to visit our GitHub page for more information: <a href=\"https://github.com/korpling/ANNIS\" target=\"_blank\">https://github.com/korpling/ANNIS</a></p>"); lblOpenSource.setContentMode(ContentMode.HTML); lblOpenSource.setStyleName("opensource"); lblOpenSource.setWidth("100%"); lblOpenSource.setHeight("-1px"); labelLayout.addComponent(lblOpenSource); Link lnkFork = new Link(); lnkFork.setResource(new ExternalResource("https://github.com/korpling/ANNIS")); lnkFork.setIcon( new ExternalResource("https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png")); lnkFork.setTargetName("_blank"); hLayout.addComponent(labelLayout); hLayout.addComponent(lnkFork); hLayout.setComponentAlignment(labelLayout, Alignment.TOP_LEFT); hLayout.setComponentAlignment(lnkFork, Alignment.TOP_RIGHT); hLayout.setExpandRatio(labelLayout, 1.0f); layout.addComponent(hLayout); final HelpUsWindow finalThis = this; btClose = new Button("Close"); btClose.addClickListener(new OkClickListener(finalThis)); layout.addComponent(btClose); layout.setComponentAlignment(hLayout, Alignment.MIDDLE_CENTER); layout.setComponentAlignment(btClose, Alignment.MIDDLE_CENTER); layout.setExpandRatio(hLayout, 1.0f); }
From source file:annis.gui.paging.PagingComponent.java
License:Apache License
public PagingComponent(int count, int pageSize) { if (pageSize <= 0) { pageSize = 1;//from w w w. j av a 2 s.c om } if (count < 0) { count = 0; } currentPage = 1; this.count = new AtomicInteger(pageSize); this.pageSize = pageSize; setWidth("100%"); setHeight("-1px"); addStyleName("toolbar"); callbacks = new HashSet<>(); layout = new HorizontalLayout(); layout.setSpacing(true); layout.setMargin(new MarginInfo(false, true, false, true)); setContent(layout); addStyleName(ChameleonTheme.PANEL_LIGHT); lblInfo = new Label(); lblInfo.setContentMode(ContentMode.HTML); lblInfo.addStyleName("right-aligned-text"); btShareQuery = new Button(FontAwesome.SHARE_ALT); btShareQuery.setDescription("Share query reference link"); btShareQuery.addStyleName(ValoTheme.BUTTON_BORDERLESS); layout.setWidth("100%"); layout.setHeight("-1px"); btFirst = new Button(); btFirst.setIcon(FIRST); btFirst.setDescription("jump to first page"); btFirst.addClickListener((Button.ClickListener) this); btFirst.addStyleName(ChameleonTheme.BUTTON_ICON_ONLY); btFirst.addStyleName(ChameleonTheme.BUTTON_SMALL); btFirst.setDisableOnClick(true); btLast = new Button(); btLast.setIcon(LAST); btLast.setDescription("jump to last page"); btLast.addClickListener((Button.ClickListener) this); btLast.addStyleName(ChameleonTheme.BUTTON_ICON_ONLY); btLast.addStyleName(ChameleonTheme.BUTTON_SMALL); btLast.setDisableOnClick(true); btNext = new Button(); btNext.setIcon(RIGHT_ARROW); btNext.setDescription("jump to next page"); btNext.addClickListener((Button.ClickListener) this); btNext.addStyleName(ChameleonTheme.BUTTON_ICON_ONLY); btNext.addStyleName(ChameleonTheme.BUTTON_SMALL); btNext.setDisableOnClick(true); btPrevious = new Button(); btPrevious.setIcon(LEFT_ARROW); btPrevious.setDescription("jump to previous page"); btPrevious.addClickListener((Button.ClickListener) this); btPrevious.addStyleName(ChameleonTheme.BUTTON_ICON_ONLY); btPrevious.addStyleName(ChameleonTheme.BUTTON_SMALL); btPrevious.setDisableOnClick(true); txtPage = new TextField(); txtPage.setDescription("current page"); txtPage.setHeight("-1px"); txtPage.setWidth(5.f, UNITS_EM); Validator pageValidator = new PageValidator("must be an integer greater than zero"); txtPage.addValidator(pageValidator); addActionHandler(new EnterHandler(txtPage)); lblMaxPages = new Label(); lblMaxPages.setDescription("maximal pages"); lblMaxPages.setSizeUndefined(); lblStatus = new Label(); lblStatus.setSizeUndefined(); layout.addComponent(btFirst); layout.addComponent(btPrevious); layout.addComponent(txtPage); layout.addComponent(lblMaxPages); layout.addComponent(btNext); layout.addComponent(btLast); layout.addComponent(lblStatus); layout.addComponent(lblInfo); layout.addComponent(btShareQuery); layout.setComponentAlignment(btFirst, Alignment.MIDDLE_LEFT); layout.setComponentAlignment(btPrevious, Alignment.MIDDLE_LEFT); layout.setComponentAlignment(lblStatus, Alignment.MIDDLE_LEFT); layout.setComponentAlignment(lblMaxPages, Alignment.MIDDLE_CENTER); layout.setComponentAlignment(txtPage, Alignment.MIDDLE_RIGHT); layout.setComponentAlignment(btNext, Alignment.MIDDLE_RIGHT); layout.setComponentAlignment(btLast, Alignment.MIDDLE_RIGHT); layout.setExpandRatio(lblStatus, 1.0f); layout.setComponentAlignment(lblInfo, Alignment.MIDDLE_RIGHT); layout.setExpandRatio(lblInfo, 10.0f); update(false); }
From source file:ar.com.zir.cipres.ui.login.LoginForm.java
@AutoGenerated private AbsoluteLayout buildAbsoluteLayout_1() { // common part: create layout absoluteLayout_1 = new AbsoluteLayout(); absoluteLayout_1.setImmediate(false); absoluteLayout_1.setWidth("100.0%"); absoluteLayout_1.setHeight("100.0%"); // pwdPassword pwdPassword = new PasswordField(); pwdPassword.setCaption("Password"); pwdPassword.setImmediate(true);/*from ww w .ja v a 2s .c om*/ pwdPassword.setDescription("Contrasea del usuario"); pwdPassword.setWidth("-1px"); pwdPassword.setHeight("-1px"); pwdPassword.setTabIndex(6); pwdPassword.setRequired(true); pwdPassword.setNullSettingAllowed(true); absoluteLayout_1.addComponent(pwdPassword, "top:99.0px;left:211.0px;"); // txtUsuario txtUsuario = new TextField(); txtUsuario.setCaption("Usuario"); txtUsuario.setImmediate(true); txtUsuario.setDescription("Nombre de usuario"); txtUsuario.setWidth("-1px"); txtUsuario.setHeight("-1px"); txtUsuario.setTabIndex(5); txtUsuario.setRequired(true); txtUsuario.setInputPrompt("Ingrese el usuario"); txtUsuario.setMaxLength(10); absoluteLayout_1.addComponent(txtUsuario, "top:99.0px;left:18.0px;"); // btnLogin btnLogin = new Button(); btnLogin.setCaption("Login"); btnLogin.setImmediate(true); btnLogin.setWidth("88px"); btnLogin.setHeight("-1px"); btnLogin.setTabIndex(7); absoluteLayout_1.addComponent(btnLogin, "top:99.0px;left:403.0px;"); // embedded_1 embedded_1 = new Embedded(); embedded_1.setImmediate(false); embedded_1.setWidth("56px"); embedded_1.setHeight("56px"); embedded_1.setSource(new ThemeResource("security.png")); embedded_1.setType(1); embedded_1.setMimeType("image/png"); absoluteLayout_1.addComponent(embedded_1, "top:18.0px;left:425.0px;"); // label_1 label_1 = new Label(); label_1.setStyleName("login"); label_1.setImmediate(false); label_1.setWidth("-1px"); label_1.setHeight("-1px"); label_1.setValue("<h2>Bienvenido a </h2>"); label_1.setContentMode(ContentMode.HTML); absoluteLayout_1.addComponent(label_1, "top:18.0px;left:18.0px;"); // embedded_2 embedded_2 = new Embedded(); embedded_2.setImmediate(false); embedded_2.setWidth("141px"); embedded_2.setHeight("45px"); embedded_2.setSource(new ThemeResource("cipres-header.png")); embedded_2.setType(1); embedded_2.setMimeType("image/png"); absoluteLayout_1.addComponent(embedded_2, "top:25.0px;left:200.0px;"); return absoluteLayout_1; }
From source file:br.com.anteros.mobileserver.app.form.ConfigurationForm.java
License:Apache License
private AbsoluteLayout buildMainLayout() { // common part: create layout mainLayout = new AbsoluteLayout(); mainLayout.setImmediate(false);// ww w.ja v a 2 s . com mainLayout.setWidth("100%"); mainLayout.setHeight("100%"); mainLayout.setMargin(false); // top-level component properties setWidth("100%"); setHeight("100%"); // cbDialect cbDialect = new ComboBox(); cbDialect.setImmediate(false); cbDialect.setWidth("-1px"); cbDialect.setHeight("-1px"); cbDialect.addItem(MobileServerContext.H2); cbDialect.addItem(MobileServerContext.ORACLE); cbDialect.addItem(MobileServerContext.MYSQL); cbDialect.addItem(MobileServerContext.FIREBIRD); cbDialect.addItem(MobileServerContext.POSTGRESQL); // lblDialect lblDialect = new Label(); lblDialect.setImmediate(false); lblDialect.setWidth("-1px"); lblDialect.setHeight("-1px"); lblDialect.setValue("Dialeto"); // cbCharset cbCharset = new ComboBox(); cbCharset.setImmediate(false); cbCharset.setWidth("-1px"); cbCharset.setHeight("-1px"); cbCharset.addItem(AnterosStandardsCharsets.ISO_8859_1.name()); cbCharset.addItem(AnterosStandardsCharsets.US_ASCII.name()); cbCharset.addItem(AnterosStandardsCharsets.UTF_16.name()); cbCharset.addItem(AnterosStandardsCharsets.UTF_16BE.name()); cbCharset.addItem(AnterosStandardsCharsets.UTF_16LE.name()); cbCharset.addItem(AnterosStandardsCharsets.UTF_8.name()); // lblCharset lblCharset = new Label(); lblCharset.setImmediate(false); lblCharset.setWidth("-1px"); lblCharset.setHeight("-1px"); lblCharset.setValue("Charset"); // fldURL fldURL = new TextField(); fldURL.setImmediate(false); fldURL.setWidth("458px"); fldURL.setHeight("-1px"); // lblURL lblURL = new Label(); lblURL.setImmediate(false); lblURL.setWidth("-1px"); lblURL.setHeight("-1px"); lblURL.setValue("Url conexo"); // fldUser fldUser = new TextField(); fldUser.setImmediate(false); fldUser.setWidth("157px"); fldUser.setHeight("-1px"); // lblUser lblUser = new Label(); lblUser.setImmediate(false); lblUser.setWidth("-1px"); lblUser.setHeight("-1px"); lblUser.setValue("Usurio"); // fldPassword fldPassword = new PasswordField(); fldPassword.setImmediate(false); fldPassword.setWidth("157px"); fldPassword.setHeight("-1px"); // lblPassword lblPassword = new Label(); lblPassword.setImmediate(false); lblPassword.setWidth("-1px"); lblPassword.setHeight("-1px"); lblPassword.setValue("Senha"); // fldCatalog fldCatalog = new TextField(); fldCatalog.setImmediate(false); fldCatalog.setWidth("157px"); fldCatalog.setHeight("-1px"); // lblCatalog lblCatalog = new Label(); lblCatalog.setImmediate(false); lblCatalog.setWidth("-1px"); lblCatalog.setHeight("-1px"); lblCatalog.setValue("Catalog"); // fldSchema fldSchema = new TextField(); fldSchema.setImmediate(false); fldSchema.setWidth("157px"); fldSchema.setHeight("-1px"); // lblSchema lblSchema = new Label(); lblSchema.setImmediate(false); lblSchema.setWidth("-1px"); lblSchema.setHeight("-1px"); lblSchema.setValue("Schema"); // imgAnteros imgAnteros = new Embedded(); imgAnteros.setImmediate(false); imgAnteros.setWidth("165px"); imgAnteros.setHeight("45px"); imgAnteros.setSource(new ThemeResource("images/anteros_mobile_server45.png")); imgAnteros.setType(1); imgAnteros.setMimeType("image/png"); // fldInitPoolSize fldInitPoolSize = new TextField(); fldInitPoolSize.setImmediate(false); fldInitPoolSize.setWidth("157px"); fldInitPoolSize.setHeight("-1px"); // lblPool lblPool = new Label(); lblPool.setImmediate(false); lblPool.setWidth("-1px"); lblPool.setHeight("-1px"); lblPool.setValue("<b>Pool de conexes</b>"); lblPool.setContentMode(3); // label_2 label_2 = new Label(); label_2.setImmediate(false); label_2.setWidth("-1px"); label_2.setHeight("-1px"); label_2.setValue("<b>Pool de conexes</b>"); label_2.setContentMode(3); // lblInitialPoolSize lblInitialPoolSize = new Label(); lblInitialPoolSize.setImmediate(false); lblInitialPoolSize.setWidth("-1px"); lblInitialPoolSize.setHeight("-1px"); lblInitialPoolSize.setValue("Tamanho inicial"); // fldMinPoolSize fldMinPoolSize = new TextField(); fldMinPoolSize.setImmediate(false); fldMinPoolSize.setWidth("157px"); fldMinPoolSize.setHeight("-1px"); // lblMinPoolSize lblMinPoolSize = new Label(); lblMinPoolSize.setImmediate(false); lblMinPoolSize.setWidth("-1px"); lblMinPoolSize.setHeight("-1px"); lblMinPoolSize.setValue("Tamanho Mnimo"); // lblMaxPoolSize lblMaxPoolSize = new Label(); lblMaxPoolSize.setImmediate(false); lblMaxPoolSize.setWidth("-1px"); lblMaxPoolSize.setHeight("-1px"); lblMaxPoolSize.setValue("Tamanho Mximo"); // fldMaxPoolSize fldMaxPoolSize = new TextField(); fldMaxPoolSize.setImmediate(false); fldMaxPoolSize.setWidth("157px"); fldMaxPoolSize.setHeight("-1px"); // fldAcquireIncrement fldAcquireIncrement = new TextField(); fldAcquireIncrement.setImmediate(false); fldAcquireIncrement.setWidth("157px"); fldAcquireIncrement.setHeight("-1px"); // lblAcquireIncrement lblAcquireIncrement = new Label(); lblAcquireIncrement.setImmediate(false); lblAcquireIncrement.setWidth("-1px"); lblAcquireIncrement.setHeight("-1px"); lblAcquireIncrement.setValue("Incremento"); // chShowSql chShowSql = new CheckBox(); chShowSql.setCaption("Mostrar SQL's no log"); chShowSql.setImmediate(false); chShowSql.setWidth("-1px"); chShowSql.setHeight("-1px"); // chFormatSql chFormatSql = new CheckBox(); chFormatSql.setCaption("Formatar SQL's "); chFormatSql.setImmediate(false); chFormatSql.setWidth("-1px"); chFormatSql.setHeight("-1px"); // btnOk btnOk = new Button(); btnOk.setCaption("Ok"); btnOk.setIcon(new ThemeResource("icons/16/ok.png")); btnOk.setImmediate(true); btnOk.setWidth("-1px"); btnOk.setHeight("-1px"); // btnCancel btnCancel = new Button(); btnCancel.setCaption("Cancela"); btnCancel.setIcon(new ThemeResource("icons/16/cancel.png")); btnCancel.setImmediate(true); btnCancel.setWidth("-1px"); btnCancel.setHeight("-1px"); // imgConfiguration imgConfiguration = new Embedded(); imgConfiguration.setImmediate(false); imgConfiguration.setWidth("48px"); imgConfiguration.setHeight("48px"); imgConfiguration.setSource(new ThemeResource("images/configuration.png")); imgConfiguration.setType(1); imgConfiguration.setMimeType("image/png"); // lblAccessControl lblAccessControl = new Label(); lblAccessControl.setImmediate(false); lblAccessControl.setWidth("-1px"); lblAccessControl.setHeight("-1px"); lblAccessControl.setValue("<b>Controle de acesso</b>"); lblAccessControl.setContentMode(3); // lblAccessUser lblAccessUser = new Label(); lblAccessUser.setImmediate(false); lblAccessUser.setWidth("-1px"); lblAccessUser.setHeight("-1px"); lblAccessUser.setValue("Usurio"); // fldAccessUser fldAccessUser = new TextField(); fldAccessUser.setImmediate(false); fldAccessUser.setWidth("157px"); fldAccessUser.setHeight("-1px"); // lblAccessPassword lblAccessPassword = new Label(); lblAccessPassword.setImmediate(false); lblAccessPassword.setWidth("-1px"); lblAccessPassword.setHeight("-1px"); lblAccessPassword.setValue("Senha"); // fldAccessPassword fldAccessPassword = new PasswordField(); fldAccessPassword.setImmediate(false); fldAccessPassword.setWidth("157px"); fldAccessPassword.setHeight("-1px"); // cbTipoPool cbTipoPool = new ComboBox(); cbTipoPool.setImmediate(false); cbTipoPool.setWidth("100.0%"); cbTipoPool.setHeight("-1px"); cbTipoPool.addItem(PoolDatasource.POOL_C3P0); cbTipoPool.addItem(PoolDatasource.POOL_TOMCAT); cbTipoPool.addItem(PoolDatasource.POOL_JNDI); cbTipoPool.addItem(PoolDatasource.JDBC_WITHOUT_PO0L); // lblTipoPool lblTipoPool = new Label(); lblTipoPool.setImmediate(false); lblTipoPool.setWidth("103px"); lblTipoPool.setHeight("-1px"); lblTipoPool.setValue("Gerenciador pool"); // fldJNDI fldJNDI = new TextField(); fldJNDI.setImmediate(false); fldJNDI.setWidth("300px"); fldJNDI.setHeight("-1"); // lblJNDI lblJNDI = new Label(); lblJNDI.setImmediate(false); lblJNDI.setWidth("-1px"); lblJNDI.setHeight("-1px"); lblJNDI.setValue("Recurso JNDI"); // lblQueryTimeout lblQueryTimeout = new Label(); lblQueryTimeout.setImmediate(false); lblQueryTimeout.setWidth("-1px"); lblQueryTimeout.setHeight("-1px"); lblQueryTimeout.setValue("Timeout query"); // fldMaxPoolSize fldQueryTimeout = new TextField(); fldQueryTimeout.setImmediate(false); fldQueryTimeout.setWidth("100px"); fldQueryTimeout.setHeight("-1px"); // lblQueryTimeoutSeconds lblQueryTimeoutSeconds = new Label(); lblQueryTimeoutSeconds.setImmediate(false); lblQueryTimeoutSeconds.setWidth("-1px"); lblQueryTimeoutSeconds.setHeight("-1px"); lblQueryTimeoutSeconds.setValue("segundos"); mainLayout.addComponent(cbDialect, "top:20.0px;left:269.0px;"); mainLayout.addComponent(lblDialect, "top:17.0px;left:223.0px;"); mainLayout.addComponent(cbCharset, "top:20.0px;left:569.0px;"); mainLayout.addComponent(lblCharset, "top:17.0px;left:519.0px;"); mainLayout.addComponent(fldURL, "top:44.0px;left:269.0px;"); mainLayout.addComponent(lblURL, "top:41.0px;left:195.0px;"); mainLayout.addComponent(fldUser, "top:69.0px;left:269.0px;"); mainLayout.addComponent(lblUser, "top:69.0px;left:218.0px;"); mainLayout.addComponent(fldPassword, "top:69.0px;left:571.0px;"); mainLayout.addComponent(lblPassword, "top:69.0px;left:529.0px;"); mainLayout.addComponent(fldCatalog, "top:94.0px;left:269.0px;"); mainLayout.addComponent(lblCatalog, "top:94.0px;left:216.0px;"); mainLayout.addComponent(fldSchema, "top:94.0px;left:571.0px;"); mainLayout.addComponent(lblSchema, "top:93.0px;left:519.0px;"); mainLayout.addComponent(imgAnteros, "top:5.0px;left:5.0px;"); mainLayout.addComponent(cbTipoPool, "top:159.0px;right:230.0px;left:269.0px;"); mainLayout.addComponent(lblTipoPool, "top:156.0px;left:165.0px;"); mainLayout.addComponent(lblJNDI, "top:197.0px;left:184.0px;"); mainLayout.addComponent(fldJNDI, "top:197.0px;left:269.0px;"); mainLayout.addComponent(fldInitPoolSize, "top:221.0px;left:269.0px;"); mainLayout.addComponent(lblPool, "top:130.0px;left:269.0px;"); mainLayout.addComponent(label_2, "top:130.0px;left:269.0px;"); mainLayout.addComponent(lblInitialPoolSize, "top:221.0px;left:172.0px;"); mainLayout.addComponent(fldMinPoolSize, "top:246.0px;left:269.0px;"); mainLayout.addComponent(lblMinPoolSize, "top:247.0px;left:164.0px;"); mainLayout.addComponent(lblMaxPoolSize, "top:273.0px;left:162.0px;"); mainLayout.addComponent(fldMaxPoolSize, "top:272.0px;left:269.0px;"); mainLayout.addComponent(fldAcquireIncrement, "top:297.0px;left:269.0px;"); mainLayout.addComponent(lblAcquireIncrement, "top:298.0px;left:200.0px;"); mainLayout.addComponent(chShowSql, "top:234.0px;left:571.0px;"); mainLayout.addComponent(chFormatSql, "top:250.0px;left:571.0px;"); mainLayout.addComponent(lblQueryTimeout, "top:297.0px;left:480.0px;"); mainLayout.addComponent(fldQueryTimeout, "top:298.0px;left:571.0px;"); mainLayout.addComponent(lblQueryTimeoutSeconds, "top:297.0px;left:675.0px;"); mainLayout.addComponent(imgConfiguration, "top:153.0px;left:30.0px;"); mainLayout.addComponent(lblAccessControl, "top:328.0px;left:180.0px;"); mainLayout.addComponent(lblAccessUser, "top:350.0px;left:220.0px;"); mainLayout.addComponent(fldAccessUser, "top:350.0px;left:269.0px;"); mainLayout.addComponent(lblAccessPassword, "top:349.0px;left:529.0px;"); mainLayout.addComponent(fldAccessPassword, "top:348.0px;left:571.0px;"); mainLayout.addComponent(btnOk, "top:394.0px;left:580.0px;"); mainLayout.addComponent(btnCancel, "top:394.0px;left:648.0px;"); return mainLayout; }
From source file:br.com.anteros.mobileserver.app.form.LogForm.java
License:Apache License
private void createForm() { btnRefresh = new Button("Atualizar"); btnRefresh.addListener(this); header = new VerticalLayout(); header.addComponent(btnRefresh);// w w w . ja v a 2s . co m header.setWidth("100%"); header.setComponentAlignment(btnRefresh, Alignment.MIDDLE_LEFT); addComponent(header); textPanel = new Panel(); textPanel.setImmediate(true); textPanel.setHeight("100%"); textPanel.setWidth("100%"); textLog = new Label(); textLog.setContentMode(Label.CONTENT_XHTML); textLog.setWidth("100%"); textLog.setHeight("100%"); addComponent(textPanel); textPanel.addComponent(textLog); }
From source file:br.com.anteros.mobileserver.app.form.UserLoginForm.java
License:Apache License
private AbsoluteLayout buildAbsoluteLayout() { absoluteLayout = new AbsoluteLayout(); absoluteLayout.setImmediate(false);/*from w w w.j a v a 2 s .co m*/ absoluteLayout.setWidth("100.0%"); absoluteLayout.setHeight("100.0%"); absoluteLayout.setMargin(false); lblPassword = new Label(); lblPassword.setImmediate(false); lblPassword.setWidth("-1px"); lblPassword.setHeight("-1px"); lblPassword.setValue("Usurio"); absoluteLayout.addComponent(lblPassword, "top:20.0px;left:16.0px;"); lblUserName = new Label(); lblUserName.setImmediate(false); lblUserName.setWidth("-1px"); lblUserName.setHeight("-1px"); lblUserName.setValue("Senha"); absoluteLayout.addComponent(lblUserName, "top:54.0px;left:24.0px;"); fldUserName = new TextField(); fldUserName.setImmediate(false); fldUserName.setWidth("217px"); fldUserName.setHeight("-1px"); fldUserName.setSecret(false); absoluteLayout.addComponent(fldUserName, "top:20.0px;left:83.0px;"); fldPassword = new PasswordField(); fldPassword.setImmediate(false); fldPassword.setWidth("217px"); fldPassword.setHeight("-1px"); absoluteLayout.addComponent(fldPassword, "top:54.0px;left:83.0px;"); btnLogin = new Button(); btnLogin.setCaption("Login"); btnLogin.setImmediate(true); btnLogin.setWidth("100px"); btnLogin.setHeight("-1px"); absoluteLayout.addComponent(btnLogin, "top:100.0px;left:200.0px;"); return absoluteLayout; }
From source file:by.bigvova.views.AccessDeniedView.java
License:Apache License
public AccessDeniedView() { setMargin(true); addComponent(message = new Label()); message.setSizeUndefined(); message.addStyleName(ValoTheme.LABEL_FAILURE); }
From source file:by.bigvova.views.ErrorView.java
License:Apache License
public ErrorView() { setMargin(true); message = new Label(); addComponent(message); message.setSizeUndefined(); message.addStyleName(ValoTheme.LABEL_FAILURE); }