Ejemplo n.º 1
0
  ComboBox userList() {
    users.setCaption("Users: ");
    users.setWidth("200px");
    users.setNullSelectionAllowed(false);
    users.addContainerProperty("y", String.class, "");
    users.setItemCaptionPropertyId("y");

    Item i;
    for (User u : service.getUserList()) {
      i = users.addItem(u.getId());
      i.getItemProperty("y").setValue(u.getUsername());
    }

    users.addListener(
        new ValueChangeListener() {

          @Override
          public void valueChange(Property.ValueChangeEvent event) {
            allowedBackwardInputAttendance.setValue(
                service.isUserAllowedToEnterPreviousAttendance(
                    util.convertStringToInteger(event.getProperty().getValue().toString())));
          }
        });

    users.setImmediate(true);

    return users;
  }
Ejemplo n.º 2
0
  @AutoGenerated
  private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);

    // cmbPolicia
    cmbPolicia = new ComboBox();
    cmbPolicia.setCaption("Policia");
    cmbPolicia.setImmediate(false);
    cmbPolicia.setWidth("230px");
    cmbPolicia.setHeight("-1px");
    horizontalLayout_1.addComponent(cmbPolicia);

    // btnAgregarPolicia
    btnAgregarPolicia = new Button();
    btnAgregarPolicia.setCaption(" ");
    btnAgregarPolicia.setImmediate(true);
    btnAgregarPolicia.setWidth("-1px");
    btnAgregarPolicia.setHeight("-1px");
    horizontalLayout_1.addComponent(btnAgregarPolicia);
    horizontalLayout_1.setComponentAlignment(btnAgregarPolicia, new Alignment(9));

    return horizontalLayout_1;
  }
Ejemplo n.º 3
0
  @Override
  protected void updateLabels() {
    jobNameField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.jobNameField.caption"));
    jobGroupField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.jobGroupField.caption"));
    startTimeField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.startTimeField.caption"));
    endTimeField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.endTimeField.caption"));
    areaField.setCaption(
        getI18N().getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.areaField.caption"));
    descriptionField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.descriptionField.caption"));
    jobTriggerTypeField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.jobTriggerTypeField.caption"));
    jobTriggerPriorityField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.jobTriggerPriorityField.caption"));
    future_timeField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.future_timeField.caption"));
    futureField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.futureField.caption"));
    jobIntervalField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.jobIntervalField.caption"));
    repeatCountField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.JobViewForm.repeatCountField.caption"));
    // jobCalendarField.setCaption(getI18N().getMessage("com.thingtrack.konekti.view.web.form.JobViewForm.jobCalendarField.caption"));

  }
Ejemplo n.º 4
0
  public CustomReportFilter() {

    fieldCombo = buildFieldComboBox(threatFields);
    fieldCombo.setCaption("Group By");
    fieldCombo.addStyleName(ValoTheme.COMBOBOX_TINY);

    eventCombo = buildEventTypeComboBox();
    eventCombo.setCaption("Event");
    eventCombo.addStyleName(ValoTheme.COMBOBOX_TINY);

    startDate = buildDateField("Choose Start Date");
    startDate.setCaption("From");
    endDate = buildDateField("Choose End Date");
    endDate.setCaption("To");
    setMargin(true);
    setSpacing(true);

    addComponent(eventCombo);
    addComponent(fieldCombo);
    addComponent(startDate);
    addComponent(endDate);
    addComponent(buildButton());
  }
Ejemplo n.º 5
0
  @AutoGenerated
  private AbsoluteLayout buildAbsLCaracteristicas2() {
    // common part: create layout
    absLCaracteristicas2 = new AbsoluteLayout();
    absLCaracteristicas2.setImmediate(false);
    absLCaracteristicas2.setWidth("100.0%");
    absLCaracteristicas2.setHeight("45px");

    // cmbEtapa
    cmbEtapa = new ComboBox();
    cmbEtapa.setCaption("Etapa Fenológica");
    cmbEtapa.setImmediate(false);
    cmbEtapa.setWidth("250px");
    cmbEtapa.setHeight("25px");
    absLCaracteristicas2.addComponent(cmbEtapa, "top:18.0px;left:10.0px;");

    // txtSupRegada
    txtSupRegada = new TextField();
    txtSupRegada.setCaption("Superficie Regada");
    txtSupRegada.setImmediate(false);
    txtSupRegada.setWidth("100px");
    txtSupRegada.setHeight("25px");
    absLCaracteristicas2.addComponent(txtSupRegada, "top:18.0px;left:280.0px;");

    // lblSupRegada
    lblSupRegada = new Label();
    lblSupRegada.setImmediate(false);
    lblSupRegada.setWidth("-1px");
    lblSupRegada.setHeight("-1px");
    lblSupRegada.setValue("ha");
    absLCaracteristicas2.addComponent(lblSupRegada, "top:22.0px;left:385.0px;");

    // txtProfRaices
    txtProfRaices = new TextField();
    txtProfRaices.setCaption("Prof. de Raíces");
    txtProfRaices.setImmediate(false);
    txtProfRaices.setWidth("100px");
    txtProfRaices.setHeight("25px");
    absLCaracteristicas2.addComponent(txtProfRaices, "top:18.0px;left:415.0px;");

    // lblProfRaices
    lblProfRaices = new Label();
    lblProfRaices.setImmediate(false);
    lblProfRaices.setWidth("-1px");
    lblProfRaices.setHeight("-1px");
    lblProfRaices.setValue("cm");
    absLCaracteristicas2.addComponent(lblProfRaices, "top:22.0px;left:520.0px;");

    return absLCaracteristicas2;
  }
Ejemplo n.º 6
0
  @AutoGenerated
  private HorizontalLayout buildHorizontalLayout_1() {
    // common part: create layout
    horizontalLayout_1 = new HorizontalLayout();
    horizontalLayout_1.setImmediate(false);
    horizontalLayout_1.setWidth("-1px");
    horizontalLayout_1.setHeight("-1px");
    horizontalLayout_1.setMargin(false);
    horizontalLayout_1.setSpacing(true);

    // textAreaDescription
    textAreaDescription = new TextArea();
    textAreaDescription.setCaption("Enter A Description");
    textAreaDescription.setImmediate(false);
    textAreaDescription.setWidth("50.0%");
    textAreaDescription.setHeight("-1px");
    horizontalLayout_1.addComponent(textAreaDescription);

    // textFieldFilter
    textFieldFilter = new TextField();
    textFieldFilter.setCaption("Filter Function By ID");
    textFieldFilter.setImmediate(false);
    textFieldFilter.setWidth("-1px");
    textFieldFilter.setHeight("-1px");
    horizontalLayout_1.addComponent(textFieldFilter);
    horizontalLayout_1.setComponentAlignment(textFieldFilter, new Alignment(9));

    // comboBoxDatatypeFilter
    comboBoxDatatypeFilter = new ComboBox();
    comboBoxDatatypeFilter.setCaption("Filter By Data Type");
    comboBoxDatatypeFilter.setImmediate(false);
    comboBoxDatatypeFilter.setWidth("-1px");
    comboBoxDatatypeFilter.setHeight("-1px");
    horizontalLayout_1.addComponent(comboBoxDatatypeFilter);
    horizontalLayout_1.setComponentAlignment(comboBoxDatatypeFilter, new Alignment(9));

    // checkBoxFilterIsBag
    checkBoxFilterIsBag = new CheckBox();
    checkBoxFilterIsBag.setCaption("Is Bag Filter");
    checkBoxFilterIsBag.setImmediate(false);
    checkBoxFilterIsBag.setWidth("-1px");
    checkBoxFilterIsBag.setHeight("-1px");
    horizontalLayout_1.addComponent(checkBoxFilterIsBag);
    horizontalLayout_1.setComponentAlignment(checkBoxFilterIsBag, new Alignment(9));

    return horizontalLayout_1;
  }
  private ComboBox createSelect(String caption) {
    final ComboBox cb = new ComboBox();
    cb.setImmediate(true);
    cb.addContainerProperty(CAPTION, String.class, "");
    cb.setItemCaptionPropertyId(CAPTION);
    cb.setCaption(caption);
    cb.addValueChangeListener(
        new ValueChangeListener() {

          @Override
          public void valueChange(ValueChangeEvent event) {
            Notification.show(
                "Value now:" + cb.getValue() + " " + cb.getItemCaption(cb.getValue()));
          }
        });
    return cb;
  }
Ejemplo n.º 8
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;
  }
Ejemplo n.º 9
0
  @AutoGenerated
  private VerticalLayout buildVerticalLayout_3() {
    // common part: create layout
    verticalLayout_3 = new VerticalLayout();
    verticalLayout_3.setStyleName("h1");
    verticalLayout_3.setCaption("Administracion del Usuario");
    verticalLayout_3.setImmediate(false);
    verticalLayout_3.setWidth("-1px");
    verticalLayout_3.setHeight("-1px");
    verticalLayout_3.setMargin(true);
    verticalLayout_3.setSpacing(true);

    // txtUsuario
    txtUsuario = new TextField();
    txtUsuario.setCaption("Usuario:");
    txtUsuario.setImmediate(false);
    txtUsuario.setWidth("-1px");
    txtUsuario.setHeight("-1px");
    txtUsuario.setRequired(true);
    txtUsuario.setInputPrompt("Usuario de logueo ");
    verticalLayout_3.addComponent(txtUsuario);

    // horizontalLayout_1
    horizontalLayout_1 = buildHorizontalLayout_1();
    verticalLayout_3.addComponent(horizontalLayout_1);

    // txtNombres
    txtNombres = new TextField();
    txtNombres.setCaption("Nombre:");
    txtNombres.setImmediate(false);
    txtNombres.setWidth("164px");
    txtNombres.setHeight("-1px");
    txtNombres.setRequired(true);
    txtNombres.setInputPrompt("Nombre de inicio de sesión");
    verticalLayout_3.addComponent(txtNombres);

    // txtApellidoPaterno
    txtApellidoPaterno = new TextField();
    txtApellidoPaterno.setCaption("Paterno");
    txtApellidoPaterno.setImmediate(false);
    txtApellidoPaterno.setWidth("250px");
    txtApellidoPaterno.setHeight("-1px");
    txtApellidoPaterno.setRequired(true);
    txtApellidoPaterno.setInputPrompt("Apellido Paterno");
    verticalLayout_3.addComponent(txtApellidoPaterno);

    // txtApellidoMaterno
    txtApellidoMaterno = new TextField();
    txtApellidoMaterno.setCaption("Materno");
    txtApellidoMaterno.setImmediate(false);
    txtApellidoMaterno.setWidth("250px");
    txtApellidoMaterno.setHeight("-1px");
    txtApellidoMaterno.setRequired(true);
    txtApellidoMaterno.setInputPrompt("Apellido Materno");
    verticalLayout_3.addComponent(txtApellidoMaterno);

    // cmbOficina
    cmbOficina = new ComboBox();
    cmbOficina.setCaption("Oficina");
    cmbOficina.setImmediate(false);
    cmbOficina.setWidth("204px");
    cmbOficina.setHeight("-1px");
    cmbOficina.setRequired(true);
    verticalLayout_3.addComponent(cmbOficina);

    // cmbRol
    cmbRol = new ComboBox();
    cmbRol.setCaption("Rol");
    cmbRol.setImmediate(false);
    cmbRol.setWidth("194px");
    cmbRol.setHeight("-1px");
    cmbRol.setRequired(true);
    verticalLayout_3.addComponent(cmbRol);

    // txtCargo
    txtCargo = new TextField();
    txtCargo.setCaption("Cargo");
    txtCargo.setImmediate(false);
    txtCargo.setWidth("250px");
    txtCargo.setHeight("-1px");
    txtCargo.setRequired(true);
    txtCargo.setInputPrompt("Cargo que desempeña");
    verticalLayout_3.addComponent(txtCargo);

    // txtCargoDescripcion
    txtCargoDescripcion = new TextField();
    txtCargoDescripcion.setCaption("Descripcion del Cargo");
    txtCargoDescripcion.setImmediate(false);
    txtCargoDescripcion.setWidth("250px");
    txtCargoDescripcion.setHeight("-1px");
    txtCargoDescripcion.setRequired(true);
    txtCargoDescripcion.setInputPrompt("Breve descripcion del Cargo que desempeña");
    verticalLayout_3.addComponent(txtCargoDescripcion);

    // horizontalLayout_2
    horizontalLayout_2 = buildHorizontalLayout_2();
    verticalLayout_3.addComponent(horizontalLayout_2);
    verticalLayout_3.setComponentAlignment(horizontalLayout_2, new Alignment(48));

    return verticalLayout_3;
  }
Ejemplo n.º 10
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;
  }
Ejemplo n.º 11
0
  @Override
  protected void updateLabels() {
    tabSheetClient
        .getTab(TAB_GENERAL)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.generalTab"));
    tabSheetClient
        .getTab(TAB_ADDRESS)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.addressTab"));
    tabSheetClient
        .getTab(TAB_SECURITY)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.securityTab"));
    tabSheetClient
        .getTab(TAB_ORGANIZATION)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.organizationTab"));
    tabSheetClient
        .getTab(TAB_APPLICATION)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.applicationTab"));
    tabSheetClient
        .getTab(TAB_ROL)
        .setCaption(
            getI18N()
                .getMessage(
                    "com.thingtrack.konekti.view.web.form.ClientViewForm.tabSheetClient.roleTab"));

    codeField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.codeField.caption"));
    nameField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.nameField.caption"));
    activeField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.activeField.caption"));
    vatField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.vatField.caption"));
    clientTypeField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.ClientViewForm.clientTypeField.caption"));
    clientGroupField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.ClientViewForm.clientGroupField.caption"));
    phoneField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.phoneField.caption"));
    faxField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.faxField.caption"));
    facebookIdField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.ClientViewForm.facebookIdField.caption"));
    mobileField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.mobileField.caption"));
    descriptionField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.ClientViewForm.descriptionField.caption"));
    commentField.setCaption(
        getI18N()
            .getMessage(
                "com.thingtrack.konekti.view.web.form.ClientViewForm.commentField.caption"));
    emailField.setCaption(
        getI18N()
            .getMessage("com.thingtrack.konekti.view.web.form.ClientViewForm.emailField.caption"));
  }
Ejemplo n.º 12
0
  @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;
  }