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,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.beans.VetoableChangeListener,- java.io.Serializable,- java.util.EventListener,- javax.accessibility.Accessible
 - Direct Known Subclasses:
- VisionTemplate
 
 public class BasicContainer extends AbstractVisionPanel implements VisionContainer 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:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class javax.swing.JPaneljavax.swing.JPanel.AccessibleJPanel
 - 
Nested classes/interfaces inherited from class javax.swing.JComponentjavax.swing.JComponent.AccessibleJComponent
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static java.lang.StringPANEL_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.- 
Fields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelantialias, context, cursorCode, dynamicProps
 - 
Fields inherited from class javax.swing.JComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 - 
Fields inherited from class java.awt.ComponentaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 - 
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycleCOMPONENT_RUNNING
 - 
Fields inherited from interface java.awt.image.ImageObserverABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 - 
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListenerLOCAL_CHANGE_EVENT
 - 
Fields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProviderRESERVED_SET_KEY
 - 
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionComponentCOMPONENT_LOCKED, COMPONENT_PERMISSIONS, COMPONENT_SECURITY, COMPONENT_TRANSLATIONS
 
- 
 - 
Constructor SummaryConstructors Constructor Description BasicContainer()BasicContainer(java.lang.String name)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.awt.Componentadd(java.awt.Component comp)voidaddComponent(java.awt.Component comp)java.awt.ComponentgetComponent(java.lang.String name)static java.lang.StringgetNextName(VisionContainer container, java.lang.String name)intgetPosition(java.awt.Component comp)SpringInfogetSpringInfo(java.awt.Component comp)javax.swing.SpringLayoutgetSpringLayout()java.lang.StringgetTexturePath()static voidinitializeName(java.awt.Component newComponent, VisionContainer container)booleanisCombineRepaints()booleanisGroup()booleanisOffsettingContainer()booleanisOpaque()booleanisOptimizedDrawingEnabled()booleanlayoutAsGroup()voidmoveBackward(java.awt.Component comp)voidmoveForward(java.awt.Component comp)voidmoveToBack(java.awt.Component comp)voidmoveToFront(java.awt.Component comp)protected voidpaintBackground(java.awt.Graphics g)voidpaintComponent(java.awt.Graphics g)protected booleanpaintOverlayOverChildren()protected voidpaintTexture(java.awt.Graphics g)voidprivateAdd(java.awt.Component comp)Only for use with classes that know how to use the BasicContainer.voidputSpringInfo(java.awt.Component comp, SpringInfo si)Deprecated.voidremove(java.awt.Component comp)static java.lang.StringsanitizeName(java.lang.String name)voidsetBackground(java.awt.Color bg)voidsetBoundsEx(java.awt.geom.Rectangle2D r2d)This helps the serializer call the correct bounds setting method.voidsetCombineRepaints(boolean groupDrawingEnabled)voidsetForeground(java.awt.Color fg)voidsetGroup(boolean group)voidsetLayout(java.awt.LayoutManager mgr)voidsetLocked(java.awt.Component c, boolean lock)Deprecated.voidsetOpaque(boolean b)voidsetOptimizedDrawingEnabled(boolean b)voidsetPosition(java.awt.Component comp, int i)voidsetPreferredBoundsEx(java.awt.geom.Rectangle2D r2d)voidsetRotation(int i)voidsetSecuritySettings(java.lang.String name, SecuritySettings settings)Deprecated.voidsetTexturePath(java.lang.String texturePath)java.lang.StringtoString()static booleanvalidateName(java.lang.String name)static voidvalidateName(java.lang.String newName, VisionContainer container, java.awt.Component component)voidvetoableChange(java.beans.PropertyChangeEvent evt)- 
Methods 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, updateQuality
 - 
Methods inherited from class javax.swing.JPanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 - 
Methods 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, 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, update
 - 
Methods 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, validateTree
 - 
Methods 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, transferFocusUpCycle
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecyclegetAppContext, shutdownComponent, startupComponent
 - 
Methods inherited from interface com.inductiveautomation.vision.api.client.components.model.QualityMonitorgetDataQuality, getQuality, setDataQuality, setQuality, updateQuality
 - 
Methods inherited from interface com.inductiveautomation.vision.api.client.components.model.VisionContainergetComponent, getComponentCount, getComponents, getParent, repaint, revalidate
 
- 
 
- 
- 
- 
Field Detail- 
PANEL_CONTAINS_DEFAULT_BTNpublic static final java.lang.String PANEL_CONTAINS_DEFAULT_BTN This 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:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
setBoundsExpublic void setBoundsEx(java.awt.geom.Rectangle2D r2d) This helps the serializer call the correct bounds setting method.
 - 
setPreferredBoundsExpublic void setPreferredBoundsEx(java.awt.geom.Rectangle2D r2d) 
 - 
getSpringLayoutpublic javax.swing.SpringLayout getSpringLayout() 
 - 
setLayoutpublic void setLayout(java.awt.LayoutManager mgr) - Overrides:
- setLayoutin class- java.awt.Container
 
 - 
isOptimizedDrawingEnabledpublic boolean isOptimizedDrawingEnabled() - Overrides:
- isOptimizedDrawingEnabledin class- javax.swing.JComponent
 
 - 
setOptimizedDrawingEnabledpublic void setOptimizedDrawingEnabled(boolean b) 
 - 
isCombineRepaintspublic boolean isCombineRepaints() 
 - 
setCombineRepaintspublic void setCombineRepaints(boolean groupDrawingEnabled) 
 - 
addpublic java.awt.Component add(java.awt.Component comp) - Overrides:
- addin class- java.awt.Container
 
 - 
addComponentpublic void addComponent(java.awt.Component comp) - Specified by:
- addComponentin interface- VisionContainer
 
 - 
initializeNamepublic static void initializeName(java.awt.Component newComponent, VisionContainer container)
 - 
privateAddpublic void privateAdd(java.awt.Component comp) Only for use with classes that know how to use the BasicContainer. Enforces name uniqueness by callinggetNextName(VisionContainer, String)if a name collision is detected.
 - 
getNextNamepublic static java.lang.String getNextName(VisionContainer container, java.lang.String name) 
 - 
getComponentpublic java.awt.Component getComponent(java.lang.String name) - Specified by:
- getComponentin interface- VisionContainer
 
 - 
vetoableChangepublic void vetoableChange(java.beans.PropertyChangeEvent evt) throws java.beans.PropertyVetoException- Specified by:
- vetoableChangein interface- java.beans.VetoableChangeListener
- Throws:
- java.beans.PropertyVetoException
 
 - 
validateNamepublic static void validateName(java.lang.String newName, VisionContainer container, java.awt.Component component) throws java.lang.IllegalArgumentException- Throws:
- java.lang.IllegalArgumentException
 
 - 
validateNamepublic static boolean validateName(java.lang.String name) 
 - 
sanitizeNamepublic static java.lang.String sanitizeName(java.lang.String name) 
 - 
removepublic void remove(java.awt.Component comp) - Specified by:
- removein interface- VisionContainer
- Overrides:
- removein class- java.awt.Container
 
 - 
moveToFrontpublic void moveToFront(java.awt.Component comp) 
 - 
moveToBackpublic void moveToBack(java.awt.Component comp) 
 - 
moveForwardpublic void moveForward(java.awt.Component comp) 
 - 
moveBackwardpublic void moveBackward(java.awt.Component comp) 
 - 
paintComponentpublic void paintComponent(java.awt.Graphics g) - Overrides:
- paintComponentin class- AbstractVisionPanel
 
 - 
paintBackgroundprotected void paintBackground(java.awt.Graphics g) 
 - 
paintTextureprotected void paintTexture(java.awt.Graphics g) 
 - 
paintOverlayOverChildrenprotected boolean paintOverlayOverChildren() - Overrides:
- paintOverlayOverChildrenin class- AbstractVisionPanel
 
 - 
setPositionpublic void setPosition(java.awt.Component comp, int i)- Specified by:
- setPositionin interface- VisionContainer
 
 - 
getPositionpublic int getPosition(java.awt.Component comp) 
 - 
isOffsettingContainerpublic boolean isOffsettingContainer() - Specified by:
- isOffsettingContainerin interface- VisionContainer
 
 - 
getSpringInfopublic SpringInfo getSpringInfo(java.awt.Component comp) 
 - 
putSpringInfo@Deprecated public void putSpringInfo(java.awt.Component comp, SpringInfo si)Deprecated.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) 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.awt.Component
 
 - 
setLocked@Deprecated public void setLocked(java.awt.Component c, boolean lock)Deprecated.
 - 
isOpaquepublic boolean isOpaque() - Overrides:
- isOpaquein class- javax.swing.JComponent
 
 - 
setOpaquepublic void setOpaque(boolean b) - Overrides:
- setOpaquein class- javax.swing.JComponent
 
 - 
setSecuritySettings@Deprecated public void setSecuritySettings(java.lang.String name, SecuritySettings settings)Deprecated.For serialization.
 - 
setBackgroundpublic void setBackground(java.awt.Color bg) - Overrides:
- setBackgroundin class- javax.swing.JComponent
 
 - 
setForegroundpublic void setForeground(java.awt.Color fg) - Overrides:
- setForegroundin class- javax.swing.JComponent
 
 - 
isGrouppublic boolean isGroup() 
 - 
setGrouppublic void setGroup(boolean group) 
 - 
layoutAsGrouppublic boolean layoutAsGroup() - Specified by:
- layoutAsGroupin interface- VisionContainer
 
 - 
getTexturePathpublic java.lang.String getTexturePath() 
 - 
setTexturePathpublic void setTexturePath(java.lang.String texturePath) 
 
- 
 
-