Class PMITabStrip
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.tabstrip.PMITabStrip
- All Implemented Interfaces:
- DynamicPropertyProvider,- LocaleListener,- MutableDynamicPropertyProvider,- StyleProvider,- ComponentLifecycle,- DesignerInitializable,- EnabledEx,- QualityMonitor,- VisionComponent,- MouseListener,- MouseMotionListener,- ImageObserver,- MenuContainer,- Serializable,- EventListener,- Accessible
public class PMITabStrip
extends AbstractVisionPanel
implements MouseListener, MouseMotionListener, EnabledEx, DesignerInitializable
- 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 TypeFieldDescriptionprotected intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelantialias, context, 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 TypeMethodDescriptionvoidintintintintintintfloatintintintintvoidbooleanbooleanbooleanisOpaque()voidlocaleChanged(Locale newLocale) voidMouse events are relayed here after being intercepted by the TabHolderPanel.voidvoidvoidvoidvoidvoidprotected voidSubclasses should override this to provide startup logic.protected voidvoidsetBackground(Color bg) voidsetComponentEnabled(boolean componentEnabled) voidvoidsetCursorCode(int cursorCode) voidsetInterTabSpace(int interTabSpace) voidsetNavigationMode(int navigationMode) voidsetObservable(boolean observable) voidsetOrientation(int orientation) voidsetRenderer(int renderer) voidsetRoundingRadius(int roundingRadius) voidsetSelectedTab(String selectedTab) voidsetSeparatorColor(Color separatorColor) voidsetSeparatorThickness(float separatorThickness) voidsetSizeMode(int sizeMode) voidsetTabData(Dataset tabData) voidsetTextAlignment(int textAlignment) voidsetTextOffset(int textOffset) voidsetTextPadding(int textPadding) Methods inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanelgetAppContext, getDataQuality, getDynamicProps, getProperties, getPropertyValue, getQuality, getStyles, getToolTipText, initStyleListener, isAntialias, isComponentRunning, isPropertyDefined, onShutdown, paintChildren, paintOverlayOverChildren, setAntialias, 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, isOptimizedDrawingEnabled, 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, 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, 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, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
- 
Field Details- 
ORIENTATION_TOPpublic static final int ORIENTATION_TOP- See Also:
 
- 
ORIENTATION_LEFTpublic static final int ORIENTATION_LEFT- See Also:
 
- 
ORIENTATION_BOTTOMpublic static final int ORIENTATION_BOTTOM- See Also:
 
- 
ORIENTATION_RIGHTpublic static final int ORIENTATION_RIGHT- See Also:
 
- 
RENDERER_SIMPLEpublic static final int RENDERER_SIMPLE- See Also:
 
- 
RENDERER_FANCYpublic static final int RENDERER_FANCY- See Also:
 
- 
RENDERER_FOLDERpublic static final int RENDERER_FOLDER- See Also:
 
- 
NAVMODE_DISABLEDpublic static final int NAVMODE_DISABLED- See Also:
 
- 
NAVMODE_SWAP_TO_WINDOWpublic static final int NAVMODE_SWAP_TO_WINDOW- See Also:
 
- 
SIZEMODE_AUTOMATICpublic static final int SIZEMODE_AUTOMATIC- See Also:
 
- 
SIZEMODE_INDIVIDUALpublic static final int SIZEMODE_INDIVIDUAL- See Also:
 
- 
TEXTALIGN_CENTERpublic static final int TEXTALIGN_CENTER- See Also:
 
- 
TEXTALIGN_LEFTpublic static final int TEXTALIGN_LEFT- See Also:
 
- 
TEXTALIGN_RIGHTpublic static final int TEXTALIGN_RIGHT- See Also:
 
- 
cursorCodeprotected int cursorCode
 
- 
- 
Constructor Details- 
PMITabStrippublic PMITabStrip()
 
- 
- 
Method Details- 
initializepublic void initialize()- Specified by:
- initializein interface- DesignerInitializable
 
- 
isOpaquepublic boolean isOpaque()- Overrides:
- isOpaquein class- JComponent
 
- 
paintComponent- Overrides:
- paintComponentin class- AbstractVisionPanel
 
- 
getCursorCodepublic int getCursorCode()- Overrides:
- getCursorCodein class- AbstractVisionPanel
 
- 
onStartupprotected void onStartup()Description copied from class:AbstractVisionPanelSubclasses should override this to provide startup logic.- Overrides:
- onStartupin class- AbstractVisionPanel
 
- 
setCursorCodepublic void setCursorCode(int cursorCode) - Overrides:
- setCursorCodein class- AbstractVisionPanel
 
- 
localeChanged- Specified by:
- localeChangedin interface- LocaleListener
- Overrides:
- localeChangedin class- AbstractVisionPanel
 
- 
setBackground- Overrides:
- setBackgroundin class- JComponent
 
- 
getBackground- Overrides:
- getBackgroundin class- Component
 
- 
getOrientationpublic int getOrientation()- Returns:
- the orientation
 
- 
setOrientationpublic void setOrientation(int orientation) - Parameters:
- orientation- the orientation to set
 
- 
getRendererpublic int getRenderer()- Returns:
- the renderer
 
- 
setRendererpublic void setRenderer(int renderer) - Parameters:
- renderer- the renderer to set
 
- 
getSizeModepublic int getSizeMode()- Returns:
- the sizeMode
 
- 
setSizeModepublic void setSizeMode(int sizeMode) - Parameters:
- sizeMode- the sizeMode to set
 
- 
getTextAlignmentpublic int getTextAlignment()- Returns:
- the textAlignment
 
- 
setTextAlignmentpublic void setTextAlignment(int textAlignment) - Parameters:
- textAlignment- the textAlignment to set
 
- 
getTextOffsetpublic int getTextOffset()- Returns:
- the textOffset
 
- 
setTextOffsetpublic void setTextOffset(int textOffset) - Parameters:
- textOffset- the textOffset to set
 
- 
getTextPaddingpublic int getTextPadding()- Returns:
- the textPadding
 
- 
setTextPaddingpublic void setTextPadding(int textPadding) - Parameters:
- textPadding- the textPadding to set
 
- 
getInterTabSpacepublic int getInterTabSpace()- Returns:
- the interTabSpace
 
- 
setInterTabSpacepublic void setInterTabSpace(int interTabSpace) - Parameters:
- interTabSpace- the interTabSpace to set
 
- 
getRoundingRadiuspublic int getRoundingRadius()- Returns:
- the roundingRadius
 
- 
setRoundingRadiuspublic void setRoundingRadius(int roundingRadius) - Parameters:
- roundingRadius- the roundingRadius to set
 
- 
getSelectedTab- Returns:
- the selectedTab
 
- 
setSelectedTab- Parameters:
- selectedTab- the selectedTab to set
 
- 
getSeparatorThicknesspublic float getSeparatorThickness()- Returns:
- the separatorThickness
 
- 
setSeparatorThicknesspublic void setSeparatorThickness(float separatorThickness) - Parameters:
- separatorThickness- the separatorThickness to set
 
- 
getSeparatorColor- Returns:
- the separatorColor
 
- 
setSeparatorColor- Parameters:
- separatorColor- the separatorColor to set
 
- 
getTabData- Returns:
- the tabData
 
- 
setTabData- Parameters:
- tabData- the tabData to set
 
- 
setCursor
- 
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
 
- 
mouseClickedMouse events are relayed here after being intercepted by the TabHolderPanel.- Specified by:
- mouseClickedin interface- MouseListener
 
- 
mouseEntered- Specified by:
- mouseEnteredin interface- MouseListener
 
- 
mouseExited- Specified by:
- mouseExitedin interface- MouseListener
 
- 
mousePressed- Specified by:
- mousePressedin interface- MouseListener
 
- 
mouseReleased- Specified by:
- mouseReleasedin interface- MouseListener
 
- 
mouseDragged- Specified by:
- mouseDraggedin interface- MouseMotionListener
 
- 
mouseMoved- Specified by:
- mouseMovedin interface- MouseMotionListener
 
- 
isObservablepublic boolean isObservable()
- 
setObservablepublic void setObservable(boolean observable) 
 
-