Wt  3.3.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator
Public Member Functions | Protected Member Functions
Wt::WTimeEdit Class Reference

A Time field editor. More...

#include <Wt/WTimeEdit>

Inheritance diagram for Wt::WTimeEdit:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WTimeEdit (WContainerWidget *parent=0)
 Creates a new time edit.
void setTime (const WTime &time)
 Sets the time.
WTime time () const
 Returns the time.
virtual WTimeValidatorvalidator () const
 Returns the validator.
void setFormat (const WString &format)
 Sets the format of the Time.
WString format () const
 returns the format
virtual void setHidden (bool hidden, const WAnimation &animation=WAnimation())
 set the hidden status
int minuteStep () const
 returns the minutes step
void setMinuteStep (int step)
 sets the minute step

Protected Member Functions

virtual void render (WFlags< RenderFlag > flags)
 render the widget
virtual void propagateSetEnabled (bool enabled)
 enable or disable propagation
virtual void setFromTimePicker ()
 Sets the value from the time scroller to the line edit.
virtual void setFromLineEdit ()
 Sets the value from the line edit to the time scroller.
virtual void setText (const WString &text)
 sets the text

Detailed Description

A Time field editor.

See also:
WTimePicker
WTime
WTimeValidator

Styling through CSS is not applicable.


Member Function Documentation

void Wt::WTimeEdit::setTime ( const WTime time)

Sets the time.

Does nothing if the current time is Null.

See also:
time()

Returns the time.

Returns an invalid time (for which WTime::isValid() returns false) if the time coult not be parsed using the current format().

See also:
setTime(), WTime::fromString(), WLineEdit::text()

Returns the validator.

See also:
WTimeValidator

Reimplemented from Wt::WFormWidget.

 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator

Generated on Tue Mar 22 2016 for the C++ Web Toolkit (Wt) by doxygen 1.7.6.1