BrightSide Workbench Full Report + Source Code
org.turro.scheduler.zul.constraints.WeekDayListbox Class Reference
Inheritance diagram for org.turro.scheduler.zul.constraints.WeekDayListbox:
Collaboration diagram for org.turro.scheduler.zul.constraints.WeekDayListbox:

Public Member Functions

 WeekDayListbox ()
 
int getDayIndex ()
 
void setDayIndex (int index)
 

Protected Member Functions

String getString (WeekDay v)
 

Detailed Description

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

Definition at line 31 of file WeekDayListbox.java.

Constructor & Destructor Documentation

◆ WeekDayListbox()

org.turro.scheduler.zul.constraints.WeekDayListbox.WeekDayListbox ( )

Definition at line 35 of file WeekDayListbox.java.

35  {
36  super(WeekDay.values());
37  dfs = new DateFormatSymbols(Application.getUsedLocale());
38  }
Here is the call graph for this function:

Member Function Documentation

◆ getDayIndex()

int org.turro.scheduler.zul.constraints.WeekDayListbox.getDayIndex ( )

Definition at line 40 of file WeekDayListbox.java.

40  {
41  WeekDay wd = getObjectValue();
42  return wd == null ? -1 : wd.ordinal();
43  }
Here is the caller graph for this function:

◆ getString()

String org.turro.scheduler.zul.constraints.WeekDayListbox.getString ( WeekDay  v)
protected

Definition at line 54 of file WeekDayListbox.java.

54  {
55  return Strings.capitalize(dfs.getWeekdays()[WeekDay.map(v.ordinal())]);
56  }
Here is the call graph for this function:

◆ setDayIndex()

void org.turro.scheduler.zul.constraints.WeekDayListbox.setDayIndex ( int  index)

Definition at line 45 of file WeekDayListbox.java.

45  {
46  if(index > -1 && index < 7) {
47  setObjectValue(WeekDay.values()[index]);
48  } else {
49  setObjectValue(null);
50  }
51  }
Here is the caller graph for this function:

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