Package org.richfaces.model

Examples of org.richfaces.model.CalendarDataModel


  if (this._dataModel != null) {
    return this._dataModel;
  }
  ValueExpression ve = getValueExpression("dataModel");
  if (ve != null) {
      CalendarDataModel value = null;
     
      try {
      value = (CalendarDataModel) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here


  if (this._dataModel != null) {
    return this._dataModel;
  }
  ValueExpression ve = getValueExpression("dataModel");
  if (ve != null) {
      CalendarDataModel value = null;
     
      try {
      value = (CalendarDataModel) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  }

  public Object getTooltip(Date date) {

    CalendarDataModel calendarDM = (CalendarDataModel) getDataModel();
    if (calendarDM != null) {
      return calendarDM.getToolTip(date);
    } else {
      return null;
    }

  }
View Full Code Here

  }

  public Object getPreload() {
    Date[] preloadDateRange = getPreloadDateRange();
    if (preloadDateRange != null && preloadDateRange.length != 0) {
      CalendarDataModel calendarDataModel = (CalendarDataModel) getDataModel();
      if (calendarDataModel != null) {
        CalendarDataModelItem[] calendarDataModelItems = calendarDataModel
            .getData(preloadDateRange);

        HashMap <String, Object> args = new HashMap<String,Object>();
        args.put("startDate", CalendarRendererBase.formatDate(preloadDateRange[0]));
        args.put("days", calendarDataModelItems);
View Full Code Here

  }

  public Object getTooltip(Date date) {

    CalendarDataModel calendarDM = (CalendarDataModel) getDataModel();
    if (calendarDM != null) {
      return calendarDM.getToolTip(date);
    } else {
      return null;
    }

  }
View Full Code Here

  }

  public Object getPreload() {
    Date[] preloadDateRange = getPreloadDateRange();
    if (preloadDateRange != null && preloadDateRange.length != 0) {
      CalendarDataModel calendarDataModel = (CalendarDataModel) getDataModel();
      if (calendarDataModel != null) {
        CalendarDataModelItem[] calendarDataModelItems = calendarDataModel
            .getData(preloadDateRange);

        HashMap args = new HashMap();
        args.put("startDate", CalendarRendererBase
            .formatDate(preloadDateRange[0]));
View Full Code Here

  if (this._dataModel != null) {
    return this._dataModel;
  }
  ValueExpression ve = getValueExpression("dataModel");
  if (ve != null) {
      CalendarDataModel value = null;
     
      try {
      value = (CalendarDataModel) ve.getValue(getFacesContext().getELContext());
      } catch (ELException e) {
      throw new FacesException(e);
View Full Code Here

  }

  public Object getTooltip(Date date) {

    CalendarDataModel calendarDM = (CalendarDataModel) getDataModel();
    if (calendarDM != null) {
      return calendarDM.getToolTip(date);
    } else {
      return null;
    }

  }
View Full Code Here

  }

  public Object getPreload() {
    Date[] preloadDateRange = getPreloadDateRange();
    if (preloadDateRange != null && preloadDateRange.length != 0) {
      CalendarDataModel calendarDataModel = (CalendarDataModel) getDataModel();
      if (calendarDataModel != null) {
        CalendarDataModelItem[] calendarDataModelItems = calendarDataModel
            .getData(preloadDateRange);

        HashMap <String, Object> args = new HashMap<String,Object>();
        args.put("startDate", CalendarRendererBase.formatDate(preloadDateRange[0]));
        args.put("days", calendarDataModelItems);
View Full Code Here

    }
  }

  public Object getTooltip(Date date) {

    CalendarDataModel calendarDM = (CalendarDataModel) getDataModel();
    if (calendarDM != null) {
      return calendarDM.getToolTip(date);
    } else {
      return null;
    }

  }
View Full Code Here

TOP

Related Classes of org.richfaces.model.CalendarDataModel

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.