private Component buildFormContent() { VerticalLayout formContent = new VerticalLayout(); formContent.setSpacing(true); Panel frmPanel = new Panel(); frmPanel.setStyleName(AitTheme.PANEL_FORM); frmPanel.setIcon(FontAwesome.EDIT); frmPanel.setWidth("100%"); frmPanel.setCaption("Datos a eliminar"); frmPanel.setContent(this.frm_organismo); this.frm_organismo.enabled(); formContent.setMargin(true); Panel gridPanel = new Panel(); gridPanel.setStyleName(AitTheme.PANEL_GRID); gridPanel.setIcon(FontAwesome.TABLE); gridPanel.setWidth("100%"); gridPanel.setCaption("Organismos Financiadores registrados"); gridPanel.setContent(this.grid_organismo); formContent.setMargin(true); formContent.addComponent(gridPanel); formContent.addComponent(frmPanel); this.frm_organismo.update(); Responsive.makeResponsive(formContent); return formContent; }
public void initComponent() { comboGroup0.setWidth("300px"); comboGroup1.setWidth("300px"); comboGroup2.setWidth("300px"); comboGroup3.setWidth("300px"); comboGroup4.setWidth("300px"); comboGroup5.setWidth("300px"); textField1.setWidth("200px"); textField2.setWidth("300px"); dateField1From.setDateFormat("dd/MM/yyyy"); dateField1To.setDateFormat("dd/MM/yyyy"); panelFilter.setCaption("Filter Criteria"); panelOutput.setCaption("Jenis Laporan"); }
private Component buildFormContent() { VerticalLayout formContent = new VerticalLayout(); formContent.setSpacing(true); Panel frmPanel = new Panel(); frmPanel.setStyleName(AitTheme.PANEL_FORM); frmPanel.setIcon(FontAwesome.EDIT); frmPanel.setWidth("100%"); frmPanel.setCaption("Servidor con Atribuciones de Autorizacion"); GridLayout gridlFunionario = new GridLayout(3, 1); gridlFunionario.addComponent(txtDependencia, 0, 0); gridlFunionario.addComponent(txtUnidadOrganizacional, 1, 0); gridlFunionario.addComponent(txt_nombre_servidor, 2, 0); gridlFunionario.setMargin(true); gridlFunionario.setSpacing(true); gridlFunionario.setWidth("100%"); frmPanel.setContent(gridlFunionario); formContent.setMargin(true); formContent.addComponent(frmPanel); Panel gridPanel = new Panel(); gridPanel.setWidth("100%"); gridPanel.setCaption("Documentos que Puede Autorizar"); gridPanel.setContent(this.gridTipoAutorizacion); gridPanel.setStyleName(AitTheme.PANEL_GRID); gridPanel.setIcon(FontAwesome.TABLE); formContent.setMargin(true); Panel gridpin = new Panel(); gridpin.setStyleName(AitTheme.PANEL_FORM); gridpin.setIcon(FontAwesome.TABLE); gridpin.setWidth("100%"); gridpin.setCaption("N. PIN"); gridpin.setContent(this.frm_pin); formContent.setMargin(true); formContent.addComponent(frmPanel); formContent.addComponent(gridPanel); formContent.addComponent(gridpin); Responsive.makeResponsive(formContent); return formContent; }
private Component buildFormContent() { VerticalLayout formContent = new VerticalLayout(); formContent.setSpacing(true); Panel frmPanel = new Panel(); frmPanel.setWidth("100%"); frmPanel.setCaption("Datos a registrar"); frmPanel.setContent(this.frm_unidad); formContent.setMargin(true); formContent.addComponent(frmPanel); Panel gridPanel = new Panel(); gridPanel.setWidth("100%"); gridPanel.setCaption("Dependencias registradas"); gridPanel.setContent(this.grid_unidad); formContent.setMargin(true); formContent.addComponent(frmPanel); formContent.addComponent(gridPanel); Responsive.makeResponsive(formContent); return formContent; }
/** * Called if: URL changed manually by the visitor in the browser. Reload button pressed. NOT * called because of an updateUri button click (important ;-). */ @Override public void paramChanged(NavigationEvent navigationEvent) { lastParamsDetectedLabel.setValue("Last parameters detected: " + navigationEvent.getParams()); if (navigationEvent.getParams() == null) { tf.setValue(""); details.setVisible(false); } else { tf.setValue(navigationEvent.getParams()); details.setVisible(true); details.setCaption("Ticket #" + navigationEvent.getParams()); } }
@AutoGenerated private Panel buildPanAvanceRecesion() { // common part: create layout panAvanceRecesion = new Panel(); panAvanceRecesion.setCaption("Avance-Recesión"); panAvanceRecesion.setImmediate(false); panAvanceRecesion.setWidth("100.0%"); panAvanceRecesion.setHeight("-1px"); // absLAvanceRecesion absLAvanceRecesion = buildAbsLAvanceRecesion(); panAvanceRecesion.setContent(absLAvanceRecesion); return panAvanceRecesion; }
@Secured({"ROLE_ANONYMOUS", "ROLE_USER", "ROLE_ADMIN"}) @Override public Layout createContent(final String parameters, final MenuBar menuBar, final Panel panel) { final VerticalLayout panelContent = createPanelContent(); final String pageId = getPageId(parameters); final DataContainer<ViewRiksdagenMinistry, String> dataContainer = getApplicationManager().getDataContainer(ViewRiksdagenMinistry.class); final ViewRiksdagenMinistry viewRiksdagenMinistry = dataContainer.load(pageId); if (viewRiksdagenMinistry != null) { getMinistryMenuItemFactory().createMinistryMenuBar(menuBar, pageId); LabelFactory.createHeader2Label(panelContent, OVERVIEW); final Link addMinistryPageLink = getPageLinkFactory().addMinistryPageLink(viewRiksdagenMinistry); panelContent.addComponent(addMinistryPageLink); getFormFactory() .addFormPanelTextFields( panelContent, new BeanItem<>(viewRiksdagenMinistry), ViewRiksdagenMinistry.class, Arrays.asList( new String[] { "nameId", "active", "firstAssignmentDate", "lastAssignmentDate", "totalAssignments", "totalDaysServed", "currentMemberSize" })); panelContent.setExpandRatio(addMinistryPageLink, ContentRatio.SMALL); panel.setCaption(MINISTRY + viewRiksdagenMinistry.getNameId()); getPageActionEventHelper() .createPageEvent( ViewAction.VISIT_MINISTRY_VIEW, ApplicationEventGroup.USER, NAME, parameters, pageId); } return panelContent; }
@Override public void attach() { super.attach(); Panel panel = new Panel(); panel.setSizeFull(); panel.addStyleName(Reindeer.PANEL_LIGHT); panel.addStyleName("mocha-shotcut"); VerticalLayout noMarginLayout = new VerticalLayout(); noMarginLayout.setSizeFull(); panel.setContent(noMarginLayout); // panel title. panel.setCaption(message.getString(shotcut.getTitle())); for (ShotcutItem item : shotcut.getShotcutItems()) { NativeButton itemButton = createNativeButton(item); panel.addComponent(itemButton); } setCompositionRoot(panel); }
@Override public void buildStringsFromLocale() { STRINGS = AccountsApplication.getResourceBundle(); addNewBalanceSheet.setCaption(STRINGS.getString(AccountsMessages.BAL_SHEET_TOOLBAR_ADD)); addNewBalanceSheet.setDescription(STRINGS.getString(AccountsMessages.BAL_SHEET_TOOLBAR_ADD)); closeBalanceSheet.setCaption(STRINGS.getString(AccountsMessages.BAL_SHEET_TOOLBAR_REMOVE)); closeBalanceSheet.setDescription(STRINGS.getString(AccountsMessages.BAL_SHEET_TOOLBAR_REMOVE)); mainContent.setCaption(STRINGS.getString(AccountsMessages.BAL_SHEET_WIN_HEADER)); int numBalSheets = 0; if (myBalSheetDetails.getData() != null) numBalSheets = ((Integer) myBalSheetDetails.getData()).intValue(); myBalSheetDetails.setCaption( STRINGS .getString(AccountsMessages.BAL_SHEET_COUNT) .replace("{0}", String.valueOf(numBalSheets))); }