Examples of DateField


Examples of com.citytechinc.cq.component.annotations.widgets.DateField

    super(parameters);
  }

  public DialogElement make() throws ClassNotFoundException {

    DateField dateFieldAnnotation = getAnnotation(DateField.class);

    String name = getNameForField();
    String fieldName = getFieldNameForField();
    String fieldLabel = getFieldLabelForField();
    String fieldDescription = getFieldDescriptionForField();
View Full Code Here

Examples of com.draagon.meta.field.DateField

    a.setName( "id" );
    MetaField b = new StringField();
    b.setName( "name" );
    MetaField c = new IntegerField();
    c.setName( "value" );
    MetaField d = new DateField();
    d.setName( "time" );
    mc.addMetaField( a );
    mc.addMetaField( b );
    mc.addMetaField( c );
    mc.addMetaField( d );
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.DateField

    LayoutContainer layoutContainer_7 = new LayoutContainer();
    FormLayout fl_layoutContainer_7 = new FormLayout();
    fl_layoutContainer_7.setLabelWidth(50);
    layoutContainer_7.setLayout(fl_layoutContainer_7);
    DateField dgdPresenteDate = new DateField();
    dgdPresenteDate.setId("INFORMATIONAL_PANEL_DGDPRESENTEDATE_ID");
    dgdPresenteDate.setName(FicheStDto.DATEDGDPRESENTE);
    dgdPresenteDate.setWidth(100);
    layoutContainer_7.add(dgdPresenteDate, new FormData("90%"));
    dgdPresenteDate.setFieldLabel(messages.date());
    layoutContainer_6.add(layoutContainer_7);
    conditionFieldSet.add(layoutContainer_6);
    conditionFieldSet.setStyleAttribute("height", HEIGHT_1);
    conditionFieldSet.setHeading(messages.conditions());
    informationFieldSet.add(conditionFieldSet, layoutData);

    HTML space0 = new HTML(SPACES_3);
    TableData tableData2 = new TableData();
    tableData2.setWidth(COLUMNS_WIDTH[1]);
    informationFieldSet.add(space0, tableData2);

    FieldSet prestationsFieldSet = new FieldSet();
    if(RootPanel.get().getOffsetWidth() <= 1900){//Constants.MIN_WIDTH){
      panel3 -= 50;
    }
    prestationsFieldSet.setWidth(panel2);

    prestationsFieldSet.setStyleAttribute("height", HEIGHT_1);
    FormLayout fl_prestationsFieldSet = new FormLayout();
    fl_prestationsFieldSet.setLabelWidth(120);
    prestationsFieldSet.setLayout(fl_prestationsFieldSet);

    NumberField pilotage = addNumberField(
        prestationsFieldSet, messages.pilotage(), FicheStDto.PRESTAPILOTAGE, "INFORMATIONAL_PANEL_PILOTAGE_ID", true);

    NumberField assurances = addNumberField(
        prestationsFieldSet, messages.assurances(), FicheStDto.PRESTAASSURANCES,
        "INFORMATIONAL_PANEL_ASSURANCES_ID", true);

    prorata = addNumberField(
        prestationsFieldSet, messages.prorata(), FicheStDto.PRESTA_PRORATA, "INFORMATIONAL_PANEL_PRORATE_ID", true);
    prorata.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(6, prorata.getValue().doubleValue()));
      }
    });

    canto = addNumberField(prestationsFieldSet, messages.canto(), FicheStDto.PRESTACANTO, "INFORMATIONAL_PANEL_CANTO_ID", false);
    canto.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(0, canto.getValue().doubleValue()));
      }
    });

    badge = addNumberField(prestationsFieldSet, messages.badge(), FicheStDto.PRESTABADGE, "INFORMATIONAL_PANEL_BADGE_ID", false);
    badge.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(1, badge.getValue().doubleValue()));
      }
    });

    grue = addNumberField(prestationsFieldSet, messages.grue(), FicheStDto.PRESTAGRUE, "INFORMATIONAL_PANEL_GRUE_ID", false);
    grue.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(2, grue.getValue().doubleValue()));
      }
    });

    lift = addNumberField(prestationsFieldSet, messages.lift(), FicheStDto.PRESTALIFT, "INFORMATIONAL_PANEL_LIFT_ID", false);
    lift.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(3, lift.getValue().doubleValue()));
      }
    });

    benne = addNumberField(prestationsFieldSet, messages.benne(), FicheStDto.PRESTABENNE, "INFORMATIONAL_PANEL_BENNE_ID", false);
    benne.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(4, benne.getValue().doubleValue()));
      }
    });

    netoyage = addNumberField(
        prestationsFieldSet, messages.nettoyage(), FicheStDto.PRESTANETTOYAGE, "INFORMATIONAL_PANEL_NETOYAGE_ID", false);
    netoyage.addListener(Events.KeyUp, new KeyListener() {
      @Override
      public void handleEvent(ComponentEvent e) {
        bus.fireEvent(new PrestationEvent(5, netoyage.getValue().doubleValue()));
      }
    });

    TableData tableData6 = new TableData();
    tableData6.setVerticalAlign(VerticalAlignment.MIDDLE);
    tableData6.setWidth(COLUMNS_WIDTH[2]);
    prestationsFieldSet.setHeading(messages.prestations());
    informationFieldSet.add(prestationsFieldSet, tableData6);

    HTML space1 = new HTML(SPACES_3);
    TableData tableData7 = new TableData();
    tableData7.setWidth(COLUMNS_WIDTH[3]);
    informationFieldSet.add(space1, tableData7);

    FieldSet informationComplementaries = new FieldSet();
    informationComplementaries.setWidth(panel3);
    TableLayout tl_informationComplementaries = new TableLayout(1);
    tl_informationComplementaries.setWidth("96%");
    informationComplementaries.setLayout(tl_informationComplementaries);

    Map<Integer,String> mapConducteurdetravaux = navigation.getContext().getMapConducteurdetravaux();
    String conducteur_ = mapConducteurdetravaux.get(ficheStId_) !=null ? mapConducteurdetravaux.get(ficheStId_) : "";
    final LabelField conducteur = new LabelField(conducteur_);
    bus.addHandler(ConducteurEvent.TYPE, new ConducteurHandler() {   
      @Override
      public void onChangeConducteur(ConducteurEvent conducteurEvent) {
        conducteur.setValue(conducteurEvent.getConducter());
      }
    });
    conducteur.setId("INFORMATIONAL_PANEL_CONDUCTEUR_ID");
    conducteur.setFieldLabel(messages.conducteur() + ":");

    LayoutContainer layoutContainer_8 = new LayoutContainer();
    FormLayout fl_layoutContainer_8 = new FormLayout();
    fl_layoutContainer_8.setLabelWidth(165);
    layoutContainer_8.setLayout(fl_layoutContainer_8);
    layoutContainer_8.add(conducteur, new FormData("100%"));

    DateField dateOfMarket = new DateField();
    dateOfMarket.setName(FicheStDto.DATEMARCHEBASE);
    dateOfMarket.setId("INFORMATIONAL_PANEL_DATEOFMARKET_ID");
    layoutContainer_8.add(dateOfMarket, new FormData("50%"));
    dateOfMarket.setFieldLabel(messages.dateOfMarket());
    TableData layoutData5 = new TableData();
    layoutData5.setWidth("50%");
    informationComplementaries.add(layoutContainer_8, layoutData5);

    LayoutContainer layoutContainer_3 = new LayoutContainer();
    layoutContainer_3.setHeight("315px");
    layoutContainer_3.setLayout(new RowLayout(Orientation.VERTICAL));
    layoutContainer_3.setStyleAttribute("height", HEIGHT_1);
    layoutContainer_3.add(informationComplementaries);
    informationComplementaries.setHeight("85px");
    TableData layoutData3 = new TableData();
    layoutData3.setVerticalAlign(VerticalAlignment.MIDDLE);
    layoutData3.setWidth(COLUMNS_WIDTH[4]);

    FieldSet cautionFieldset = new FieldSet();
    cautionFieldset.setLayout(new RowLayout(Orientation.VERTICAL));

    layoutContainer_3.add(cautionFieldset);
    cautionFieldset.setHeight("205px");
    cautionFieldset.setHeading(messages.cautionFournie());
    informationFieldSet.add(layoutContainer_3, layoutData3);
    informationComplementaries.setHeading(messages.informationComplementaries());
   
    lc1.setId("informationFieldSet");
    prestationsFieldSet.setId("prestationsFieldSet");
    conditionFieldSet.setId("conditionFieldSet");
    informationComplementaries.setId("informationComplementaries");

    formPanel.add(new HTML("<br>"));
    formPanel.add(informationFieldSet);

    int[] columnWidth5 = { DELETE_BUTTON_WIDTH, 150, 160 };
    GridCellRenderer<AbstractDto> dateRenderer = createDateRendererWithPermision(columnWidth5[1] - PADDING_2,role,user);//25);
    GridCellRenderer<AbstractDto> numberRenderer = createNumberRendererWithPermission(columnWidth5[2] - PADDING,role,user);//25);

    List<ColumnConfig> configs = new ArrayList<ColumnConfig>();

    ColumnConfig column1 = new ColumnConfig();
    column1.setId(CautionFournieDto.ID);
    column1.setAlignment(HorizontalAlignment.CENTER);
    column1.setMenuDisabled(true);
    column1.setHeader(messages.del());
    column1.setWidth(columnWidth5[0]);
    column1.setRenderer(createDeleteButtonRenderer());
    configs.add(column1);

    ColumnConfig column2 = new ColumnConfig();
    column2.setId(CautionFournieDto.DATE);
    column2.setMenuDisabled(true);
    column2.setHeader(messages.date());
    column2.setWidth(columnWidth5[1]);
    column2.setDateTimeFormat(DateTimeFormat.getFormat(DATE_FORMAT));
    configs.add(column2);
    column2.setRenderer(dateRenderer);

    ColumnConfig column3 = new ColumnConfig();
    column3.setId(CautionFournieDto.AMOUNT);
    column3.setAlignment(HorizontalAlignment.RIGHT);
    column3.setMenuDisabled(true);
    column3.setHeader(messages.amount());
    column3.setWidth(columnWidth5[2]);
    column3.setNumberFormat(NumberFormat.getFormat(NUMBER_FORMAT));
    NumberField numberField = createNumberField(null);
    column3.setEditor(new CellEditor(numberField));
    column3.setRenderer(numberRenderer);
    configs.add(column3);

    ColumnModel cm = new ColumnModel(configs);

    ListStore<CautionFournieDto> data = new ListStore<CautionFournieDto>();
    cautionFournieGrid = new CustomEditorGrid<CautionFournieDto>(data, cm);
    cautionFieldset.add(cautionFournieGrid, new RowData(Style.DEFAULT, 145.0, new Margins()));
   
    cautionFournieGrid.addListener(Events.BeforeEdit, new Listener<GridEvent<CautionFournieDto>>() {
      public void handleEvent(final GridEvent<CautionFournieDto> be) {
        if((user.getBadmin() != null && user.getBadmin()) ||
            (role !=null && role.getBcontributeur()!=null && role.getBcontributeur())){
          be.setCancelled(false);
        }else{
          be.setCancelled(true);
        }
      }
    })

    LayoutContainer layoutContainer_9 = new LayoutContainer();
    layoutContainer_9.setLayout(new TableLayout(1));

    FlexTable flexTable = new FlexTable();
    layoutContainer_9.add(flexTable);
    HTML space6 = new HTML(SPACES_4);
    flexTable.setWidget(0, 0, space6);
    addRow = new HTML("<img src='./images/ajouter.png'/> " + messages.addRow(), false);
    addRow.setStyleName("actionHTML2");
    addRow.addClickHandler(new ClickHandler() {
      @Override
      public void onClick(ClickEvent event) {
        showAddDialog();
      }

      private void showAddDialog() {
        Dialog dialog = new Dialog();
        dialog.setHeading(messages.titlePopup());
        dialog.setLayout(new BorderLayout());
        dialog.setWidth(450);
        dialog.setHeight(180);
        dialog.setBodyBorder(false);
        dialog.setHideOnButtonClick(true);
        dialog.setButtons(Dialog.OKCANCEL);
        dialog.setButtonAlign(HorizontalAlignment.CENTER);
        dialog.setScrollMode(Scroll.AUTO);
        dialog.setModal(true);
        dialog.setBlinkModal(true);
        Button cancelButton = dialog.getButtonById(Dialog.CANCEL);
        cancelButton.setText(messages.cancel());
        Button okButton = dialog.getButtonById(Dialog.OK);
        okButton.setText(messages.ok());

        final AddCautionFournieForm addCautionFournieForm = new AddCautionFournieForm();
        dialog.add(addCautionFournieForm, new BorderLayoutData(LayoutRegion.CENTER));

        okButton.addSelectionListener(new SelectionListener<ButtonEvent>() {
          public void componentSelected(ButtonEvent ce) {
            CautionFournieDto model = addCautionFournieForm.getDataModel();
            cautionFournieGrid.getStore().add(model);
          }
        });

        dialog.show();
      }
    });

    flexTable.setWidget(0, 1, addRow);
    cautionFieldset.add(layoutContainer_9);

    mainFieldSet = new CustomFieldSet();
    mainFieldSet.setHeading(messages.generalInformation());
    mainFieldSet.add(formPanel);
    add(mainFieldSet);

    //Set IDs for applying CSS
    layoutContainer_9.setId("layoutContainer_9");

    //Set background color to green
    setDefaultBackgroundColor(lc1);
    setDefaultBackgroundColor(layoutContainer_0);
    setDefaultBackgroundColor(layoutContainer_1);
    setDefaultBackgroundColor(layoutContainer_2);
    setDefaultBackgroundColor(prestationsFieldSet);
    setDefaultBackgroundColor(conditionFieldSet);
    setDefaultBackgroundColor(layoutContainer_4);
    setDefaultBackgroundColor(informationComplementaries);
    setDefaultBackgroundColor(cautionFieldset);
    setDefaultBackgroundColor(layoutContainer_9);
    setDefaultBackgroundColor(informationFieldSet);
    setDefaultBackgroundColor(mainFieldSet);
     
    if((user.getBadmin() != null && user.getBadmin()) ||
        (role.getBcontributeur()!=null && role.getBcontributeur())){
      //Information General
      societe.enable();
      lot.enable();
      lotType.enable();
      idSiTravaux.enable();
      objectif.enable();
     
      //arrPrestation
      pilotage.enable();
      assurances.enable();
      prorata.enable();
      canto.enable();
      badge.enable();
      grue.enable();
      lift.enable();
      benne.enable();
      netoyage.enable();
     
      //arrCondition
      payment.enable();
      rg.enable();
      decennaleNecessaire.enable();
      demandeDagrement.enable();
      dgdPresente.enable();
      dgdPresenteDate.enable();
     
      //arrCommemlaire
      conducteur.enable();
      dateOfMarket.enable();
      addRow.setVisible(true);
      cautionFournieGrid.getColumnModel().setHidden(0, false);
    }
    else{
      //Information General
      societe.disable();
      lot.disable();
      lotType.disable();
      idSiTravaux.disable();
      objectif.disable();
     
      //arrPrestation
      pilotage.disable();
      assurances.disable();
      prorata.disable();
      canto.disable();
      badge.disable();
      grue.disable();
      lift.disable();
      benne.disable();
      netoyage.disable();
     
      //arrCondition
      payment.disable();
      rg.disable();
      decennaleNecessaire.disable();
      demandeDagrement.disable();
      dgdPresente.disable();
      dgdPresenteDate.disable();
     
      //arrCommemlaire
      conducteur.disable();
      dateOfMarket.disable();
      addRow.setVisible(false);
      cautionFournieGrid.getColumnModel().setHidden(0, true);
    }
  }
View Full Code Here

Examples of com.gwtext.client.widgets.form.DateField

    this.to = new TextField( TextProvider.get().extended_search_panel_to(), SearchFields.TO.name(), 150 );
    this.cc = new TextField( TextProvider.get().extended_search_panel_cc(), SearchFields.CC.name(), 150 );
    this.subject = new TextField( TextProvider.get().extended_search_panel_subject(), SearchFields.SUBJECT.name(),
        150 );
    this.content = new TextField( TextProvider.get().extended_search_panel_body(), SearchFields.CONTENT.name(), 400 );
    this.dateFrom = new DateField( TextProvider.get().extended_search_panel_date_from(),
        SearchFields.DATE_FROM.name(), 100 );
    this.dateFrom.setFormat( TextProvider.get().extended_search_panel_date_format() );
    this.dateTo = new DateField( TextProvider.get().extended_search_panel_date_to(), SearchFields.DATE_TO.name(),
        100 );
    this.dateTo.setFormat( TextProvider.get().extended_search_panel_date_format() );

    FieldSet fieldSet = new FieldSet( TextProvider.get().extended_search_panel_fieldset() );
    fieldSet.setLayout( new TableLayout( 3 ) );
View Full Code Here

Examples of com.ibm.sbt.services.client.connections.activities.DateField

        attribute("hidden", field.isHidden()));
      if (field.hasPosition()) {
        element.setAttribute("position", "" + field.getPosition());
      }
      if (field instanceof DateField) {
        DateField dateField = (DateField)field;
        addText(element, DateSerializer.toString(dateFormat, dateField.getDate()));
      } else if (field instanceof FileField) {
        FileField fileField = (FileField)field;
        if (fileField.getEditMediaLink() != null) {
          Element link = element(Namespace.ATOM.getUrl(), "link",
              attribute("href", fileField.getEditMediaLink().getHref()),
View Full Code Here

Examples of com.log4jviewer.logfile.fields.DateField

                } else {
                    dateFormatString = dOpt;
                }
            }

            logField = new DateField(LogFieldName.DATE, leftAlign, rightAlign, dateFormatString);
            break;

        case 'F':
            logField = new NamedField(LogFieldName.FILE, leftAlign, rightAlign, 2);
            break;
View Full Code Here

Examples of com.moneychanger.ui.custom.DateField

    // End of variables declaration//GEN-END:variables
    DateField dateField;

    private void initDateComponent() {

        dateField = new DateField();
        dateField.setBounds(0, -10, 250, 30);
        jPanel1.add(dateField);
        jPanel1.setBorder(null);
        repaint();
        SwingUtilities.invokeLater(new Runnable() {
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.form.DateField

      });
    }
  });
  private VerticalLayoutContainer container=new VerticalLayoutContainer();
  public OwnerJobTrend(){
    date=new DateField();
    date.setEditable(false);
    date.setAllowBlank(false);
    date.setValue(new Date());
   
    HorizontalLayoutContainer form=new HorizontalLayoutContainer();
View Full Code Here

Examples of com.vaadin.ui.DateField

        HorizontalLayout row = new HorizontalLayout();
        row.addStyleName("wrapping");
        row.setSpacing(true);
        addComponent(row);

        DateField date = new DateField("Default resolution");
        setDate(date);
        row.addComponent(date);

        date = new DateField("Error");
        setDate(date);
        date.setComponentError(new UserError("Fix it, now!"));
        row.addComponent(date);

        date = new DateField("Error, borderless");
        setDate(date);
        date.setComponentError(new UserError("Fix it, now!"));
        date.addStyleName("borderless");
        row.addComponent(date);

        CssLayout group = new CssLayout();
        group.setCaption("Grouped with a Button");
        group.addStyleName("v-component-group");
        row.addComponent(group);

        final DateField date2 = new DateField();
        group.addComponent(date2);

        Button today = new Button("Today", new ClickListener() {
            @Override
            public void buttonClick(ClickEvent event) {
                date2.setValue(new Date());
            }
        });
        group.addComponent(today);

        date = new DateField("Default resolution, explicit size");
        setDate(date);
        row.addComponent(date);
        date.setWidth("260px");
        date.setHeight("60px");

        date = new DateField("Second resolution");
        setDate(date);
        date.setResolution(Resolution.SECOND);
        row.addComponent(date);

        date = new DateField("Minute resolution");
        setDate(date);
        date.setResolution(Resolution.MINUTE);
        row.addComponent(date);

        date = new DateField("Hour resolution");
        setDate(date);
        date.setResolution(Resolution.HOUR);
        row.addComponent(date);

        date = new DateField("Disabled");
        setDate(date);
        date.setResolution(Resolution.HOUR);
        date.setEnabled(false);
        row.addComponent(date);

        date = new DateField("Day resolution");
        setDate(date);
        date.setResolution(Resolution.DAY);
        row.addComponent(date);

        date = new DateField("Month resolution");
        setDate(date);
        date.setResolution(Resolution.MONTH);
        row.addComponent(date);

        date = new DateField("Year resolution");
        setDate(date);
        date.setResolution(Resolution.YEAR);
        row.addComponent(date);

        date = new DateField("Custom color");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("color1");
        row.addComponent(date);

        date = new DateField("Custom color");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("color2");
        row.addComponent(date);

        date = new DateField("Custom color");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("color3");
        row.addComponent(date);

        date = new DateField("Small");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("small");
        row.addComponent(date);

        date = new DateField("Large");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("large");
        row.addComponent(date);

        date = new DateField("Borderless");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("borderless");
        row.addComponent(date);

        date = new DateField("Week numbers");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.setLocale(new Locale("fi", "fi"));
        date.setShowISOWeekNumbers(true);
        row.addComponent(date);

        date = new DateField("US locale");
        setDate(date);
        date.setResolution(Resolution.SECOND);
        date.setLocale(new Locale("en", "US"));
        row.addComponent(date);

        date = new DateField("Custom format");
        setDate(date);
        date.setDateFormat("E dd/MM/yyyy");
        row.addComponent(date);

        date = new DateField("Tiny");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("tiny");
        row.addComponent(date);

        date = new DateField("Huge");
        setDate(date);
        date.setResolution(Resolution.DAY);
        date.addStyleName("huge");
        row.addComponent(date);
View Full Code Here

Examples of com.vaadin.ui.DateField

        Item i = t.addItem("1");
        i.getItemProperty(P1).setValue(new TextField("abc"));
        i.getItemProperty(P2).setValue(new Label("label"));
        Item i2 = t.addItem("2");
        i2.getItemProperty(P1).setValue(new Button("def"));
        i2.getItemProperty(P2).setValue(new DateField());

        layout.addComponent(t);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.