Package jexer
Class TCalendar
- java.lang.Object
-
- jexer.TWidget
-
- jexer.TCalendar
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw()
Draw the combobox down arrow.java.util.Calendar
getValue()
Get calendar value.void
onKeypress(TKeypressEvent keypress)
Handle keystrokes.void
onMouseDoubleClick(TMouseEvent mouse)
Handle mouse double click.void
onMouseDown(TMouseEvent mouse)
Handle mouse down clicks.void
setValue(long millis)
Set calendar value.void
setValue(java.util.Calendar calendar)
Set calendar value.-
Methods inherited from class jexer.TWidget
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, drawChildren, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getClipboard, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hasChild, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, isEchoKeystrokes, isEnabled, isVisible, messageBox, messageBox, mouseWouldHit, onCommand, onIdle, onMenu, onMouseMotion, onMouseUp, onResize, putAll, putAttrXY, putAttrXY, putCharXY, putCharXY, putCharXY, putStringXY, putStringXY, remove, remove, remove, remove, removeAll, resetTabOrder, setActive, setCursorVisible, setCursorX, setCursorY, setDimensions, setEchoKeystrokes, setEchoKeystrokes, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
-
-
-
-
Method Detail
-
onMouseDown
public void onMouseDown(TMouseEvent mouse)
Handle mouse down clicks.- Overrides:
onMouseDown
in classTWidget
- Parameters:
mouse
- mouse button down event
-
onMouseDoubleClick
public void onMouseDoubleClick(TMouseEvent mouse)
Handle mouse double click.- Overrides:
onMouseDoubleClick
in classTWidget
- Parameters:
mouse
- mouse double click event
-
onKeypress
public void onKeypress(TKeypressEvent keypress)
Handle keystrokes.- Overrides:
onKeypress
in classTWidget
- Parameters:
keypress
- keystroke event
-
getValue
public java.util.Calendar getValue()
Get calendar value.- Returns:
- the current calendar value (clone instance)
-
setValue
public final void setValue(java.util.Calendar calendar)
Set calendar value.- Parameters:
calendar
- the new value to use
-
setValue
public final void setValue(long millis)
Set calendar value.- Parameters:
millis
- the millis to set to
-
-