Class BasicContainer
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.BasicContainer
- All Implemented Interfaces:
- DynamicPropertyProvider,- LocaleListener,- MutableDynamicPropertyProvider,- StyleProvider,- ComponentLifecycle,- QualityMonitor,- VisionComponent,- VisionContainer,- ImageObserver,- MenuContainer,- VetoableChangeListener,- Serializable,- EventListener,- Accessible
- Direct Known Subclasses:
- VisionTemplate
The SpringPanel is the container for FactoryPMI. A lightweight subclass of JPanel, this panel always uses the
 FPMILayout for its layout manager. add() is overwritten and privateAdd() used instead to ensure that adding logic is
 always correct. The name SpringPanel is a historical leftover, as SpringLayout was used in earlier versions.
- See Also:
- 
Nested Class SummaryNested 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 StringThis string is used as a JComponent client property key if the panel contains a default button, or contains a panel who contains a default button.Fields 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 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 TypeMethodDescriptionvoidaddComponent(Component comp) getComponent(String name) static StringgetNextName(VisionContainer container, String name) intgetPosition(Component comp) getSpringInfo(Component comp) static voidinitializeName(Component newComponent, VisionContainer container) booleanbooleanisGroup()booleanbooleanbooleanvoidmoveBackward(Component comp) voidmoveForward(Component comp) voidmoveToBack(Component comp) voidmoveToFront(Component comp) protected voidvoidprotected booleanprotected voidvoidprivateAdd(Component comp) Only for use with classes that know how to use the BasicContainer.voidputSpringInfo(Component comp, SpringInfo si) Deprecated.voidstatic StringsanitizeName(String name) voidsetBackground(Color bg) voidsetBoundsEx(Rectangle2D r2d) This helps the serializer call the correct bounds setting method.voidsetCombineRepaints(boolean groupDrawingEnabled) voidsetForeground(Color fg) voidsetGroup(boolean group) voidsetLayout(LayoutManager mgr) voidDeprecated.voidsetOpaque(boolean b) voidsetOptimizedDrawingEnabled(boolean b) voidsetPosition(Component comp, int i) voidvoidsetRotation(int i) voidsetSecuritySettings(String name, SecuritySettings settings) Deprecated.voidsetTexturePath(String texturePath) toString()static booleanvalidateName(String name) static voidvalidateName(String newName, VisionContainer container, Component component) voidMethods inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelgetAppContext, getCursorCode, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, localeChanged, onShutdown, onStartup, paintChildren, 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, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setPreferredSize, setRequestFocusEnabled, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, updateMethods inherited from class java.awt.Containeradd, 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, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, 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, startupComponentMethods inherited from interface com.inductiveautomation.vision.api.client.components.model.QualityMonitorgetDataQuality, getQuality, setDataQuality, setQuality, updateQualityMethods inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionContainergetComponent, getComponentCount, getComponents, getParent, repaint, revalidate
- 
Field Details- 
PANEL_CONTAINS_DEFAULT_BTNThis string is used as a JComponent client property key if the panel contains a default button, or contains a panel who contains a default button. The value of the JComponent client property is the button to make 'default'. Because of how deserialization sets fields before adding components to their parent, the HMIButton cannot truly register itself as default upon deserialization, so the button is passed up to enclosing RootPaneContainer (FHMIWindow) via this property.- See Also:
 
 
- 
- 
Constructor Details- 
BasicContainerpublic BasicContainer()
- 
BasicContainer
 
- 
- 
Method Details- 
setBoundsExThis helps the serializer call the correct bounds setting method.
- 
setPreferredBoundsEx
- 
getSpringLayout
- 
setLayout
- 
isOptimizedDrawingEnabledpublic boolean isOptimizedDrawingEnabled()- Overrides:
- isOptimizedDrawingEnabledin class- JComponent
 
- 
setOptimizedDrawingEnabledpublic void setOptimizedDrawingEnabled(boolean b) 
- 
isCombineRepaintspublic boolean isCombineRepaints()
- 
setCombineRepaintspublic void setCombineRepaints(boolean groupDrawingEnabled) 
- 
add
- 
addComponent- Specified by:
- addComponentin interface- VisionContainer
 
- 
initializeName
- 
privateAddOnly for use with classes that know how to use the BasicContainer. Enforces name uniqueness by callinggetNextName(VisionContainer, String)if a name collision is detected.
- 
getNextName
- 
getComponent- Specified by:
- getComponentin interface- VisionContainer
 
- 
vetoableChange- Specified by:
- vetoableChangein interface- VetoableChangeListener
- Throws:
- PropertyVetoException
 
- 
validateNamepublic static void validateName(String newName, VisionContainer container, Component component) throws IllegalArgumentException - Throws:
- IllegalArgumentException
 
- 
validateName
- 
sanitizeName
- 
remove- Specified by:
- removein interface- VisionContainer
- Overrides:
- removein class- Container
 
- 
moveToFront
- 
moveToBack
- 
moveForward
- 
moveBackward
- 
paintComponent- Overrides:
- paintComponentin class- AbstractVisionPanel
 
- 
paintBackground
- 
paintTexture
- 
paintOverlayOverChildrenprotected boolean paintOverlayOverChildren()- Overrides:
- paintOverlayOverChildrenin class- AbstractVisionPanel
 
- 
setPosition- Specified by:
- setPositionin interface- VisionContainer
 
- 
getPosition
- 
isOffsettingContainerpublic boolean isOffsettingContainer()- Specified by:
- isOffsettingContainerin interface- VisionContainer
 
- 
getSpringInfo
- 
putSpringInfoDeprecated.This call is from a SpringPanel that was serialized with SpringLayout. Try to look at the SpringInfo class to see what kind of new layout constraints to give the component
- 
setRotationpublic void setRotation(int i) 
- 
toString
- 
setLockedDeprecated.
- 
setOpaquepublic void setOpaque(boolean b) - Overrides:
- setOpaquein class- JComponent
 
- 
setSecuritySettingsDeprecated.For serialization.
- 
setBackground- Overrides:
- setBackgroundin class- JComponent
 
- 
setForeground- Overrides:
- setForegroundin class- JComponent
 
- 
isGrouppublic boolean isGroup()
- 
setGrouppublic void setGroup(boolean group) 
- 
layoutAsGrouppublic boolean layoutAsGroup()- Specified by:
- layoutAsGroupin interface- VisionContainer
 
- 
getTexturePath
- 
setTexturePath
 
-