Package com.uc4.communication
Class TimeSettings
java.lang.Object
com.uc4.communication.TimeSettings
This class represents the Process Flow settings.
These settings can be found in the User Interface - Options - Settings - TimeZone/Calendar
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Display setting for calendars.static enum
Display setting for the first week of the year.static enum
Display format of times. -
Method Summary
Modifier and TypeMethodDescriptionReturns the calendar view.Returns the display settings for the first week.Returns the display time format.The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).boolean
Method to know whether to show seconds or not.void
setCalendarView
(TimeSettings.CalendarView calendarView) Sets the calendar view.void
setFirstWeekOfYear
(TimeSettings.FirstWeekOfYear firstWeekOfYear) The definition made here is displayed in Calendar objects but does not influence processing (for example, WEEK_NR).void
setFormat
(TimeSettings.TimeFormat format) Sets the display time format.void
setShowSeconds
(boolean showSeconds) Method to show seconds at places if set to true.void
setTimezone
(UC4TimezoneName timezone) The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).
-
Method Details
-
getTimezone
The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow). It does not affect the processing of tasks. Therefore, it does not make a difference who has started the object.- Returns:
- Name of the timezone object
-
setTimezone
The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow). It does not affect the processing of tasks. Therefore, it does not make a difference who has started the object.- Parameters:
timezone
- Name of the timezone object
-
getFormat
Returns the display time format.- Returns:
- Display time format
-
setFormat
Sets the display time format. If you selectTimeFormat.FORMAT_DEFAULT
in the section Time format, UC4 uses the computer's time format.- Parameters:
format
- Display time format
-
getCalendarView
Returns the calendar view.- Returns:
- Calendar View
-
setCalendarView
Sets the calendar view.- Parameters:
calendarView
- Calendar View
-
getFirstWeekOfYear
Returns the display settings for the first week.- Returns:
- Display setting for First Week of Year
-
setFirstWeekOfYear
The definition made here is displayed in Calendar objects but does not influence processing (for example, WEEK_NR). CalendarView.USE_CLIENT_SETTINGS will use the value in the UC4 Variable UC_CLIENT_SETTINGS with the key FIRST_WEEK_METHOD.- Parameters:
firstWeekOfYear
- Display setting for First Week of Year
-
isShowSeconds
public boolean isShowSeconds()Method to know whether to show seconds or not.- Returns:
- if true then show seconds else don't show seconds in table.
-
setShowSeconds
public void setShowSeconds(boolean showSeconds) Method to show seconds at places if set to true.- Parameters:
showSeconds
- if true then show seconds else don't.
-