Class ScheduleManagementPanel

All Implemented Interfaces:
DynamicPropertyProvider, LocaleListener, MutableDynamicPropertyProvider, StyleProvider, ComponentLifecycle, EnabledEx, ExtensibleComponent, QualityMonitor, VisionComponent, ImageObserver, MenuContainer, Serializable, Accessible

public class ScheduleManagementPanel extends AbstractManagerPanel implements EnabledEx, LocaleListener, ExtensibleComponent
See Also:
  • Constructor Details

    • ScheduleManagementPanel

      public ScheduleManagementPanel()
  • Method Details

    • initPanels

      protected void initPanels(SlidingPane slider)
      Description copied from class: AbstractManagerPanel
      Initialize your panels, add at least one to the slider
      Specified by:
      initPanels in class AbstractManagerPanel
    • isComponentEnabled

      public boolean isComponentEnabled()
      Specified by:
      isComponentEnabled in interface EnabledEx
    • setComponentEnabled

      public void setComponentEnabled(boolean componentEnabled)
      Specified by:
      setComponentEnabled in interface EnabledEx
    • evaluateEnabled

      public void evaluateEnabled()
      Specified by:
      evaluateEnabled in interface EnabledEx
    • getTouchscreenMode

      public int getTouchscreenMode()
    • setTouchscreenMode

      public void setTouchscreenMode(int touchscreenMode)
    • localeChanged

      public void localeChanged(Locale newLocale)
      Specified by:
      localeChanged in interface LocaleListener
      Overrides:
      localeChanged in class AbstractVisionPanel
    • setComponentBorder

      public void setComponentBorder(JPanel panel, Border border)
      This sets the border for the passed JPanel using the passed Border. The panel can already have a border set and this will retain the color of the border. This is due to colorization of the panel we need to retain the color of the border and reset it.
      Parameters:
      panel - the JPanel to apply the border to. Must not be null
      border - the Border we wish to apply. If a border is already set, we will grab the color from it and set it as the color of the new border. Must not be null
    • setWindowBackground

      public void setWindowBackground(Color color)
      Sets the background to the various components contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setWindowForeground

      public void setWindowForeground(Color color)
      Sets the text color of the various components contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setTableBackground

      public void setTableBackground(Color color)
      Sets the background to the various tables contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setTableForeground

      public void setTableForeground(Color color)
      Sets the text color to the various tables contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setTableHeaderBackground

      public void setTableHeaderBackground(Color color)
      Sets the header background to the various tables contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setTableHeaderTextColor

      public void setTableHeaderTextColor(Color color)
      Sets the header text color to the various tables contained within this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setSchedulePreviewAvailableColor

      public void setSchedulePreviewAvailableColor(Color color)
      Sets the schedule preview text color contained within the ScheduleManagementPanel.ScheduleEditor. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setEventForeground

      public void setEventForeground(Color color)
      Sets the schedule preview available text color contained within the ScheduleManagementPanel.ScheduleEditor. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setWindowHeaderBackground

      public void setWindowHeaderBackground(Color color)
      Sets the header background for this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setWindowHeaderForeground

      public void setWindowHeaderForeground(Color color)
      Sets the header text color for this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • getWindowHeaderForeground

      public Color getWindowHeaderForeground()
      Gets the header text color for this panel. This is here for setting this components color via a property.
      Returns:
      the color for the header text. Will not be null
    • getWindowHeaderBackground

      public Color getWindowHeaderBackground()
      Gets the header background for this panel. This is here for setting this components color via a property.
      Returns:
      the color for the header background. Will not be null
    • setWindowHeaderSaveButtonBackground

      public void setWindowHeaderSaveButtonBackground(Color color)
      Sets the header save button background for this panel. This is here for setting this components color via a property.
      Parameters:
      color - the specified color. Must not be null
    • setWindowHeaderSaveButtonForeground

      public void setWindowHeaderSaveButtonForeground(Color color)
      Sets the text color of the save Button's text. This supports colorization via property edit.
      Parameters:
      color - the Color to set the title text to. Must not be null
    • getWindowHeaderSaveButtonForeground

      public Color getWindowHeaderSaveButtonForeground()
      Returns the color of the save button.
      Returns:
      the Color of the save button. Will not be null
    • getWindowHeaderSaveButtonBackground

      public Color getWindowHeaderSaveButtonBackground()
      Gets the header save button background for this panel. This is here for setting this components color via a property.
      Returns:
      the header save button background color. Will not be null
    • getTableHeaderTextColor

      public Color getTableHeaderTextColor()
      Gets the tables' header text color for the various tables in this panel. This is here for setting this components color via a property.
      Returns:
      the tables' header text color. Will not be null
    • getTableHeaderBackground

      public Color getTableHeaderBackground()
      Gets the tables' header background color. This is here for setting this components color via a property.
      Returns:
      the tables' header background color. Will not be null
    • getWindowBackground

      public Color getWindowBackground()
      Gets the background color for this panel This is here for setting this components color via a property.
      Returns:
      the panels background color. Will not be null
    • getWindowForeground

      public Color getWindowForeground()
      Gets the text color for this panel This is here for setting this components color via a property.
      Returns:
      the panels background color. Will not be null
    • getTableBackground

      public Color getTableBackground()
      Gets the table background color for this panel This is here for setting this components color via a property.
      Returns:
      the tables' background color. Will not be null
    • getTableForeground

      public Color getTableForeground()
      Gets the text color for the tables in this panel This is here for setting this components color via a property.
      Returns:
      the tables' text color. Will not be null
    • getSchedulePreviewAvailableColor

      public Color getSchedulePreviewAvailableColor()
      Gets the highlight color for the ScheduleView contained in this panel This is here for setting this components color via a property.
      Returns:
      the ScheduleView's available highlight color. Will not be null
    • getEventForeground

      public Color getEventForeground()
      Gets the available text color for the ScheduleView contained in this panel This is here for setting this components color via a property.
      Returns:
      the ScheduleView's available text color. Will not be null
    • getExtensionFunctions

      public Map<String,ExtensionFunction> getExtensionFunctions()
      Specified by:
      getExtensionFunctions in interface ExtensibleComponent
    • setExtensionFunctions

      public void setExtensionFunctions(Map<String,ExtensionFunction> map)
      Specified by:
      setExtensionFunctions in interface ExtensibleComponent