Package org.xrace.model

Examples of org.xrace.model.Message


    {
      private static final long serialVersionUID = 1L;

      public Page getPage()
      {
        Message message = new Message();
        return new MessageUpdatePage(message, true);
      }

      public Class getPageIdentity()
      {
View Full Code Here


  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Message message = (Message) item.getModelObject();

    item.add(new Label("id", new PropertyModel(message, "id")));
    item.add(new Label("titreFrancais", new PropertyModel(message,
        "titreFrancais")));
    item
        .add(new Label("beginDate", new PropertyModel(message,
            "beginDate")));
    item.add(new Label("endDate", new PropertyModel(message, "endDate")));

    if (message.getIspublic())
    {
      item
          .add(new Label("public", getLocalizer().getString("Oui",
              this)));
    }
    else
    {
      item
          .add(new Label("public", getLocalizer().getString("Non",
              this)));
    }

    if (message.getIsprivate())
    {
      item
          .add(new Label("private", getLocalizer().getString("Oui",
              this)));
    }
    else
    {
      item
          .add(new Label("private", getLocalizer().getString("Non",
              this)));
    }

    if (message.getIsprivate())
    {
      item
          .add(new Label("active", getLocalizer().getString("Oui",
              this)));
    }
View Full Code Here

  }

  @Override
  protected void populateItem(final ListItem item)
  {
    final Message message = (Message) item.getModelObject();

    if (getSession().getLocale().getLanguage().equals(
        Locale.ENGLISH.getLanguage()))
    {
      item.add(new Label("titre", new PropertyModel(message,
View Full Code Here

TOP

Related Classes of org.xrace.model.Message

Copyright © 2018 www.massapicom. 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.