charva.awt.util
public class DateEntryField extends JPanel implements KeyListener, FocusListener
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
DateEntryField(Dialog owner_) |
DateEntryField(Dialog owner_,
java.util.TimeZone zone_) |
DateEntryField(Frame owner_) |
DateEntryField(Frame owner_,
java.util.TimeZone zone_) |
Modifier and Type | Method and Description |
---|---|
void |
focusGained(FocusEvent fe_) |
void |
focusLost(FocusEvent e_) |
int |
getDay()
Get the day-of-month value.
|
int |
getMonth()
Get the month value (between 1 and 12)
|
int |
getYear()
Get the year value.
|
void |
keyPressed(KeyEvent e_)
KEY_PRESSED events are fired when any key (including a function
key and cursor key) is pressed while the component has keyboard
input focus.
|
void |
keyReleased(KeyEvent e_)
This is never called.
|
void |
keyTyped(KeyEvent e_)
KEY_TYPED events are fired when a key representing a valid text
character (not a function key or cursor key) is pressed.
|
void |
set()
Set the fields to the current time.
|
void |
setDay(int day_) |
void |
setMonth(int month_)
Set the month field
|
void |
setYear(int year_)
Set the year field
|
debug, draw, getBorder, getInsets, setBorder, toString
add, add, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getSize, getWidth, invalidate, isFocusTraversable, isValid, minimumSize, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setBounds, setBounds, setBounds, setFocus, setForeground, setHeight, setLayout, setSize, setSize, setWidth, validate
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isRecursivelyVisible, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColor
public DateEntryField(Frame owner_)
public DateEntryField(Frame owner_, java.util.TimeZone zone_)
public DateEntryField(Dialog owner_)
public DateEntryField(Dialog owner_, java.util.TimeZone zone_)
public void keyPressed(KeyEvent e_)
KeyListener
keyPressed
in interface KeyListener
public void keyReleased(KeyEvent e_)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e_)
KeyListener
keyTyped
in interface KeyListener
public void focusGained(FocusEvent fe_)
focusGained
in interface FocusListener
public void focusLost(FocusEvent e_)
focusLost
in interface FocusListener
public void set()
public void setYear(int year_)
public void setMonth(int month_)
public void setDay(int day_)
public int getYear()
public int getMonth()
public int getDay()