Field Summary |
|
final protected static int | AM_PM Constant indicating the am/pm indicators, used in the process of
current focus tracking inside the date editor. |
final protected static int | CALENDAR Constant indicating the calendar, used in the process of current
focus tracking inside the date editor. |
protected static int[] | HOURS Static array holding the hour values. |
final protected static int | HOURS_POPUP Constant indicating the hour popup, used in the process of current
focus tracking inside the date editor. |
protected static int[] | MINUTES Static array holding the minute values. |
final protected static int | MINUTES_POPUP Constant indicating the minutes popup, used in the process of current
focus tracking inside the date editor. |
protected static String[] | MONTHS Static array holding the localized equivalent of month names. |
final protected static int | MONTH_POPUP Constant indicating the month popup, used in the process of current
focus tracking inside the date editor. |
final int | PRESS_OUT_OF_BOUNDS |
final protected static int | TRIG_TABLE Table of trigonometric functions, in 16.16 fixed point. |
protected static String[] | YEARS Static array holding the year values. |
final protected static int | YEAR_POPUP Constant indicating the year popup, used in the process of current
focus tracking inside the date editor. |
protected boolean | amHilighted Indicates whether am or pm is currently highlighted. |
protected boolean | amSelected Indicates whether am or pm is currently selected. |
protected int | calendarBottomLimit Indicates calendar's bottom limit, used in traversal calculations. |
protected int | calendarRightLimit Indicates calendar's right limit, used in traversal calculations. |
protected int | calendarTopLimit Indicates calendar's top limit, used in traversal calculations. |
protected Command | cancel Special command to cancel any changes and close the date editor
without any impact on the datefield that triggered this editor. |
protected Command[] | commands The command array that holds both the commands associated with
the date editor. |
protected int | dateHilightX Indicates x co-ordinate of previously highlighted date, used in
traversal calculations. |
protected int | dateHilightY Indicates y co-ordinate of previously highlighted date, used in
traversal calculations. |
protected int | dayOffset The day offset. |
protected Calendar | editDate The date currently being edited. |
protected int | elementHeight Height of the element within the popup in its closed state. |
protected int | elementWidth Width of the element within the popup in its closed state. |
protected int | focusOn Keeps track of the currently focused item inside the date editor. |
protected int | hilightedDate Currently highlighted date in the calendar. |
protected DEPopupLayer | hoursPopup The sub-popup layer used to select hour value. |
protected boolean | initialized Whether date field that triggered this date editor was initialized
or not. |
protected int | lastDay The last day of the month. |
protected DateFieldLFImpl | lf The DateFieldLFImpl that triggered this date editor. |
protected DEPopupLayer | minutesPopup The sub-popup layer used to select minutes value. |
protected int | mode The mode of the date field, that triggered this date editor. |
protected DEPopupLayer | monthPopup The sub-popup layer used to select month value. |
protected int | nextX The location x-coordinate, used to calculate where to draw
the next component. |
protected int | nextY The location y-coordinate, used to calculate where to draw
the next component. |
protected int | popupHeight Height of a sub-popup in its closed state. |
protected int | popupWidth Width of a sub-popup in its closed state. |
protected int | selectedDate Currently selected date in the calendar. |
protected Command | set Special command to set/save the changes done in the editor into the
datefield that triggered this editor and close the editor. |
protected int | timeComponentsOffset The location offset to draw time components used for DateField.TIME
and DateField.DATE_TIME modes. |
protected DEPopupLayer | yearPopup The sub-popup layer used to select year value. |
Method Summary |
|
public void | callSizeChanged() |
public void | commandAction(Command cmd, Displayable s) Handle a command action. |
protected static int | cos(int angle) Utility method to return the cosine of an angle. |
protected int | createYearStrings(int startYear) Recreates years string given a start year. |
protected int | daysInMonth(int month, int year) Utility method to calculate the number of days
in a month. |
protected void | drawDateComponents(Graphics g) Draw the date components. |
protected void | drawHoursComponent(Graphics g) Draws hours popup content. |
protected void | drawMinutesComponent(Graphics g) Draws minutes popup content. |
protected void | drawMonthComponent(Graphics g) Draws month popup content. |
protected void | drawTimeComponents(Graphics g) Draw the time components. |
protected void | drawYearComonent(Graphics g) Draws year popup content. |
void | hideAllPopups() Hide all sub-popups triggered by this date editor. |
public void | init() |
public boolean | isPopupOpen() |
public boolean | isSizeChanged() |
public boolean | keyInput(int type, int code) Handles key input to the popup layer. |
protected void | paintAmPm(Graphics g) Paint the am/pm indicators. |
public void | paintBackground(Graphics g) Paints the background of the date editor layer. |
public void | paintBody(Graphics g) Paints the body (open state) of the date editor layer. |
protected void | paintCalendar(Graphics g) Paint the Calendar. |
protected void | paintTime(Graphics g) Paint the clock. |
public boolean | pointerInput(int type, int x, int y) Handles pointer input to the popup layer. |
protected void | populateDateComponents() Populate the date components. |
protected void | populateTimeComponents() Populate the time components. |
protected boolean | selectFired() Called when select key is fired, to take further action on it,
based on where the focus is on the date editor. |
protected void | setDayOffset() Set the day offset. |
protected void | setHoursPopupLocation() Set hours popup location using upper left corner coordinate of the
DateEditor layer and relative coordinates of the popup anchor. |
public void | setLocation(int x, int y) Sets the location of the popup layer. |
protected void | setMinutesPopupLocation() Set minutes popup location using upper left corner coordinate of the
DateEditor layer and relative coordinates of the popup anchor. |
protected void | setMonthPopupLocation() Set month popup location using upper left corner coordinate of the
DateEditor layer and relative coordinates of the popup anchor. |
protected void | setPopupLocation(DEPopupLayer popup, Image image, int[] bounds) |
public void | setPopupOpen(boolean popUpOpen) |
public void | setSizeChanged() |
protected void | setYearPopupLocation() Set year popup location using upper left corner coordinate of the
DateEditor layer and relative coordinates of the popup anchor. |
void | show() Show the date editor popup. |
protected static int | sin(int angle) Utility method to return the sin of an angle. |
protected boolean | traverseAmPm(int code) Handle internal traversal between the am/pm indicators. |
protected boolean | traverseCalendar(int code) Handle internal traversal within the calendar. |
protected boolean | traverseEditor(int code) Handles internal traversal within the date editor. |