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.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.inductiveautomation.vision.api.client.components.model.AbstractVisionPanel
antialias, context, dynamicProps
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.ComponentLifecycle
COMPONENT_RUNNING
Fields inherited from interface com.inductiveautomation.vision.api.client.components.model.EnabledEx
DISABLED_BY_PERMISSIONS
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.inductiveautomation.ignition.client.model.LocaleListener
LOCAL_CHANGE_EVENT
Fields inherited from interface com.inductiveautomation.vision.api.client.binding.MutableDynamicPropertyProvider
RESERVED_SET_KEY
Fields 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 TypeMethodDescriptionvoid
int
int
int
int
int
int
float
int
int
int
int
void
boolean
boolean
boolean
isOpaque()
void
localeChanged
(Locale newLocale) void
Mouse events are relayed here after being intercepted by the TabHolderPanel.void
void
void
void
void
void
protected void
Subclasses should override this to provide startup logic.protected void
void
setBackground
(Color bg) void
setComponentEnabled
(boolean componentEnabled) void
void
setCursorCode
(int cursorCode) void
setInterTabSpace
(int interTabSpace) void
setNavigationMode
(int navigationMode) void
setObservable
(boolean observable) void
setOrientation
(int orientation) void
setRenderer
(int renderer) void
setRoundingRadius
(int roundingRadius) void
setSelectedTab
(String selectedTab) void
setSeparatorColor
(Color separatorColor) void
setSeparatorThickness
(float separatorThickness) void
setSizeMode
(int sizeMode) void
setTabData
(Dataset tabData) void
setTextAlignment
(int textAlignment) void
setTextOffset
(int textOffset) void
setTextPadding
(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, updateQuality
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods 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, update
Methods 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, validateTree
Methods 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:
initialize
in interfaceDesignerInitializable
-
isOpaque
public boolean isOpaque()- Overrides:
isOpaque
in classJComponent
-
paintComponent
- Overrides:
paintComponent
in classAbstractVisionPanel
-
getCursorCode
public int getCursorCode()- Overrides:
getCursorCode
in classAbstractVisionPanel
-
onStartup
protected void onStartup()Description copied from class:AbstractVisionPanel
Subclasses should override this to provide startup logic.- Overrides:
onStartup
in classAbstractVisionPanel
-
setCursorCode
public void setCursorCode(int cursorCode) - Overrides:
setCursorCode
in classAbstractVisionPanel
-
localeChanged
- Specified by:
localeChanged
in interfaceLocaleListener
- Overrides:
localeChanged
in classAbstractVisionPanel
-
setBackground
- Overrides:
setBackground
in classJComponent
-
getBackground
- Overrides:
getBackground
in 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:
isComponentEnabled
in interfaceEnabledEx
-
setComponentEnabled
public void setComponentEnabled(boolean componentEnabled) - Specified by:
setComponentEnabled
in interfaceEnabledEx
-
evaluateEnabled
public void evaluateEnabled()- Specified by:
evaluateEnabled
in interfaceEnabledEx
-
mouseClicked
Mouse events are relayed here after being intercepted by the TabHolderPanel.- Specified by:
mouseClicked
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in interfaceMouseListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
isObservable
public boolean isObservable() -
setObservable
public void setObservable(boolean observable)
-