Constructor and Description |
---|
TCalendar(TWidget parent,
int x,
int y,
TAction updateAction)
Public constructor.
|
Modifier and Type | Method and 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(java.util.Calendar calendar)
Set calendar value.
|
void |
setValue(long millis)
Set calendar value.
|
activate, activate, activate, activateAll, addButton, addCalendar, addCheckBox, addComboBox, addDirectoryList, addDirectoryList, addDirectoryList, addDirectoryList, addEditor, addField, addField, addField, addImage, addImage, addLabel, addLabel, addLabel, addLabel, addLabel, addLabel, addList, addList, addList, addList, addPanel, addPasswordField, addPasswordField, addPasswordField, addProgressBar, addRadioGroup, addSpinner, addSplitPane, addTable, addTable, addText, addText, addTreeViewWidget, addTreeViewWidget, close, compareTo, doRepaint, drawBox, drawBox, drawBoxShadow, fileOpenBox, fileOpenBox, fileOpenBox, fileOpenBox, fileSaveBox, getAbsoluteX, getAbsoluteY, getActiveChild, getApplication, getAttrXY, getChildren, getCursorAbsoluteX, getCursorAbsoluteY, getCursorX, getCursorY, getHeight, getLayoutManager, getParent, getScreen, getTheme, getWidth, getWindow, getX, getY, handleEvent, hLineXY, inputBox, inputBox, inputBox, isAbsoluteActive, isActive, isCursorVisible, isDrawable, 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, setEnabled, setHeight, setLayoutManager, setParent, setupForTWindow, setVisible, setWidth, setWindow, setX, setY, splitHorizontal, splitVertical, switchWidget, toPrettyString, toPrettyString, toString, vLineXY
public void onMouseDown(TMouseEvent mouse)
onMouseDown
in class TWidget
mouse
- mouse button down eventpublic void onMouseDoubleClick(TMouseEvent mouse)
onMouseDoubleClick
in class TWidget
mouse
- mouse double click eventpublic void onKeypress(TKeypressEvent keypress)
onKeypress
in class TWidget
keypress
- keystroke eventpublic java.util.Calendar getValue()
public final void setValue(java.util.Calendar calendar)
calendar
- the new value to usepublic final void setValue(long millis)
millis
- the millis to set toCopyright © 2019 Kevin Lamonte. Licensed MIT.