Class TimeSettings


  • public class TimeSettings
    extends java.lang.Object
    This class represents the Process Flow settings. These settings can be found in the User Interface - Options - Settings - TimeZone/Calendar
    • 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 select TimeFormat.FORMAT_DEFAULT in the section Time format, UC4 uses the computer's time format.
        Parameters:
        format - Display time format
      • 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.