Examples of DateLabel


Examples of com.google.gwt.user.client.ui.DateLabel

    assertSame(widgetUi.myTreeItemCA, complexItem.getChild(0));
    assertSame(widgetUi.myTreeWidgetCB, complexItem.getChild(1).getWidget());
  }

  public void testDateLabel() {
    DateLabel p = widgetUi.myDateLabel;
    assertNotNull("DateLabel exists", p);
    p = widgetUi.myDateLabel2;
    assertNotNull("DateLabel exists", p);
    p = widgetUi.myDateLabel3;
    assertNotNull("DateLabel exists", p);
View Full Code Here

Examples of com.google.gwt.user.client.ui.DateLabel

         if (clazz == DateLabel.class) {
            DateTimeFormat format = (DateTimeFormat) attributes.get("format");

            if (format != null) {
               return new DateLabel(format);
            }

            String predefinedFormat = (String) attributes.get("predefinedFormat");
            if (predefinedFormat != null) {
               PredefinedFormat predef = PredefinedFormat.valueOf(predefinedFormat);
               return new DateLabel(DateTimeFormat.getFormat(predef));
            }

            String customFormat = (String) attributes.get("customFormat");
            if (customFormat != null) {
               return new DateLabel(DateTimeFormat.getFormat(customFormat));
            }

         }

         // unable to use custom constructor or is a subclass of DateLabel, so
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.basic.DateLabel

      @Override
      protected void populateItem(ListItem<Date> item) {
        Date day = item.getModelObject();
        Set<ArtifactVersionNotification> notifSet = DashboardNotificationListViewPanel.this.getModelObject().get(day);
       
        Label dayLabel = new DateLabel("day", Model.of(day), DatePattern.SHORT_DATE);
        if (notifSet == null) {
          dayLabel = new Label("day");
          notifSet = Sets.newHashSet();
        }
       
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.basic.DateLabel

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<ProjectVersion> item) {
        item.add(new ArtifactVersionTagPanel("version", BindingModel.of(item.getModel(), Binding.projectVersion().version())));
        item.add(new DateLabel("lastUpdateDate", BindingModel.of(item.getModel(), Binding.projectVersion().lastUpdateDate()),
            DatePattern.SHORT_DATE));
       
        // Changelog link
        item.add(new HideableExternalLink("changelogLink",
            BindingModel.of(item.getModel(), Binding.projectVersion().additionalInformation().changelogUrl().url())));
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.basic.DateLabel

    // Jumbotron
    //   >  Baseline
    add(new Label("baselineMainLabel", new StringResourceModel("home.baseline.main", new FollowingStatsModel()))
        .setEscapeModelStrings(false));
   
    add(new DateLabel("lastSyncDateLabel", Model.of(parameterService.getLastSynchronizationDate()), DatePattern.SHORT_DATE));
   
    // Statistics
    add(new StatisticsPanel("statistics"));
   
    // Trademarks
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.basic.DateLabel

    add(new Label("fullName", BindingModel.of(userModel, Binding.user().fullName())));
   
    add(new BooleanIcon("active", BindingModel.of(userModel, Binding.user().active())));
   
    // Dates
    add(new DateLabel("creationDate", BindingModel.of(userModel, Binding.user().creationDate()),
        DatePattern.SHORT_DATETIME));
    add(new DateLabel("lastLoginDate", BindingModel.of(userModel, Binding.user().lastLoginDate()),
        DatePattern.SHORT_DATETIME));
    add(new DateLabel("lastUpdateDate", BindingModel.of(userModel, Binding.user().lastUpdateDate()),
        DatePattern.SHORT_DATETIME));
    add(new Label("locale", new AbstractReadOnlyModel<String>() {
      private static final long serialVersionUID = 1L;

      @Override
View Full Code Here

Examples of fr.openwide.core.wicket.more.markup.html.basic.DateLabel

      private static final long serialVersionUID = 1L;

      @Override
      protected void populateItem(final ListItem<ArtifactVersion> item) {
        item.add(new ArtifactVersionTagPanel("version", BindingModel.of(item.getModel(), Binding.artifactVersion().version())));
        item.add(new DateLabel("lastUpdateDate", BindingModel.of(item.getModel(), Binding.artifactVersion().lastUpdateDate()),
            DatePattern.SHORT_DATE));
       
        // Version links
        item.add(new ArtifactVersionLinksPanel("links", item.getModel()));
       
View Full Code Here

Examples of org.apache.wicket.datetime.markup.html.basic.DateLabel

                    return RequestCycle.get().urlFor(new ResourceReference(YUIDateField.class, "calendar.gif"));
                }
            });
           
            if (displayTz) {
                DateLabel tzLabel = DateLabel.withConverter("timezone", model, new TimeZoneConverter() );
                fragment.add(tzLabel);
            }
            else {
                fragment.add( new Label("timezone", "").setVisible(false) );
            }
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.