Class ScheduleManagementPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanel
com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanel
com.inductiveautomation.factorypmi.application.components.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:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanel
AbstractManagerPanel.GatewayInvokeWorker
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
Fields inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanel
slider, status, title
Fields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanel
antialias, context, cursorCode, dynamicProps
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
COMPONENT_RUNNING
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.EnabledEx
DISABLED_BY_PERMISSIONS
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENT
Fields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProvider
RESERVED_SET_KEY
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionComponent
COMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Gets the available text color for theScheduleView
contained in this panel This is here for setting this components color via a property.Gets the highlight color for theScheduleView
contained in this panel This is here for setting this components color via a property.Gets the table background color for this panel This is here for setting this components color via a property.Gets the text color for the tables in this panel This is here for setting this components color via a property.Gets the tables' header background color.Gets the tables' header text color for the various tables in this panel.int
Gets the background color for this panel This is here for setting this components color via a property.Gets the text color for this panel This is here for setting this components color via a property.Gets the header background for this panel.Gets the header text color for this panel.Gets the header save button background for this panel.Returns the color of the save button.protected void
initPanels
(SlidingPane slider) Initialize your panels, add at least one to the sliderboolean
void
localeChanged
(Locale newLocale) void
setComponentBorder
(JPanel panel, Border border) void
setComponentEnabled
(boolean componentEnabled) void
setEventForeground
(Color color) Sets the schedule preview available text color contained within theScheduleManagementPanel.ScheduleEditor
.void
void
Sets the schedule preview text color contained within theScheduleManagementPanel.ScheduleEditor
.void
setTableBackground
(Color color) Sets the background to the various tables contained within this panel.void
setTableForeground
(Color color) Sets the text color to the various tables contained within this panel.void
setTableHeaderBackground
(Color color) Sets the header background to the various tables contained within this panel.void
setTableHeaderTextColor
(Color color) Sets the header text color to the various tables contained within this panel.void
setTouchscreenMode
(int touchscreenMode) void
setWindowBackground
(Color color) Sets the background to the various components contained within this panel.void
setWindowForeground
(Color color) Sets the text color of the various components contained within this panel.void
setWindowHeaderBackground
(Color color) Sets the header background for this panel.void
setWindowHeaderForeground
(Color color) Sets the header text color for this panel.void
Sets the header save button background for this panel.void
Sets the text color of the save Button's text.Methods inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanel
getSaveButtonForeground, getTitleBackground, getTitleForeground, getTitleSaveButtonBackground, isOptimizedDrawingEnabled, newTitledBorder, paintComponent, setFont, setSaveButtonForeground, setTitleBackground, setTitleForeground, setTitleSaveButtonBackground, showUIResponse, slideToEditor
Methods inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanel
getAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, onShutdown, onStartup, paintChildren, paintOverlayOverChildren, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setName, setPropertyValue, setQuality, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, translate, updateQuality
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
getAppContext, shutdownComponent, startupComponent
-
Constructor Details
-
ScheduleManagementPanel
public ScheduleManagementPanel()
-
-
Method Details
-
initPanels
Description copied from class:AbstractManagerPanel
Initialize your panels, add at least one to the slider- Specified by:
initPanels
in classAbstractManagerPanel
-
isComponentEnabled
public boolean isComponentEnabled()- Specified by:
isComponentEnabled
in interfaceEnabledEx
-
setComponentEnabled
public void setComponentEnabled(boolean componentEnabled) - Specified by:
setComponentEnabled
in interfaceEnabledEx
-
evaluateEnabled
public void evaluateEnabled()- Specified by:
evaluateEnabled
in interfaceEnabledEx
-
getTouchscreenMode
public int getTouchscreenMode() -
setTouchscreenMode
public void setTouchscreenMode(int touchscreenMode) -
localeChanged
- Specified by:
localeChanged
in interfaceLocaleListener
- Overrides:
localeChanged
in classAbstractVisionPanel
-
setComponentBorder
This sets the border for the passedJPanel
using the passedBorder
. 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
- theJPanel
to apply the border to. Must not be nullborder
- theBorder
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
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
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
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
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
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
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
Sets the schedule preview text color contained within theScheduleManagementPanel.ScheduleEditor
. This is here for setting this components color via a property.- Parameters:
color
- the specified color. Must not be null
-
setEventForeground
Sets the schedule preview available text color contained within theScheduleManagementPanel.ScheduleEditor
. This is here for setting this components color via a property.- Parameters:
color
- the specified color. Must not be null
-
setWindowHeaderBackground
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
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
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
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
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
Sets the text color of the save Button's text. This supports colorization via property edit.- Parameters:
color
- theColor
to set the title text to. Must not be null
-
getWindowHeaderSaveButtonForeground
Returns the color of the save button.- Returns:
- the Color of the save button. Will not be null
-
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
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
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
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
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
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
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
Gets the highlight color for theScheduleView
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
Gets the available text color for theScheduleView
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
- Specified by:
getExtensionFunctions
in interfaceExtensibleComponent
-
setExtensionFunctions
- Specified by:
setExtensionFunctions
in interfaceExtensibleComponent
-