BrightSide Workbench Full Report + Source Code
org.turro.zkoss.input.DateboxShort Class Reference
Inheritance diagram for org.turro.zkoss.input.DateboxShort:
Collaboration diagram for org.turro.zkoss.input.DateboxShort:

Public Member Functions

 DateboxShort (Date date) throws WrongValueException
 
 DateboxShort ()
 
boolean isWithTime ()
 
void setWithTime (boolean withTime)
 
Date getValue () throws WrongValueException
 

Protected Member Functions

String getDefaultFormat ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 30 of file DateboxShort.java.

Constructor & Destructor Documentation

◆ DateboxShort() [1/2]

org.turro.zkoss.input.DateboxShort.DateboxShort ( Date  date) throws WrongValueException

Definition at line 34 of file DateboxShort.java.

34  {
35  super(date);
36  }

◆ DateboxShort() [2/2]

org.turro.zkoss.input.DateboxShort.DateboxShort ( )

Definition at line 38 of file DateboxShort.java.

38  {
39  super();
40  }

Member Function Documentation

◆ getDefaultFormat()

String org.turro.zkoss.input.DateboxShort.getDefaultFormat ( )
protected

Definition at line 51 of file DateboxShort.java.

51  {
52  if(withTime) {
53  return DateFormats.getDefaultDateTimeFormat();
54  }
55  return DateFormats.getDefaultFormat();
56  }
Here is the call graph for this function:

◆ getValue()

Date org.turro.zkoss.input.DateboxShort.getValue ( ) throws WrongValueException

Definition at line 59 of file DateboxShort.java.

59  {
60  Date value = super.getValue();
61  return value != null ? (withTime ? value : Dates.trucateTime(value)) : null;
62  }
Here is the caller graph for this function:

◆ isWithTime()

boolean org.turro.zkoss.input.DateboxShort.isWithTime ( )

Definition at line 42 of file DateboxShort.java.

42  {
43  return withTime;
44  }

◆ setWithTime()

void org.turro.zkoss.input.DateboxShort.setWithTime ( boolean  withTime)

Definition at line 46 of file DateboxShort.java.

46  {
47  this.withTime = withTime;
48  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: