Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

To get a list of all available functions that can be used in scripts to interact with a component, print a dir() of that component to the Output Console:

  1. Place the component on a window.

  2. Run the print dir() script from the Script Console (or in a Button). The results will appear in the Output Console (can be opened using Ctrl-Shift-C).

Info

You can use the Choose Property picker. Choose any property (such as .name), then just backspace it out, so the event handler points to the main component itself).





Script Example

Code Block
languagepy
titleDir() function of the OEE Downtime Table component
print dir(event.source.parent.getComponent('OEE Downtime Table'))
Panel
borderColorgreen
borderStylesolid
titleResult of: print dir(event.source.parent.getComponent('OEE Downtime Table'))

['ABORT', 'ALLBITS', 'AccessibleJComponent', 'BOTTOM_ALIGNMENT', 'BaselineResizeBehavior', 'CENTER_ALIGNMENT', 'COMPONENT_LOCKED', 'COMPONENT_PERMISSIONS', 'COMPONENT_RUNNING', 'COMPONENT_SECURITY', 'COMPONENT_TRANSLATIONS', 'DISABLED_BY_PERMISSIONS', 'ERROR', 'FRAMEBITS', 'GRID_VIEW_TYPE', 'HEIGHT', 'LEFT_ALIGNMENT', 'PROPERTIES', 'RESERVED_SET_KEY', 'RIGHT_ALIGNMENT', 'SOMEBITS', 'TOOL_TIP_TEXT_KEY', 'TOP_ALIGNMENT', 'TREE_VIEW_TYPE', 'UI', 'UIClassID', 'UNDEFINED_CONDITION', 'WHEN_ANCESTOR_OF_FOCUSED_COMPONENT', 'WHEN_FOCUSED', 'WHEN_IN_FOCUSED_WINDOW', 'WIDTH', '__class__', '__copy__', '__deepcopy__', '__delattr__', '__doc__', '__eq__', '__getattribute__', '__hash__', '__init__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', '__unicode__', 'accessibleContext', 'action', 'actionMap', 'activityTimeout', 'add', 'addAncestorListener', 'addComponentListener', 'addContainerListener', 'addFocusListener', 'addHierarchyBoundsListener', 'addHierarchyListener', 'addInputMethodListener', 'addKeyListener', 'addMouseListener', 'addMouseMotionListener', 'addMouseWheelListener', 'addNotify', 'addPropertyChangeListener', 'addVetoableChangeListener', 'alignmentX', 'alignmentY', 'ancestorAdded', 'ancestorListener', 'ancestorListeners', 'ancestorMoved', 'ancestorRemoved', 'ancestorResized', 'antialias', 'appContext', 'applyComponentOrientation', 'areFocusTraversalKeysSet', 'autoRowHeightEnabled', 'autoscrolls', 'backColor', 'backFont', 'backText', 'background', 'backgroundSet', 'baselineResizeBehavior', 'basicBackground', 'basicFont', 'basicForeground', 'border', 'bounds', 'caretPositionChanged', 'changeEquipmentIconPath', 'changePaneStyle', 'checkImage', 'class', 'colorModel', 'columnAttributesData', 'componentAdded', 'componentCount', 'componentEnabled', 'componentHidden', 'componentListener', 'componentListeners', 'componentMoved', 'componentOrientation', 'componentPopupMenu', 'componentRemoved', 'componentResized', 'componentShown', 'components', 'computeVisibleRect', 'containerListener', 'containerListeners', 'contains', 'content', 'countComponents', 'createImage', 'createToolTip', 'createVolatileImage', 'cursor', 'cursorCode', 'cursorSet', 'data', 'dataQuality', 'debugGraphicsOptions', 'deliverEvent', 'disable', 'dispatchEvent', 'displayable', 'doLayout', 'doubleBuffered', 'downtimeReasonButtonHeight', 'downtimeReasonButtonWidth', 'downtimeReasonListViewType', 'dropTarget', 'dynamicProps', 'editable', 'enable', 'enableInputMethods', 'enableNotes', 'enabled', 'endDate', 'equals', 'equipmentPath', 'equipmentStateClassIconPath', 'equipmentStateIconPath', 'evaluateEnabled', 'excludedEquipmentPath', 'extensionFunctions', 'findComponentAt', 'firePropertyChange', 'focusCycleRoot', 'focusCycleRootAncestor', 'focusGained', 'focusListener', 'focusListeners', 'focusLost', 'focusOwner', 'focusTraversable', 'focusTraversalKeysEnabled', 'focusTraversalPolicy', 'focusTraversalPolicyProvider', 'focusTraversalPolicySet', 'focusable', 'font', 'fontSet', 'foreground', 'foregroundSet', 'getAccessibleContext', 'getActionForKeyStroke', 'getActionMap', 'getActivityTimeout', 'getAlignmentX', 'getAlignmentY', 'getAncestorListeners', 'getAppContext', 'getAutoscrolls', 'getBackColor', 'getBackFont', 'getBackText', 'getBackground', 'getBaseline', 'getBaselineResizeBehavior', 'getBasicBackground', 'getBasicFont', 'getBasicForeground', 'getBorder', 'getBounds', 'getChangeEquipmentIconPath', 'getClass', 'getClientProperty', 'getColorModel', 'getColumnAttributesData', 'getComponent', 'getComponentAt', 'getComponentCount', 'getComponentListeners', 'getComponentOrientation', 'getComponentPopupMenu', 'getComponentZOrder', 'getComponents', 'getConditionForKeyStroke', 'getContainerListeners', 'getContent', 'getCursor', 'getCursorCode', 'getData', 'getDataQuality', 'getDebugGraphicsOptions', 'getDefaultLocale', 'getDefaultRowConfiguration', 'getDowntimeReasonButtonHeight', 'getDowntimeReasonButtonWidth', 'getDowntimeReasonListViewType', 'getDropTarget', 'getDynamicProps', 'getEndDate', 'getEquipmentPath', 'getEquipmentStateClassIconPath', 'getEquipmentStateIconPath', 'getExcludedEquipmentPath', 'getExtensionFunctions', 'getFocusCycleRootAncestor', 'getFocusListeners', 'getFocusTraversalKeys', 'getFocusTraversalKeysEnabled', 'getFocusTraversalPolicy', 'getFont', 'getFontMetrics', 'getForeground', 'getGraphics', 'getGraphicsConfiguration', 'getGridColor', 'getHeaderBackground', 'getHeaderFont', 'getHeaderForeground', 'getHeight', 'getHierarchyBoundsListeners', 'getHierarchyListeners', 'getHorizontalScrollbarHeight', 'getIgnoreRepaint', 'getInheritsPopupMenu', 'getInputContext', 'getInputMap', 'getInputMethodListeners', 'getInputMethodRequests', 'getInputVerifier', 'getInsets', 'getKeyListeners', 'getLayout', 'getLeftArrowIconPath', 'getListeners', 'getLocale', 'getLocation', 'getLocationOnScreen', 'getMaxSlideHeight', 'getMaxSlideWidth', 'getMaximumSize', 'getMaximumSlidePosition', 'getMinimumSize', 'getMouseListeners', 'getMouseMotionListeners', 'getMousePosition', 'getMouseWheelListeners', 'getName', 'getNextFocusableComponent', 'getNoteDowntimeReasonIconPath', 'getOther', 'getPane', 'getParent', 'getPeer', 'getPopupLocation', 'getPreferredSize', 'getProperties', 'getPropertyChangeListeners', 'getPropertyValue', 'getRegisteredKeyStrokes', 'getRevertToOriginalCodeIconPath', 'getRightArrowIconPath', 'getRollupTimeSpan', 'getRootPane', 'getRowHeight', 'getRunLookBackCount', 'getSaveColor', 'getSaveFont', 'getSaveText', 'getSelectedRow', 'getSelectionBackground', 'getSelectionForeground', 'getSize', 'getSlideBackground', 'getSlideDirection', 'getSlideFont', 'getSlideForeground', 'getSlideType', 'getSliderKnobIconPath', 'getSplitDowntimeReasonIconPath', 'getStartDate', 'getStyles', 'getTable', 'getTableBackground', 'getTitleBackground', 'getTitleFont', 'getTitleForeground', 'getToolTipLocation', 'getToolTipText', 'getToolkit', 'getTopLevelAncestor', 'getTransferHandler', 'getTreeLock', 'getUI', 'getUIClassID', 'getVerifyInputWhenFocusTarget', 'getVerticalScrollbarWidth', 'getVetoableChangeListeners', 'getVisibleRect', 'getWidth', 'getX', 'getY', 'gotFocus', 'grabFocus', 'graphics', 'graphicsConfiguration', 'gridColor', 'handleEvent', 'hasFocus', 'hashCode', 'headerBackground', 'headerFont', 'headerForeground', 'height', 'hide', 'hierarchyBoundsListener', 'hierarchyBoundsListeners', 'hierarchyChanged', 'hierarchyListener', 'hierarchyListeners', 'horizontalScrollbarHeight', 'ignoreRepaint', 'ignoreResizeEvent', 'imageUpdate', 'inheritsPopupMenu', 'initializeContentPane', 'initializeSlidePane', 'inputContext', 'inputMap', 'inputMethodListener', 'inputMethodListeners', 'inputMethodRequests', 'inputMethodTextChanged', 'inputVerifier', 'insets', 'inside', 'invalidate', 'isAncestorOf', 'isAntialias', 'isAutoRowHeightEnabled', 'isBackgroundSet', 'isComponentEnabled', 'isCursorSet', 'isDisplayable', 'isDoubleBuffered', 'isEditable', 'isEnableNotes', 'isEnabled', 'isFocusCycleRoot', 'isFocusOwner', 'isFocusTraversable', 'isFocusTraversalPolicyProvider', 'isFocusTraversalPolicySet', 'isFocusable', 'isFontSet', 'isForegroundSet', 'isIgnoreResizeEvent', 'isLightweight', 'isLightweightComponent', 'isManagingFocus', 'isMaximumSizeSet', 'isMinimumSizeSet', 'isOpaque', 'isOptimizedDrawingEnabled', 'isPaintingForPrint', 'isPaintingTile', 'isPreferredSizeSet', 'isPropertyDefined', 'isRequestFocusEnabled', 'isShowHorizontalLines', 'isShowShortStops', 'isShowVerticalLines', 'isShowing', 'isUnknownStateAsUnplannedDowntime', 'isValid', 'isValidateRoot', 'isVisible', 'keyDown', 'keyListener', 'keyListeners', 'keyPressed', 'keyReleased', 'keyTyped', 'keyUp', 'layout', 'leftArrowIconPath', 'lightweight', 'list', 'loadIcon', 'locale', 'localeChanged', 'locate', 'location', 'locationOnScreen', 'lostFocus', 'managingFocus', 'maxSlideHeight', 'maxSlideWidth', 'maximumSize', 'maximumSizeSet', 'maximumSlidePosition', 'minimumSize', 'minimumSizeSet', 'mouseClicked', 'mouseDown', 'mouseDrag', 'mouseDragged', 'mouseEnter', 'mouseEntered', 'mouseExit', 'mouseExited', 'mouseListener', 'mouseListeners', 'mouseMotionListener', 'mouseMotionListeners', 'mouseMove', 'mouseMoved', 'mousePosition', 'mousePressed', 'mouseReleased', 'mouseUp', 'mouseWheelListener', 'mouseWheelListeners', 'mouseWheelMoved', 'move', 'name', 'navigateTo', 'nextFocus', 'nextFocusableComponent', 'noteDowntimeReasonIconPath', 'notify', 'notifyAfterCollapse', 'notifyAfterExpand', 'notifyAll', 'notifyBeforeCollapse', 'notifyBeforeExpand', 'notifyCancel', 'notifyResized', 'notifySelectedRowChanged', 'notifySessionListener', 'notifyUpdate', 'onShutdown', 'onStartup', 'opaque', 'optimizedDrawingEnabled', 'other', 'paint', 'paintAll', 'paintComponents', 'paintImmediately', 'paintingForPrint', 'paintingTile', 'pane', 'parent', 'peer', 'postEvent', 'preferredSize', 'preferredSizeSet', 'prepareImage', 'print', 'printAll', 'printComponents', 'properties', 'propertyChange', 'propertyChangeListener', 'propertyChangeListeners', 'putClientProperty', 'registerKeyboardAction', 'registeredKeyStrokes', 'remove', 'removeAll', 'removeAncestorListener', 'removeComponentListener', 'removeContainerListener', 'removeFocusListener', 'removeHierarchyBoundsListener', 'removeHierarchyListener', 'removeInputMethodListener', 'removeKeyListener', 'removeMouseListener', 'removeMouseMotionListener', 'removeMouseWheelListener', 'removeNotify', 'removePropertyChangeListener', 'removeVetoableChangeListener', 'repaint', 'requestDefaultFocus', 'requestFocus', 'requestFocusEnabled', 'requestFocusInWindow', 'resetKeyboardActions', 'reshape', 'resize', 'revalidate', 'revertToOriginalCodeIconPath', 'rightArrowIconPath', 'rollupTimeSpan', 'rootPane', 'rowHeight', 'runLookBackCount', 'saveColor', 'saveFont', 'saveText', 'scrollRectToVisible', 'selectedRow', 'selectionBackground', 'selectionForeground', 'setActionMap', 'setActivityTimeout', 'setAlignmentX', 'setAlignmentY', 'setAntialias', 'setAutoRowHeightEnabled', 'setAutoscrolls', 'setBackColor', 'setBackFont', 'setBackText', 'setBackground', 'setBorder', 'setBounds', 'setChangeEquipmentIconPath', 'setColumnAttributesData', 'setComponentEnabled', 'setComponentOrientation', 'setComponentPopupMenu', 'setComponentZOrder', 'setCursor', 'setCursorCode', 'setData', 'setDataQuality', 'setDebugGraphicsOptions', 'setDefaultLocale', 'setDefaultRowConfiguration', 'setDoubleBuffered', 'setDowntimeReasonButtonHeight', 'setDowntimeReasonButtonWidth', 'setDowntimeReasonListViewType', 'setDropTarget', 'setDynamicProps', 'setEditable', 'setEnableNotes', 'setEnabled', 'setEndDate', 'setEquipmentPath', 'setEquipmentStateClassIconPath', 'setEquipmentStateIconPath', 'setExcludedEquipmentPath', 'setExtensionFunctions', 'setFocusCycleRoot', 'setFocusTraversalKeys', 'setFocusTraversalKeysEnabled', 'setFocusTraversalPolicy', 'setFocusTraversalPolicyProvider', 'setFocusable', 'setFont', 'setForeground', 'setGridColor', 'setHeaderBackground', 'setHeaderFont', 'setHeaderForeground', 'setHorizontalScrollbarHeight', 'setIgnoreRepaint', 'setInheritsPopupMenu', 'setInputMap', 'setInputVerifier', 'setLayout', 'setLeftArrowIconPath', 'setLocale', 'setLocation', 'setMaxSlideHeight', 'setMaxSlideWidth', 'setMaximumSize', 'setMaximumSlidePosition', 'setMinimumSize', 'setName', 'setNextFocusableComponent', 'setNoteDowntimeReasonIconPath', 'setOpaque', 'setPane', 'setPreferredSize', 'setPropertyValue', 'setRequestFocusEnabled', 'setRevertToOriginalCodeIconPath', 'setRightArrowIconPath', 'setRollupTimeSpan', 'setRowHeight', 'setRunLookBackCount', 'setSaveColor', 'setSaveFont', 'setSaveText', 'setSelectedRow', 'setSelectionBackground', 'setSelectionForeground', 'setShowHorizontalLines', 'setShowShortStops', 'setShowVerticalLines', 'setSize', 'setSlideBackground', 'setSlideDirection', 'setSlideFont', 'setSlideForeground', 'setSlideType', 'setSliderKnobIconPath', 'setSplitDowntimeReasonIconPath', 'setStartDate', 'setStyles', 'setTableBackground', 'setTitleBackground', 'setTitleFont', 'setTitleForeground', 'setToolTipText', 'setTransferHandler', 'setUI', 'setUnknownStateAsUnplannedDowntime', 'setVerifyInputWhenFocusTarget', 'setVerticalScrollbarWidth', 'setVisible', 'show', 'showDowntimeNoteView', 'showDowntimeReasonListView', 'showDowntimeSplitView', 'showEquipmentListView', 'showHorizontalLines', 'showShortStops', 'showSlidingPane', 'showVerticalLines', 'showing', 'shutdownComponent', 'size', 'slideBackground', 'slideDirection', 'slideFont', 'slideForeground', 'slideType', 'sliderKnobIconPath', 'splitDowntimeReasonIconPath', 'startDate', 'startupComponent', 'styles', 'table', 'tableBackground', 'titleBackground', 'titleFont', 'titleForeground', 'toString', 'toolTipText', 'toolkit', 'topLevelAncestor', 'transferFocus', 'transferFocusBackward', 'transferFocusDownCycle', 'transferFocusUpCycle', 'transferHandler', 'treeLock', 'unknownStateAsUnplannedDowntime', 'unregisterKeyboardAction', 'update', 'updateQuality', 'updateUI', 'valid', 'validate', 'validateRoot', 'verifyInputWhenFocusTarget', 'verticalScrollbarWidth', 'vetoableChange', 'vetoableChangeListener', 'vetoableChangeListeners', 'visible', 'visibleRect', 'wait', 'width', 'x', 'y']




Keywords

component function, component functions, dir()


Pagedetails