public class SWTDateTime extends Control
Modifier | Constructor and Description |
---|---|
protected |
SWTDateTime(JtfObjectHandle handle,
Desktop desktop)
Creates a new SWTDateTime with a JtfObjectHandle.
|
Modifier and Type | Method and Description |
---|---|
Date |
getCurrentDate()
Gets the current date.
|
int |
getDay()
Gets the day.
|
int |
getHours()
Gets the hour.
|
int |
getMinutes()
Gets the minute.
|
int |
getMonth()
Gets the month.
|
int |
getSeconds()
Gets the second.
|
int |
getYear()
Gets the year.
|
void |
select(Date selectedDate)
Selects a date and time.
|
void |
setCurrentDate(Date currentDate)
Sets the current date.
|
void |
setDay(int day)
Sets the day.
|
void |
setHours(int hours)
Sets the hour.
|
void |
setMinutes(int minutes)
Sets the minute.
|
void |
setMonth(int month)
Sets the month.
|
void |
setSeconds(int seconds)
Sets the second.
|
void |
setYear(int year)
Sets the year.
|
getHorizontalBar, getVerticalBar, openContextMenu, openContextMenu
click, click, click, click, doubleClick, doubleClick, doubleClick, doubleClick, getBackground, getFont, getForeground, getNativeHandle, isEnabled, isFocused, isVisible, mouseMove, mouseMove, pressKeys, pressKeys, pressMouse, pressMouse, pressMouse, pressMouse, releaseKeys, releaseKeys, releaseMouse, releaseMouse, releaseMouse, releaseMouse, setBackground, setEnabled, setFocus, setFont, setForeground, setVisible, typeKeys, typeKeys, typeKeys, typePasswordKeys, typePasswordKeys, typePasswordKeys
captureBitmap, captureBitmap, exists, exists, generateLocator, getChildren, getDynamicMethodList, getParent, getPropertyList, getRect, getRect, getValue, highlightObject, highlightObject, highlightObject, invokeMethods, textCapture, textCapture, textClick, textClick, textClick, textClick, textClick, textClick, textExists, textExists, textExists, textExists, textExists, textRectangle, textRectangle, textRectangle, textRectangle, textRectangle, waitForChildDisappearance, waitForChildDisappearance, waitForDisappearance, waitForDisappearance, waitForObject, waitForObject, waitForProperty, waitForProperty
equals, exists, find, find, findAll, findAll, getCustomTypeName, getDesktop, getHandle, getLocator, getProperty, getTypeName, hashCode, imageClick, imageClick, imageClick, imageClick, imageClick, imageClick, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageClickFile, imageExists, imageExists, imageExists, imageExistsFile, imageExistsFile, imageExistsFile, imageRectangle, imageRectangle, imageRectangle, imageRectangleFile, imageRectangleFile, imageRectangleFile, invoke, preventFinalLocator, setProperty, toString
protected SWTDateTime(JtfObjectHandle handle, Desktop desktop)
handle
- the handle that identifies the SWTDateTimedesktop
- the desktop on which this object livespublic void select(Date selectedDate)
selectedDate
- the date and time to selectpublic Date getCurrentDate()
public void setCurrentDate(Date currentDate)
currentDate
- the current datepublic int getDay()
public void setDay(int day)
day
- the daypublic int getHours()
public void setHours(int hours)
hours
- the hourpublic int getMinutes()
public void setMinutes(int minutes)
minutes
- the minutepublic int getMonth()
public void setMonth(int month)
month
- the monthpublic int getSeconds()
public void setSeconds(int seconds)
seconds
- the secondpublic int getYear()
public void setYear(int year)
year
- the yearCopyright 2009-2012 Micro Focus. All Rights Reserved.