Class UserManagementPanel
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.UserManagementPanel
- All Implemented Interfaces:
- DynamicPropertyProvider,- LocaleListener,- MutableDynamicPropertyProvider,- StyleProvider,- ComponentLifecycle,- EnabledEx,- ExtensibleComponent,- QualityMonitor,- VisionComponent,- ImageObserver,- MenuContainer,- Serializable,- Accessible
public class UserManagementPanel
extends AbstractManagerPanel
implements EnabledEx, ExtensibleComponent, LocaleListener
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThis is available to the user as the saveContext variable passed in on certain extension functions.Nested classes/interfaces inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanelAbstractManagerPanel.GatewayInvokeWorkerNested classes/interfaces inherited from class javax.swing.JPanelJPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponentJComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.ContainerContainer.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.ComponentComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intprotected Stringprotected StringFields inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanelslider, status, titleFields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelantialias, context, cursorCode, dynamicPropsFields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycleCOMPONENT_RUNNINGFields inherited from interface com.inductiveautomation.vision.api.client.components.model.EnabledExDISABLED_BY_PERMISSIONSFields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListenerLOCAL_CHANGE_EVENTFields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProviderRESERVED_SET_KEYFields inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionComponentCOMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidGets the available text color for theScheduleViewcontained in this panel This is here for setting this components color via a property.intgetMode()intGets the highlight color for theScheduleViewcontained 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.intGets 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 voidinitPanels(SlidingPane slider) Initialize your panels, add at least one to the sliderbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidlocaleChanged(Locale newLocale) protected voidSubclasses should override this to provide shutdown logic.protected voidSubclasses should override this to provide startup logic.voidsetAllowContactInfoEditing(boolean allowContactInfoEditing) voidsetAllowRoleAssigning(boolean allowRoleAssigning) voidsetAllowRoleManagement(boolean allowRoleManagement) voidsetAllowScheduleModifications(boolean allowScheduleModifications) voidsetAllowUsernameEditing(boolean allowUsernameEditing) voidsetColumnContactInfo(boolean columnContactInfo) voidsetColumnName(boolean columnName) voidsetColumnRoles(boolean columnRoles) voidsetColumnSchedule(boolean columnSchedule) voidsetColumnUsername(boolean columnUsername) voidsetComponentEnabled(boolean componentEnabled) voidsetEventForeground(Color color) Sets the schedule preview available text color contained within theUserManagementPanel.UserEdit.voidvoidSets the font of the Manager Panel as well as child components.voidsetMode(int mode) voidsetRowHeight(int height) voidSets the schedule preview text color contained withinUserManagementPanel.UserEdit.voidsetTableBackground(Color color) Sets the background to the various tables contained within this panel.voidsetTableForeground(Color color) Sets the text color to the various tables contained within this panel.voidsetTableHeaderBackground(Color color) Sets the header background to the various tables contained within this panel.voidsetTableHeaderTextColor(Color color) Sets the header text color to the various tables contained within this panel.voidsetTouchscreenMode(int touchscreenMode) voidsetUsername(String username) voidsetUserProfile(String userProfile) voidsetWindowBackground(Color color) Sets the background to the various components contained within this panel.voidsetWindowForeground(Color color) Sets the text color of the various components contained within this panel.voidsetWindowHeaderBackground(Color color) Sets the header background for this panel.voidsetWindowHeaderForeground(Color color) Sets the header text color for this panel.voidSets the header save button background for this panel.voidSets the text color of the save Button's text.voidCauses the user table and role tables to update their dataMethods inherited from class com.inductiveautomation.factorypmi.application.components.managementpanel.AbstractManagerPanelgetSaveButtonForeground, getTitleBackground, getTitleForeground, getTitleSaveButtonBackground, isOptimizedDrawingEnabled, newTitledBorder, paintComponent, setSaveButtonForeground, setTitleBackground, setTitleForeground, setTitleSaveButtonBackground, showUIResponse, slideToEditorMethods inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelgetAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, paintChildren, paintOverlayOverChildren, setAntialias, setCursorCode, setDataQuality, setDynamicProps, setName, setPropertyValue, setQuality, setStyles, setToolTipText, setVisible, shutdownComponent, startupComponent, translate, updateQualityMethods inherited from class javax.swing.JPanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponentaddAncestorListener, 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, updateMethods inherited from class java.awt.Containeradd, 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, validateTreeMethods inherited from class java.awt.Componentaction, 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, transferFocusUpCycleMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecyclegetAppContext, shutdownComponent, startupComponent
- 
Field Details- 
MODE_MANAGEpublic static final int MODE_MANAGE- See Also:
 
- 
MODE_EDIT_CURRENTpublic static final int MODE_EDIT_CURRENT- See Also:
 
- 
MODE_EDIT_SINGLEpublic static final int MODE_EDIT_SINGLE- See Also:
 
- 
userProfile
- 
username
 
- 
- 
Constructor Details- 
UserManagementPanelpublic UserManagementPanel()
 
- 
- 
Method Details- 
setFontDescription copied from class:AbstractManagerPanelSets the font of the Manager Panel as well as child components.- Overrides:
- setFontin class- AbstractManagerPanel
 
- 
isComponentEnabledpublic boolean isComponentEnabled()- Specified by:
- isComponentEnabledin interface- EnabledEx
 
- 
setComponentEnabledpublic void setComponentEnabled(boolean componentEnabled) - Specified by:
- setComponentEnabledin interface- EnabledEx
 
- 
evaluateEnabledpublic void evaluateEnabled()- Specified by:
- evaluateEnabledin interface- EnabledEx
 
- 
getExtensionFunctions- Specified by:
- getExtensionFunctionsin interface- ExtensibleComponent
 
- 
setExtensionFunctions- Specified by:
- setExtensionFunctionsin interface- ExtensibleComponent
 
- 
initPanelsDescription copied from class:AbstractManagerPanelInitialize your panels, add at least one to the slider- Specified by:
- initPanelsin class- AbstractManagerPanel
 
- 
onStartupprotected void onStartup()Description copied from class:AbstractVisionPanelSubclasses should override this to provide startup logic.- Overrides:
- onStartupin class- AbstractVisionPanel
 
- 
onShutdownprotected void onShutdown()Description copied from class:AbstractVisionPanelSubclasses should override this to provide shutdown logic.- Overrides:
- onShutdownin class- AbstractVisionPanel
 
- 
localeChanged- Specified by:
- localeChangedin interface- LocaleListener
- Overrides:
- localeChangedin class- AbstractVisionPanel
 
- 
getRowHeightpublic int getRowHeight()
- 
setRowHeightpublic void setRowHeight(int height) 
- 
getUserProfile
- 
setUserProfile
- 
getModepublic int getMode()
- 
setModepublic void setMode(int mode) 
- 
getUsername
- 
setUsername
- 
isColumnUsernamepublic boolean isColumnUsername()
- 
setColumnUsernamepublic void setColumnUsername(boolean columnUsername) 
- 
isColumnNamepublic boolean isColumnName()
- 
setColumnNamepublic void setColumnName(boolean columnName) 
- 
isColumnRolespublic boolean isColumnRoles()
- 
setColumnRolespublic void setColumnRoles(boolean columnRoles) 
- 
isColumnContactInfopublic boolean isColumnContactInfo()
- 
setColumnContactInfopublic void setColumnContactInfo(boolean columnContactInfo) 
- 
isColumnSchedulepublic boolean isColumnSchedule()
- 
setColumnSchedulepublic void setColumnSchedule(boolean columnSchedule) 
- 
isAllowRoleManagementpublic boolean isAllowRoleManagement()
- 
setAllowRoleManagementpublic void setAllowRoleManagement(boolean allowRoleManagement) 
- 
isAllowUsernameEditingpublic boolean isAllowUsernameEditing()
- 
setAllowUsernameEditingpublic void setAllowUsernameEditing(boolean allowUsernameEditing) 
- 
isAllowRoleAssigningpublic boolean isAllowRoleAssigning()
- 
setAllowRoleAssigningpublic void setAllowRoleAssigning(boolean allowRoleAssigning) 
- 
isAllowContactInfoEditingpublic boolean isAllowContactInfoEditing()
- 
setAllowContactInfoEditingpublic void setAllowContactInfoEditing(boolean allowContactInfoEditing) 
- 
isAllowScheduleModificationspublic boolean isAllowScheduleModifications()
- 
setAllowScheduleModificationspublic void setAllowScheduleModifications(boolean allowScheduleModifications) 
- 
getTouchscreenModepublic int getTouchscreenMode()
- 
setTouchscreenModepublic void setTouchscreenMode(int touchscreenMode) 
- 
updateTablespublic void updateTables()Causes the user table and role tables to update their data
- 
setWindowBackgroundSets 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
 
- 
setWindowForegroundSets 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
 
- 
setTableBackgroundSets 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
 
- 
setTableForegroundSets 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
 
- 
setTableHeaderBackgroundSets 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
 
- 
setTableHeaderTextColorSets 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
 
- 
setWindowHeaderBackgroundSets 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
 
- 
setWindowHeaderForegroundSets 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
 
- 
setWindowHeaderSaveButtonForegroundSets the text color of the save Button's text. This supports colorization via property edit.- Parameters:
- color- the- Colorto set the title text to. Must not be null
 
- 
getWindowHeaderSaveButtonForegroundReturns the color of the save button.- Returns:
- the Color of the save button. Will not be null
 
- 
getWindowHeaderForegroundGets 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
 
- 
getWindowHeaderBackgroundGets 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
 
- 
setWindowHeaderSaveButtonBackgroundSets 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
 
- 
getWindowHeaderSaveButtonBackgroundGets 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
 
- 
setSchedulePreviewAvailableColorSets the schedule preview text color contained withinUserManagementPanel.UserEdit. This is here for setting this components color via a property.- Parameters:
- color- the specified color. Must not be null
 
- 
setEventForegroundSets the schedule preview available text color contained within theUserManagementPanel.UserEdit. This is here for setting this components color via a property.- Parameters:
- color- the specified color. Must not be null
 
- 
getTableHeaderTextColorGets 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
 
- 
getTableHeaderBackgroundGets 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
 
- 
getWindowBackgroundGets 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
 
- 
getWindowForegroundGets 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
 
- 
getTableBackgroundGets 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
 
- 
getTableForegroundGets 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
 
- 
getSchedulePreviewAvailableColorGets the highlight color for theScheduleViewcontained 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
 
- 
getEventForegroundGets the available text color for theScheduleViewcontained 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
 
 
-