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 Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier 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.AbstractVisionPanel
antialias, context, dynamicPropsFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
COMPONENT_RUNNINGFields inherited from interface com.inductiveautomation.vision.api.client.components.model.EnabledEx
DISABLED_BY_PERMISSIONSFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENTFields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProvider
RESERVED_SET_KEYFields 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 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.AbstractVisionPanel
getAppContext, 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.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, 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.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, validateTreeMethods 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, 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_TOP
public static final int ORIENTATION_TOP- See Also:
-
ORIENTATION_LEFT
public static final int ORIENTATION_LEFT- See Also:
-
ORIENTATION_BOTTOM
public static final int ORIENTATION_BOTTOM- See Also:
-
ORIENTATION_RIGHT
public static final int ORIENTATION_RIGHT- See Also:
-
RENDERER_SIMPLE
public static final int RENDERER_SIMPLE- See Also:
-
RENDERER_FANCY
public static final int RENDERER_FANCY- See Also:
-
RENDERER_FOLDER
public static final int RENDERER_FOLDER- See Also:
-
NAVMODE_DISABLED
public static final int NAVMODE_DISABLED- See Also:
-
NAVMODE_SWAP_TO_WINDOW
public static final int NAVMODE_SWAP_TO_WINDOW- See Also:
-
SIZEMODE_AUTOMATIC
public static final int SIZEMODE_AUTOMATIC- See Also:
-
SIZEMODE_INDIVIDUAL
public static final int SIZEMODE_INDIVIDUAL- See Also:
-
TEXTALIGN_CENTER
public static final int TEXTALIGN_CENTER- See Also:
-
TEXTALIGN_LEFT
public static final int TEXTALIGN_LEFT- See Also:
-
TEXTALIGN_RIGHT
public static final int TEXTALIGN_RIGHT- See Also:
-
cursorCode
protected int cursorCode
-
-
Constructor Details
-
PMITabStrip
public PMITabStrip()
-
-
Method Details
-
initialize
public void initialize()- Specified by:
initializein interfaceDesignerInitializable
-
isOpaque
public boolean isOpaque()- Overrides:
isOpaquein classJComponent
-
paintComponent
- Overrides:
paintComponentin classAbstractVisionPanel
-
getCursorCode
public int getCursorCode()- Overrides:
getCursorCodein classAbstractVisionPanel
-
onStartup
protected void onStartup()Description copied from class:AbstractVisionPanelSubclasses should override this to provide startup logic.- Overrides:
onStartupin classAbstractVisionPanel
-
setCursorCode
public void setCursorCode(int cursorCode) - Overrides:
setCursorCodein classAbstractVisionPanel
-
localeChanged
- Specified by:
localeChangedin interfaceLocaleListener- Overrides:
localeChangedin classAbstractVisionPanel
-
setBackground
- Overrides:
setBackgroundin classJComponent
-
getBackground
- Overrides:
getBackgroundin classComponent
-
getOrientation
public int getOrientation()- Returns:
- the orientation
-
setOrientation
public void setOrientation(int orientation) - Parameters:
orientation- the orientation to set
-
getRenderer
public int getRenderer()- Returns:
- the renderer
-
setRenderer
public void setRenderer(int renderer) - Parameters:
renderer- the renderer to set
-
getSizeMode
public int getSizeMode()- Returns:
- the sizeMode
-
setSizeMode
public void setSizeMode(int sizeMode) - Parameters:
sizeMode- the sizeMode to set
-
getTextAlignment
public int getTextAlignment()- Returns:
- the textAlignment
-
setTextAlignment
public void setTextAlignment(int textAlignment) - Parameters:
textAlignment- the textAlignment to set
-
getTextOffset
public int getTextOffset()- Returns:
- the textOffset
-
setTextOffset
public void setTextOffset(int textOffset) - Parameters:
textOffset- the textOffset to set
-
getTextPadding
public int getTextPadding()- Returns:
- the textPadding
-
setTextPadding
public void setTextPadding(int textPadding) - Parameters:
textPadding- the textPadding to set
-
getInterTabSpace
public int getInterTabSpace()- Returns:
- the interTabSpace
-
setInterTabSpace
public void setInterTabSpace(int interTabSpace) - Parameters:
interTabSpace- the interTabSpace to set
-
getRoundingRadius
public int getRoundingRadius()- Returns:
- the roundingRadius
-
setRoundingRadius
public void setRoundingRadius(int roundingRadius) - Parameters:
roundingRadius- the roundingRadius to set
-
getSelectedTab
- Returns:
- the selectedTab
-
setSelectedTab
- Parameters:
selectedTab- the selectedTab to set
-
getSeparatorThickness
public float getSeparatorThickness()- Returns:
- the separatorThickness
-
setSeparatorThickness
public 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
-
isComponentEnabled
public boolean isComponentEnabled()- Specified by:
isComponentEnabledin interfaceEnabledEx
-
setComponentEnabled
public void setComponentEnabled(boolean componentEnabled) - Specified by:
setComponentEnabledin interfaceEnabledEx
-
evaluateEnabled
public void evaluateEnabled()- Specified by:
evaluateEnabledin interfaceEnabledEx
-
mouseClicked
Mouse events are relayed here after being intercepted by the TabHolderPanel.- Specified by:
mouseClickedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
isObservable
public boolean isObservable() -
setObservable
public void setObservable(boolean observable)
-