@AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("560px");
    mainLayout.setHeight("100px");
    mainLayout.setMargin(true);

    // top-level component properties
    setWidth("560px");
    setHeight("100px");

    // codeField
    codeField = new TextField();
    codeField.setCaption("Código");
    codeField.setImmediate(false);
    codeField.setWidth("140px");
    codeField.setHeight("-1px");
    codeField.setTabIndex(1);
    codeField.setRequired(true);
    mainLayout.addComponent(codeField, "top:16.0px;left:20.0px;");

    // descriptionField
    descriptionField = new TextField();
    descriptionField.setCaption("Descripción");
    descriptionField.setImmediate(false);
    descriptionField.setWidth("520px");
    descriptionField.setHeight("-1px");
    mainLayout.addComponent(descriptionField, "top:56.0px;left:20.0px;");

    return mainLayout;
  }
  @AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // mainMenu
    mainMenu = buildMenuBar();
    mainLayout.addComponent(mainMenu, "top:0.0px;left:0.0px;");

    // titleLabel
    titleLabel = new Label();
    titleLabel.setStyleName("titleLabel");
    titleLabel.setImmediate(false);
    titleLabel.setWidth("540px");
    titleLabel.setHeight("40px");
    titleLabel.setValue("Naslov");
    mainLayout.addComponent(titleLabel, "top:40.0px;left:20.0px;");

    loginComponent = new LoginComponent(this);
    mainLayout.addComponent(loginComponent, "top:30.0px;left:700.0px;");

    // productSearchSplit
    productSearchSplit = buildProductSearchSplit();
    mainLayout.addComponent(productSearchSplit, "top:100.0px;left:10.0px;");

    return mainLayout;
  }
  @AutoGenerated
  private AbsoluteLayout buildRegisterTab() {
    // common part: create layout
    registerTab = new AbsoluteLayout();
    registerTab.setImmediate(false);
    registerTab.setWidth("100.0%");
    registerTab.setHeight("248px");
    registerTab.setMargin(false);

    // emailDiv
    emailDiv = buildEmailDiv();
    registerTab.addComponent(emailDiv, "top:0.0px;bottom:215.0px;left:0.0px;");

    // passwordDiv
    passwordDiv = buildPasswordDiv();
    registerTab.addComponent(passwordDiv, "top:34.0px;left:0.0px;");

    // firstNameDiv
    firstNameDiv = buildFirstNameDiv();
    registerTab.addComponent(firstNameDiv, "top:108.0px;bottom:107.0px;left:0.0px;");

    // lastNameDiv
    lastNameDiv = buildLastNameDiv();
    registerTab.addComponent(lastNameDiv, "top:147.0px;left:0.0px;");

    // confirmDiv
    confirmDiv = buildConfirmDiv();
    registerTab.addComponent(confirmDiv, "top:72.0px;right:186.0px;bottom:145.0px;left:0.0px;");

    // companyDiv
    companyDiv = buildCompanyDiv();
    registerTab.addComponent(companyDiv, "top:200.0px;left:0.0px;");

    // register
    register = new Button();
    register.setStyleName("decorated");
    register.setCaption("Register");
    register.setImmediate(true);
    register.setWidth("-1px");
    register.setHeight("-1px");
    registerTab.addComponent(register, "top:228.0px;left:220.0px;");

    return registerTab;
  }
  @AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("100%");
    mainLayout.setHeight("100%");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("100.0%");
    setHeight("100.0%");

    // tabSheet_1
    tabSheet_1 = buildTabSheet_1();
    mainLayout.addComponent(tabSheet_1, "top:0.0px;left:0.0px;");

    return mainLayout;
  }
Exemple #5
0
  @AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("560px");
    mainLayout.setHeight("280px");
    mainLayout.setMargin(true);

    // top-level component properties
    setWidth("560px");
    setHeight("280px");

    // commentField
    commentField = new TextField();
    commentField.setCaption("Comentario");
    commentField.setImmediate(false);
    commentField.setWidth("520px");
    commentField.setHeight("120px");
    commentField.setTabIndex(9);
    mainLayout.addComponent(commentField, "top:140.0px;left:20.0px;");

    // kmField
    kmField = new TextField();
    kmField.setCaption("Km");
    kmField.setImmediate(false);
    kmField.setWidth("80px");
    kmField.setHeight("-1px");
    kmField.setTabIndex(7);
    mainLayout.addComponent(kmField, "top:98.0px;left:260.0px;");

    // punctureField
    punctureField = new TextField();
    punctureField.setCaption("Pinchazos");
    punctureField.setImmediate(false);
    punctureField.setWidth("140px");
    punctureField.setHeight("-1px");
    punctureField.setTabIndex(5);
    mainLayout.addComponent(punctureField, "top:56.0px;left:400.0px;");

    // serialNumberField
    serialNumberField = new TextField();
    serialNumberField.setCaption("Número  de serie");
    serialNumberField.setImmediate(false);
    serialNumberField.setWidth("160px");
    serialNumberField.setHeight("-1px");
    serialNumberField.setTabIndex(1);
    serialNumberField.setRequired(true);
    mainLayout.addComponent(serialNumberField, "top:17.0px;left:20.0px;");

    // vehicleLocationField
    vehicleLocationField = new TextField();
    vehicleLocationField.setCaption("Ubicación vehículo");
    vehicleLocationField.setImmediate(false);
    vehicleLocationField.setWidth("120px");
    vehicleLocationField.setHeight("-1px");
    vehicleLocationField.setTabIndex(4);
    mainLayout.addComponent(vehicleLocationField, "top:56.0px;left:260.0px;");

    // supplierField
    supplierField = new ComboBox();
    supplierField.setCaption("Proveedor");
    supplierField.setImmediate(false);
    supplierField.setWidth("220px");
    supplierField.setHeight("-1px");
    supplierField.setTabIndex(6);
    mainLayout.addComponent(supplierField, "top:100.0px;left:20.0px;");

    // tireTypeField
    tireTypeField = new ComboBox();
    tireTypeField.setCaption("Tipo neumático");
    tireTypeField.setImmediate(false);
    tireTypeField.setWidth("168px");
    tireTypeField.setHeight("-1px");
    tireTypeField.setTabIndex(8);
    tireTypeField.setRequired(true);
    mainLayout.addComponent(tireTypeField, "top:97.0px;left:372.0px;");

    // vehicleField
    vehicleField = new ComboBox();
    vehicleField.setCaption("Vehículo");
    vehicleField.setImmediate(false);
    vehicleField.setWidth("220px");
    vehicleField.setHeight("-1px");
    vehicleField.setTabIndex(3);
    vehicleField.setRequired(true);
    mainLayout.addComponent(vehicleField, "top:56.0px;left:20.0px;");

    // tireStatusField
    tireStatusField = new ComboBox();
    tireStatusField.setCaption("Estado neumático");
    tireStatusField.setImmediate(false);
    tireStatusField.setWidth("168px");
    tireStatusField.setHeight("-1px");
    tireStatusField.setTabIndex(2);
    tireStatusField.setRequired(true);
    mainLayout.addComponent(tireStatusField, "top:17.0px;left:372.0px;");

    return mainLayout;
  }
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(true);
    mainLayout.setWidth("160px");
    mainLayout.setHeight("69px");
    mainLayout.setMargin(false);

    // top-level component properties
    setWidth("160px");
    setHeight("69px");

    // currSelection
    currSelection = new Label();
    currSelection.setImmediate(true);
    currSelection.setWidth("2px");
    currSelection.setHeight("2px");
    currSelection.setValue("");
    currSelection.setContentMode(3);
    mainLayout.addComponent(currSelection, "top:40.0px;left:6.0px;");

    // nextOptionAbove
    nextOptionAbove = new TextField();
    nextOptionAbove.addStyleName("borderless");
    nextOptionAbove.setEnabled(false);
    nextOptionAbove.setImmediate(true);
    nextOptionAbove.setWidth("-1px");
    nextOptionAbove.setHeight("-1px");
    mainLayout.addComponent(nextOptionAbove, "top:0.0px;left:3.0px;");

    // nextOptionBelow
    nextOptionBelow = new TextField();
    nextOptionBelow.addStyleName("borderless");
    nextOptionBelow.setEnabled(false);
    nextOptionBelow.setImmediate(true);
    nextOptionBelow.setWidth("-1px");
    nextOptionBelow.setHeight("-1px");
    mainLayout.addComponent(nextOptionBelow, "top:40.0px;left:3.0px;");

    // upButton
    upButton = new Button();
    upButton.setCaption("");
    upButton.setStyleName(BaseTheme.BUTTON_LINK);
    upButton.setImmediate(true);
    upButton.setWidth("16px");
    upButton.setHeight("16px");
    upButton.setIcon(ARROW_UP);
    upButton.addListener(this);
    upButton.setData(BUTTON_UP);
    mainLayout.addComponent(upButton, "top:11.0px;left:139.0px;");

    // downButton
    downButton = new Button();
    downButton.setCaption("");
    downButton.setStyleName(BaseTheme.BUTTON_LINK);
    downButton.setImmediate(true);
    downButton.setWidth("16px");
    downButton.setHeight("16px");
    downButton.setIcon(ARROW_DOWN);
    downButton.addListener(this);
    downButton.setData(BUTTON_DOWN);
    mainLayout.addComponent(downButton, "top:39.0px;left:139.0px;");

    return mainLayout;
  }
Exemple #7
0
  @AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("650px");
    mainLayout.setHeight("220px");
    mainLayout.setMargin(true);

    // top-level component properties
    setWidth("650px");
    setHeight("220px");

    // jobGroupField
    jobGroupField = new TextField();
    jobGroupField.setCaption("Grupo");
    jobGroupField.setImmediate(false);
    jobGroupField.setWidth("140px");
    jobGroupField.setHeight("-1px");
    jobGroupField.setRequired(true);
    mainLayout.addComponent(jobGroupField, "top:20.0px;left:180.0px;");

    // jobIntervalField
    jobIntervalField = new TextField();
    jobIntervalField.setCaption("Intervalo");
    jobIntervalField.setImmediate(false);
    jobIntervalField.setWidth("60px");
    jobIntervalField.setHeight("-1px");
    mainLayout.addComponent(jobIntervalField, "top:180.0px;left:20.0px;");

    // jobNameField
    jobNameField = new TextField();
    jobNameField.setCaption("Nombre");
    jobNameField.setImmediate(false);
    jobNameField.setWidth("140px");
    jobNameField.setHeight("-1px");
    jobNameField.setRequired(true);
    mainLayout.addComponent(jobNameField, "top:20.0px;left:20.0px;");

    // jobTriggerPriorityField
    jobTriggerPriorityField = new TextField();
    jobTriggerPriorityField.setCaption("Job Trigger Priority");
    jobTriggerPriorityField.setImmediate(false);
    jobTriggerPriorityField.setWidth("160px");
    jobTriggerPriorityField.setHeight("-1px");
    mainLayout.addComponent(jobTriggerPriorityField, "top:140.0px;left:200.0px;");

    // jobTriggerTypeField
    jobTriggerTypeField = new ComboBox();
    jobTriggerTypeField.setCaption("Tipo Disparador");
    jobTriggerTypeField.setImmediate(true);
    jobTriggerTypeField.setWidth("160px");
    jobTriggerTypeField.setHeight("-1px");
    jobTriggerTypeField.setRequired(true);
    mainLayout.addComponent(jobTriggerTypeField, "top:140.0px;left:20.0px;");

    // cronExpressionField
    cronExpressionField = new TextField();
    cronExpressionField.setCaption("Expresión Cron ");
    cronExpressionField.setImmediate(false);
    cronExpressionField.setWidth("340px");
    cronExpressionField.setHeight("-1px");
    mainLayout.addComponent(cronExpressionField, "top:180.0px;left:20.0px;");

    // descriptionField
    descriptionField = new TextField();
    descriptionField.setCaption("Descripción");
    descriptionField.setImmediate(false);
    descriptionField.setWidth("620px");
    descriptionField.setHeight("-1px");
    mainLayout.addComponent(descriptionField, "top:100.0px;left:20.0px;");

    // endTimeField
    endTimeField = new DateField();
    endTimeField.setCaption("Fecha Finalización");
    endTimeField.setImmediate(false);
    endTimeField.setWidth("-1px");
    endTimeField.setHeight("-1px");
    endTimeField.setInvalidAllowed(false);
    mainLayout.addComponent(endTimeField, "top:60.0px;left:225.0px;");

    // futureField
    futureField = new CheckBox();
    futureField.setCaption("Futuro");
    futureField.setImmediate(false);
    futureField.setWidth("-1px");
    futureField.setHeight("-1px");
    mainLayout.addComponent(futureField, "top:140.0px;left:585.0px;");

    // future_timeField
    future_timeField = new TextField();
    future_timeField.setCaption("Future_time");
    future_timeField.setImmediate(false);
    future_timeField.setWidth("160px");
    future_timeField.setHeight("-1px");
    mainLayout.addComponent(future_timeField, "top:140.0px;left:400.0px;");

    // repeatCountField
    repeatCountField = new TextField();
    repeatCountField.setCaption("Repeticiones");
    repeatCountField.setImmediate(false);
    repeatCountField.setWidth("60px");
    repeatCountField.setHeight("24px");
    mainLayout.addComponent(repeatCountField, "top:180.0px;right:290.0px;");

    // startTimeField
    startTimeField = new DateField();
    startTimeField.setCaption("Fecha Comienzo");
    startTimeField.setImmediate(false);
    startTimeField.setWidth("-1px");
    startTimeField.setHeight("-1px");
    startTimeField.setInvalidAllowed(false);
    mainLayout.addComponent(startTimeField, "top:60.0px;left:20.0px;");

    // areaField
    areaField = new ComboBox();
    areaField.setCaption("Area Trabajo");
    areaField.setImmediate(false);
    areaField.setWidth("-1px");
    areaField.setHeight("-1px");
    areaField.setRequired(true);
    mainLayout.addComponent(areaField, "top:60.0px;left:420.0px;");

    // jobCalendarField
    jobCalendarField = new JobTriggerCalendarField();
    jobCalendarField.setImmediate(false);
    jobCalendarField.setWidth("-1px");
    jobCalendarField.setHeight("-1px");
    mainLayout.addComponent(jobCalendarField, "top:167.0px;left:397.0px;");

    // jobIntervalTypeField
    jobIntervalTypeField = new ComboBox();
    jobIntervalTypeField.setCaption("Tipo Intervalo");
    jobIntervalTypeField.setImmediate(false);
    jobIntervalTypeField.setWidth("175px");
    jobIntervalTypeField.setHeight("-1px");
    mainLayout.addComponent(jobIntervalTypeField, "top:180.0px;left:100.0px;");

    return mainLayout;
  }
  @AutoGenerated
  private AbsoluteLayout buildMainLayout() {
    // common part: create layout
    mainLayout = new AbsoluteLayout();
    mainLayout.setImmediate(false);
    mainLayout.setWidth("580px");
    mainLayout.setHeight("360px");
    mainLayout.setMargin(true);

    // top-level component properties
    setWidth("580px");
    setHeight("360px");

    // descriptionField
    descriptionField = new TextField();
    descriptionField.setCaption("Descripción");
    descriptionField.setImmediate(false);
    descriptionField.setWidth("380px");
    descriptionField.setHeight("-1px");
    mainLayout.addComponent(descriptionField, "top:112.0px;left:180.0px;");

    // idField
    idField = new TextField();
    idField.setCaption("Id");
    idField.setImmediate(false);
    idField.setWidth("400px");
    idField.setHeight("-1px");
    idField.setRequired(true);
    mainLayout.addComponent(idField, "top:20.0px;left:20.0px;");

    // nameField
    nameField = new TextField();
    nameField.setCaption("Nombre");
    nameField.setImmediate(false);
    nameField.setWidth("140px");
    nameField.setHeight("-1px");
    nameField.setRequired(true);
    mainLayout.addComponent(nameField, "top:112.0px;left:20.0px;");

    // packageNameField
    packageNameField = new TextField();
    packageNameField.setCaption("Paquete");
    packageNameField.setImmediate(false);
    packageNameField.setWidth("400px");
    packageNameField.setHeight("-1px");
    packageNameField.setRequired(true);
    mainLayout.addComponent(packageNameField, "top:64.0px;left:20.0px;");

    // versionField
    versionField = new TextField();
    versionField.setCaption("Versión");
    versionField.setImmediate(false);
    versionField.setWidth("120px");
    versionField.setHeight("-1px");
    versionField.setRequired(true);
    mainLayout.addComponent(versionField, "top:64.0px;left:440.0px;");

    // activeField
    activeField = new CheckBox();
    activeField.setCaption("Activo");
    activeField.setImmediate(false);
    activeField.setWidth("-1px");
    activeField.setHeight("-1px");
    activeField.setRequired(true);
    mainLayout.addComponent(activeField, "top:20.0px;left:507.0px;");

    // fileField
    fileField = new FileField();
    fileField.setImmediate(false);
    fileField.setWidth("540px");
    fileField.setHeight("-1px");
    mainLayout.addComponent(fileField, "top:160.0px;left:20.0px;");

    // errorMessageField
    errorMessageField = new TextArea();
    errorMessageField.setCaption("Mensaje Error");
    errorMessageField.setImmediate(false);
    errorMessageField.setWidth("540px");
    errorMessageField.setHeight("120px");
    mainLayout.addComponent(errorMessageField, "top:220.0px;left:20.0px;");

    return mainLayout;
  }
  @AutoGenerated
  private AbsoluteLayout buildGeneralLayout() {
    // common part: create layout
    generalLayout = new AbsoluteLayout();
    generalLayout.setImmediate(false);
    generalLayout.setWidth("100.0%");
    generalLayout.setHeight("100.0%");
    generalLayout.setMargin(false);

    // photoField
    photoField = new ImageField();
    photoField.setImmediate(false);
    photoField.setWidth("420px");
    photoField.setHeight("140px");
    generalLayout.addComponent(photoField, "top:20.0px;left:10.0px;");

    // vatField
    vatField = new TextField();
    vatField.setCaption("CIF/NIF");
    vatField.setImmediate(false);
    vatField.setWidth("120px");
    vatField.setHeight("-1px");
    generalLayout.addComponent(vatField, "top:16.0px;left:435.0px;");

    // clientTypeField
    clientTypeField = new ComboBox();
    clientTypeField.setCaption("Tipo");
    clientTypeField.setImmediate(false);
    clientTypeField.setDescription("Tipo Cliente");
    clientTypeField.setWidth("-1px");
    clientTypeField.setHeight("-1px");
    clientTypeField.setRequired(true);
    generalLayout.addComponent(clientTypeField, "top:54.0px;left:435.0px;");

    // clientGroupField
    clientGroupField = new ComboBox();
    clientGroupField.setCaption("Grupo");
    clientGroupField.setImmediate(false);
    clientGroupField.setWidth("-1px");
    clientGroupField.setHeight("-1px");
    clientGroupField.setRequired(true);
    generalLayout.addComponent(clientGroupField, "top:92.0px;left:435.0px;");

    // phoneField
    phoneField = new TextField();
    phoneField.setCaption("Teléfono 01");
    phoneField.setImmediate(false);
    phoneField.setWidth("115px");
    phoneField.setHeight("-1px");
    generalLayout.addComponent(phoneField, "top:16.0px;left:653.0px;");

    // faxField
    faxField = new TextField();
    faxField.setCaption("Fax");
    faxField.setImmediate(false);
    faxField.setWidth("115px");
    faxField.setHeight("-1px");
    generalLayout.addComponent(faxField, "top:54.0px;left:779.0px;");

    // facebookIdField
    facebookIdField = new TextField();
    facebookIdField.setCaption("Facebook Id");
    facebookIdField.setImmediate(false);
    facebookIdField.setWidth("242px");
    facebookIdField.setHeight("24px");
    generalLayout.addComponent(facebookIdField, "top:90.0px;left:653.0px;");

    // mobileField
    mobileField = new TextField();
    mobileField.setCaption("Teléfono 02");
    mobileField.setImmediate(false);
    mobileField.setWidth("115px");
    mobileField.setHeight("-1px");
    generalLayout.addComponent(mobileField, "top:16.0px;left:780.0px;");

    // descriptionField
    descriptionField = new TextField();
    descriptionField.setCaption("Descripción");
    descriptionField.setImmediate(false);
    descriptionField.setWidth("460px");
    descriptionField.setHeight("-1px");
    generalLayout.addComponent(descriptionField, "top:132.0px;left:435.0px;");

    // commentField
    commentField = new TextArea();
    commentField.setCaption("Comentarios");
    commentField.setImmediate(false);
    commentField.setWidth("885px");
    commentField.setHeight("70px");
    generalLayout.addComponent(commentField, "top:206.0px;left:11.0px;");

    // emailField
    emailField = new TextField();
    emailField.setCaption("Email");
    emailField.setImmediate(false);
    emailField.setWidth("460px");
    emailField.setHeight("-1px");
    generalLayout.addComponent(emailField, "top:172.0px;left:435.0px;");

    return generalLayout;
  }