Beispiel #1
0
  public CustomerMenu(MshenguMain app, String selectedTab) {
    main = app;

    Label heading = new Label("CREATE A NEW CUSTOMER");
    heading.setSizeUndefined();
    heading.addStyleName("h4");
    VerticalLayout customerDetailsTab = new VerticalLayout();
    customerDetailsTab.setMargin(true);
    customerDetailsTab.addComponent(new CustomerDetailsTab(main));

    customerContractsTab = new CustomerContractsTab(main);
    newCustomerTab = new NewCustomerTab(app);
    //        customerContractsTab.setMargin(true);
    //        customerContractsTab.addComponent(new CustomerContractsTab(main));

    tab = new TabSheet();
    tab.setHeight("100%");
    tab.setWidth("100%");
    tab.addTab(customerDetailsTab, "Customer Details", null);
    tab.addTab(customerContractsTab, "Hiring Terms", null);
    tab.addTab(newCustomerTab, "New Customer Form", null);

    if (selectedTab.equals("LANDING")) {
      tab.setSelectedTab(customerDetailsTab);
    } else if (selectedTab.equals("CONTRACTS")) {
      tab.setSelectedTab(customerContractsTab);
    } else if (selectedTab.equals("New_Customer")) {
      tab.setSelectedTab(newCustomerTab);
    }
    addComponent(heading);
    addComponent(tab);
    setMargin(true);
  }
Beispiel #2
0
  @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;
  }
  public ServerDesc() {
    setWidth("100%");
    setHeight("100%");
    setCaption(ViewProperties.getCaption("panel.serverDesc"));
    addStyleName(Reindeer.PANEL_LIGHT);
    addStyleName("server-desc-panel");

    VerticalLayout layout = (VerticalLayout) getContent();
    layout.setWidth("100%");
    layout.setHeight("100%");
    layout.setMargin(false);
    layout.setSpacing(false);
    layout.addStyleName("server-desc-layout");
    tabDesc.addStyleName(Reindeer.TABSHEET_BORDERLESS);
    tabDesc.setWidth("100%");
    tabDesc.setHeight("100%");
    tabDesc.addTab(
        serverDescBasic, ViewProperties.getCaption("tab.serverDescBasic"), Icons.BASIC.resource());
    tabDesc.addTab(
        serverDescDetail,
        ViewProperties.getCaption("tab.serverDescDetail"),
        Icons.DETAIL.resource());
    // タブ用リスナー
    tabDesc.addListener(TabSheet.SelectedTabChangeEvent.class, this, "selectedTabChange");
    addComponent(tabDesc);
  }
Beispiel #4
0
  public UtilitiesMenu(MainLayout main, String selectedTab) {
    this.main = main;
    VerticalLayout statusTab = new VerticalLayout();
    statusTab.setMargin(true);
    statusTab.addComponent(new StatusTab(main));

    VerticalLayout funderTab = new VerticalLayout();
    funderTab.setMargin(true);
    funderTab.addComponent(new FunderTab(main));

    VerticalLayout currencyTab = new VerticalLayout();
    currencyTab.setMargin(true);
    currencyTab.addComponent(new CurrencyTab(main));

    VerticalLayout disciplineActionTypeListTab = new VerticalLayout();
    disciplineActionTypeListTab.setMargin(true);
    disciplineActionTypeListTab.addComponent(new DisciplineActionTypeListTab(main));

    VerticalLayout accidentTypeListTab = new VerticalLayout();
    accidentTypeListTab.setMargin(true);
    accidentTypeListTab.addComponent(new AccidentTypeListTab(main));

    tab = new TabSheet();
    tab.setHeight("100%");
    tab.setWidth("100%");

    tab.addTab(disciplineActionTypeListTab, "Discipline  ACTION", null);
    tab.addTab(statusTab, "Status  LIST", null);
    tab.addTab(funderTab, "Funders LIST", null);
    tab.addTab(currencyTab, "Currencies  LIST", null);
    tab.addTab(accidentTypeListTab, "Accident Type  LIST", null);
    if (selectedTab.equals("LANDING")) {
      tab.setSelectedTab(disciplineActionTypeListTab);
    } else if (selectedTab.equals("STATUS")) {
      tab.setSelectedTab(statusTab);
    } else if (selectedTab.equals("FUNDER")) {
      tab.setSelectedTab(funderTab);
    } else if (selectedTab.equals("CURRENCY")) {
      tab.setSelectedTab(currencyTab);
    } else if (selectedTab.equals("ACCIDENT")) {
      tab.setSelectedTab(accidentTypeListTab);
    }
    addComponent(tab);
  }
  @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;
  }
Beispiel #7
0
 public Menu(MshenguMain app, String selectedTab) {
   main = app;
   tab = new TabSheet();
   tab.setHeight("100%");
   tab.setWidth("100%");
 }