Class DayRangePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DayRangePanel extends JPanel
See Also:
  • Constructor Details

    • DayRangePanel

      public DayRangePanel()
      Create a selectable day range panel for CustomerCenter. This panel contains a selectable day of the week panel at north, a selectable day of the month at Center and a selectable month of the year at east.
  • Method Details

    • setData

      public void setData(com.portal.pricing.DayRange dr)
      Set the data to the SelectableGrid control.
      Parameters:
      dr - the day range.
    • setData

      public void setData(com.portal.pricing.DateRange dateRange)
      Set the DateRange which should contains the DayRange array. The getCoveredDays() will be call and the value will be set to the read only day range panel.
      Parameters:
      dateRange - the date ranges contain the DayRange array.
    • getData

      public com.portal.pricing.DayRange getData()
      Get the DayRange data.
      Returns:
      the DayRange.
    • setReadOnly

      public void setReadOnly(boolean b)
      Set the read only state for the panel
      Parameters:
      b - true for readonly, false for editable.
    • getDataDOW

      public int getDataDOW()
      Get the selection state of the cells from the Day of the Week subpanel.
      Returns:
      the selection state of the whole cells array in an int. The return value is the bits representation of the selection state of the cells. The least significant bit represent the first cell and so on.
    • getDataDOM

      public int getDataDOM()
      Get the selection state of the cells from the Day of the Month subpanel.
      Returns:
      the selection state of the whole cells array in an int. The return value is the bits representation of the selection state of the cells. The least significant bit represent the first cell and so on.
    • getDataMOY

      public int getDataMOY()
      Get the selection state of the cells from the Month of the Year subpanel.
      Returns:
      the selection state of the whole cells array in an int. The return value is the bits representation of the selection state of the cells. The least significant bit represent the first cell and so on.
    • clearSelection

      public void clearSelection()
      Clear all selection for all selectable grids.