Package com.uc4.communication
Class TimeSettings
- java.lang.Object
-
- com.uc4.communication.TimeSettings
-
public class TimeSettings extends java.lang.ObjectThis class represents the Process Flow settings. These settings can be found in the User Interface - Options - Settings - TimeZone/Calendar
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTimeSettings.CalendarViewDisplay setting for calendars.static classTimeSettings.FirstWeekOfYearDisplay setting for the first week of the year.static classTimeSettings.TimeFormatDisplay format of times.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeSettings.CalendarViewgetCalendarView()Returns the calendar view.TimeSettings.FirstWeekOfYeargetFirstWeekOfYear()Returns the display settings for the first week.TimeSettings.TimeFormatgetFormat()Returns the display time format.UC4TimezoneNamegetTimezone()The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).booleanisShowSeconds()Method to know whether to show seconds or not.voidsetCalendarView(TimeSettings.CalendarView calendarView)Sets the calendar view.voidsetFirstWeekOfYear(TimeSettings.FirstWeekOfYear firstWeekOfYear)The definition made here is displayed in Calendar objects but does not influence processing (for example, WEEK_NR).voidsetFormat(TimeSettings.TimeFormat format)Sets the display time format.voidsetShowSeconds(boolean showSeconds)Method to show seconds at places if set to true.voidsetTimezone(UC4TimezoneName timezone)The TimeZone that is specified here only serves display reasons (for example, for the Message Wwindow).
-
-
-
Method Detail
-
getTimezone
public UC4TimezoneName 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
public void setTimezone(UC4TimezoneName timezone)
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
public TimeSettings.TimeFormat getFormat()
Returns the display time format.- Returns:
- Display time format
-
setFormat
public void setFormat(TimeSettings.TimeFormat format)
Sets the display time format. If you selectTimeFormat.FORMAT_DEFAULTin the section Time format, UC4 uses the computer's time format.- Parameters:
format- Display time format
-
getCalendarView
public TimeSettings.CalendarView getCalendarView()
Returns the calendar view.- Returns:
- Calendar View
-
setCalendarView
public void setCalendarView(TimeSettings.CalendarView calendarView)
Sets the calendar view.- Parameters:
calendarView- Calendar View
-
getFirstWeekOfYear
public TimeSettings.FirstWeekOfYear getFirstWeekOfYear()
Returns the display settings for the first week.- Returns:
- Display setting for First Week of Year
-
setFirstWeekOfYear
public void setFirstWeekOfYear(TimeSettings.FirstWeekOfYear firstWeekOfYear)
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.
-
-