@AutoGenerated
  private TabSheet buildTabSheetClient() {
    // common part: create layout
    tabSheetClient = new TabSheet();
    tabSheetClient.setImmediate(true);
    tabSheetClient.setWidth("100.0%");
    tabSheetClient.setHeight("100.0%");

    // generalLayout
    generalLayout = buildGeneralLayout();
    tabSheetClient.addTab(generalLayout, "General", null);

    // addressLayout
    addressLayout = buildAddressLayout();
    tabSheetClient.addTab(addressLayout, "Dirección", null);

    // securityLayout
    securityLayout = buildSecurityLayout();
    tabSheetClient.addTab(securityLayout, "Seguridad", null);

    // organizationLayout
    organizationLayout = buildOrganizationLayout();
    tabSheetClient.addTab(organizationLayout, "Organización", null);

    // applicationverticalLayout
    applicationverticalLayout = buildApplicationverticalLayout();
    tabSheetClient.addTab(applicationverticalLayout, "Aplicaciones", null);

    // rolLayout
    rolLayout = buildRolLayout();
    tabSheetClient.addTab(rolLayout, "Rol", null);

    return tabSheetClient;
  }
  @AutoGenerated
  private TabSheet buildLogintab() {
    // common part: create layout
    logintab = new TabSheet();
    logintab.setStyleName("background");
    logintab.setImmediate(true);
    logintab.setWidth("479px");
    logintab.setHeight("450px");

    // loginTab
    loginTab = buildLoginTab();
    logintab.addTab(loginTab, "Login", null);

    // registerTab
    registerTab = buildRegisterTab();
    logintab.addTab(registerTab, "Register", null);

    // forgotTab
    forgotTab = buildForgotTab();
    logintab.addTab(forgotTab, "Forgot Something?", null);

    return logintab;
  }
  @AutoGenerated
  private TabSheet buildTabSheet_1() {
    // common part: create layout
    tabSheet_1 = new TabSheet();
    tabSheet_1.setImmediate(true);
    tabSheet_1.setWidth("100.0%");
    tabSheet_1.setHeight("100.0%");

    // parentForm_1
    parentForm_1 = new ParentForm();
    parentForm_1.setImmediate(false);
    parentForm_1.setWidth("100.0%");
    parentForm_1.setHeight("100.0%");
    tabSheet_1.addTab(parentForm_1, "Parents", null);

    // stockPriceForm_1
    stockPriceForm_1 = new StockPriceForm();
    stockPriceForm_1.setImmediate(false);
    stockPriceForm_1.setWidth("100.0%");
    stockPriceForm_1.setHeight("100.0%");
    tabSheet_1.addTab(stockPriceForm_1, "Stock", null);

    return tabSheet_1;
  }
Exemple #4
0
  public void initUI() {
    try {

      if (getPbApplication().getUser() == null) {
        initLogin(null);
        return;
      }
      defineAccess();
      HttpServletRequest servletRequest = getPbApplication().getHttpServletRequest();
      // if opened a p as process and t as task parameter
      if (servletRequest.getParameter("p") != null) {
        initProcess(servletRequest.getParameter("p"));
        return;
      } else if (servletRequest.getParameter("t") != null) {
        initTask(servletRequest.getParameter("t"));
        return;
      }

      mainLayout = (VerticalLayout) getContent();
      mainLayout.removeAllComponents();
      mainLayout.setMargin(true);
      mainLayout.setSizeFull();

      tabs = new TabSheet();

      // prepare tabs
      // String userName = getPbApplication().getUserName();
      prepareTabs();
      mainLayout.addComponent(getHeader());
      /*if (accessSet.contains("tasklist")) {
                  	consolePanel = new TaskListPanel();

                  	if(accessSet.size()==1){

                  		 consolePanel.initUI();
                  		 consolePanel.setInitialized(true);
                  		 consolePanel.setSizeFull();
                  		 mainLayout.addComponent(consolePanel);
                           mainLayout.setExpandRatio(consolePanel, 1);
                  		 return;
                  	}

                      tabs.addTab(consolePanel, getPbMessages("bpmTasklist"), null);
                  }
                  if (accessSet.contains("bpm")) {
                      bpmConfigurationPanel = new BPMConfigurationPanel();
                      tabs.addTab(bpmConfigurationPanel, getPbMessages("bpmAdmin"), null);
                  }
                  if (accessSet.contains("identity")) {
                      identityPanel = new IdentityPanel();
                      tabs.addTab(identityPanel, getPbMessages("bpmIdentity"), null);
                  }
                  if (accessSet.contains("bam")) {
                      bamConfigurationPanel = new BAMConfigurationPanel();
                      tabs.addTab(bamConfigurationPanel, getPbMessages("bamAdmin"), null);
                  }
                  if (accessSet.contains("monitoring")) {
                      bpmMonitoringPanel = new BPMMonitoringPanel();
                      tabs.addTab(bpmMonitoringPanel, getPbMessages("bpmMonitoring"), null);
                  }
                  if (accessSet.contains("development")) {
                  	developmentPanel = new DevelopmentPanel();
                  	tabs.addTab(developmentPanel, getPbMessages("bpmDevelopment"), null);
                  }

                  if (accessSet.contains("raport")) {
                  	raportListPanel = new RaportModule();
                      tabs.addTab(raportListPanel, "Raports", null);
                  }

      */
      if (tabs.getSelectedTab() != null && tabs.getSelectedTab() instanceof PbPanel) {
        PbPanel first = (PbPanel) tabs.getSelectedTab();
        first.initUI();
        first.setInitialized(true);
        first.setSizeFull();
      }

      tabs.setSizeFull();
      mainLayout.addComponent(tabs);
      // mainLayout.addComponent(tabs);
      mainLayout.setExpandRatio(tabs, 1);

      tabs.addListener((SelectedTabChangeListener) this);
      tabs.setImmediate(true);
    } catch (Exception ex) {
      ex.printStackTrace();
      throw new RuntimeException(ex);
    }
  }