Class SourcePaneFX

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.BorderPane
pamViewFX.fxNodes.PamBorderPane
pamViewFX.fxNodes.utilityPanes.SourcePaneFX
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget
Direct Known Subclasses:
GroupedSourcePaneFX, PlaybackSourcePane

public class SourcePaneFX extends PamBorderPane
Standard panel for dialogs that shows a list of available data sources and, optionally a list of data channels.

This is for general use within other dialog panels.

Author:
Doug Gillespie, Jamie Macaulay
  • Property Summary Link icon

    Properties inherited from class javafx.scene.layout.BorderPane Link icon

    bottom, center, left, right, top

    Properties inherited from class javafx.scene.layout.Region Link icon

    background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, width

    Properties inherited from class javafx.scene.Parent Link icon

    needsLayout

    Properties inherited from class javafx.scene.Node Link icon

    accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, focusVisible, focusWithin, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
     
  • Field Summary Link icon

    Fields inherited from class javafx.scene.layout.Region Link icon

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    Fields inherited from class javafx.scene.Node Link icon

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    SourcePaneFX(Class sourceType, boolean hasChannels, boolean includeSubClasses)
    Construct a panel without a border
    SourcePaneFX(String borderTitle, Class sourceType, boolean hasChannels, boolean includeSubClasses)
    Construct a panel with a titles border
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    addSelectionListener(javafx.beans.value.ChangeListener listener)
    Add a listener to the data source drop down list
    void
    addSource(PamDataBlock pamDataBlock)
    Add an additional source to the list of available datas.
    void
     
    void
    addSourceType(Class sourceType, boolean includeSubClasses)
    Set the source type for this SourcePanel
    void
    Clear the list of excluded data blocks.
    void
    excludeDataBlock(PamDataBlock block, boolean exclude)
    Exclude specific data blocks from the source list.
     
    javafx.scene.control.CheckBox[]
     
    javafx.scene.control.Label
     
    int
    Get a list of selected channels
    Get the channel validator for the source pane.
    javafx.scene.control.ComboBox<PamDataBlock>
    Get the combo box which holds the datablocks
    int
     
    Return the selected data source
    int
    Get the number of items in the list.
    int
    Get the currently selected source index
     
     
    get the data source type for this SourcePanel
    javafx.scene.control.Label
    Get the title label.
    boolean
    Check if a single channel is selected.
    boolean
     
    boolean
    removeSource(PamDataBlock pamDataBlock)
    Remove an source from the list of available datas.
    void
     
    void
    setBorderTitle(String borderTitle)
     
    void
    setChannelList(int channelList)
    Set the current channel selection
    void
    Set a required class type, e.g.
    void
    setEnabled(boolean enabled)
     
    void
    setEnabledWithChannels(boolean enabled)
     
    void
    setHasChannels(boolean hasChannels)
     
    void
    setLocalisationRequirements(int localisationRequirements)
     
    boolean
    setSource(String sourceName)
    Set the current data source using the data source name
    void
    setSource(PamDataBlock sourceBlock)
    Set the current data source by block reference
    void
    setSourceIndex(int sourceIndex)
     
    boolean
    Fill the list of available data sources, taking into account the list of excluded sources
    boolean
    setSourceList(boolean replaceChosen)
     
    void
    Set a tooltip text for the source panel.
    void
    setTitleFont(javafx.scene.text.Font titleFont)
    // * Set the font of the title label whihc sits above the datablock ComboBox
    void
    Tell the pane the source has changed.

    Methods inherited from class pamViewFX.fxNodes.PamBorderPane Link icon

    setBottomSpace, setLeftSpace, setRightSpace, setTopSpace

    Methods inherited from class javafx.scene.layout.BorderPane Link icon

    bottomProperty, centerProperty, clearConstraints, getAlignment, getBottom, getCenter, getContentBias, getLeft, getMargin, getRight, getTop, leftProperty, rightProperty, setAlignment, setBottom, setCenter, setLeft, setMargin, setRight, setTop, topProperty

    Methods inherited from class javafx.scene.layout.Pane Link icon

    getChildren

    Methods inherited from class javafx.scene.layout.Region Link icon

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getClassCssMetaData, getCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPositionX, snapPositionY, snapSizeX, snapSizeY, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    Methods inherited from class javafx.scene.Parent Link icon

    getBaselineOffset, getChildrenUnmodifiable, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout

    Methods inherited from class javafx.scene.Node Link icon

    accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isFocusVisible, isFocusWithin, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setEffect, setEventDispatcher, setFocusTraversable, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visibleProperty

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface javafx.css.Styleable Link icon

    getStyleableNode
  • Constructor Details Link icon

    • SourcePaneFX Link icon

      public SourcePaneFX(String borderTitle, Class sourceType, boolean hasChannels, boolean includeSubClasses)
      Construct a panel with a titles border
      Parameters:
      borderTitle - Title to go in border
      sourceType - Data Source type
      hasChannels - Include a set of checkboxes to list available channels
      includeSubClasses - include all subclasses of sourceType in the list.
    • SourcePaneFX Link icon

      public SourcePaneFX(Class sourceType, boolean hasChannels, boolean includeSubClasses)
      Construct a panel without a border
      Parameters:
      sourceType - Data Source type
      hasChannels - Include a set of checkboxes to list available channels
      include - subclasses of the sourceType
  • Method Details Link icon

    • setEnabled Link icon

      public void setEnabled(boolean enabled)
    • setEnabledWithChannels Link icon

      public void setEnabledWithChannels(boolean enabled)
    • addSelectionListener Link icon

      public void addSelectionListener(javafx.beans.value.ChangeListener listener)
      Add a listener to the data source drop down list
      Parameters:
      listener - listener
    • getChannelLabel Link icon

      public javafx.scene.control.Label getChannelLabel()
    • isAChannelSelected Link icon

      public boolean isAChannelSelected()
      Check if a single channel is selected.
      Returns:
      true if at least one channel is selected.
    • sourceChanged Link icon

      public void sourceChanged()
      Tell the pane the source has changed.
    • setSource Link icon

      public boolean setSource(String sourceName)
      Set the current data source using the data source name
      Parameters:
      sourceName -
      Returns:
      true if OK
    • setSource Link icon

      public void setSource(PamDataBlock sourceBlock)
      Set the current data source by block reference
      Parameters:
      sourceBlock -
    • setSourceIndex Link icon

      public void setSourceIndex(int sourceIndex)
    • setSourceList Link icon

      public boolean setSourceList()
      Fill the list of available data sources, taking into account the list of excluded sources
      Returns:
      sets a list of available sources. Returns false if no sources are available.
    • setSourceList Link icon

      public boolean setSourceList(boolean replaceChosen)
    • addSource Link icon

      public void addSource(PamDataBlock pamDataBlock)
      Add an additional source to the list of available datas.
      Parameters:
      pamDataBlock -
    • removeSource Link icon

      public boolean removeSource(PamDataBlock pamDataBlock)
      Remove an source from the list of available datas.
      Parameters:
      pamDataBlock -
    • getSource Link icon

      public PamDataBlock<?> getSource()
      Return the selected data source
      Returns:
      source data block
    • getSourceName Link icon

      public String getSourceName()
      Returns:
      the source data block name, or null if nothing selected.
    • getSourceLongName Link icon

      public String getSourceLongName()
      Returns:
      the source data block long name, or null if nothing selected.
    • getChannelList Link icon

      public int getChannelList()
      Get a list of selected channels
      Returns:
      bitmap of selected channels
    • setChannelList Link icon

      public void setChannelList(int channelList)
      Set the current channel selection
      Parameters:
      channelList - bitmap of currently selected channels
    • getSourceTypes Link icon

      public ArrayList<SourcePaneFX.SourceSelection> getSourceTypes()
      get the data source type for this SourcePanel
      Returns:
      data type of a data source
    • addSourceType Link icon

      public void addSourceType(Class sourceType, boolean includeSubClasses)
      Set the source type for this SourcePanel
      Parameters:
      sourceType -
    • getSourceIndex Link icon

      public int getSourceIndex()
      Get the currently selected source index
      Returns:
      source index within the source list
    • excludeDataBlock Link icon

      public void excludeDataBlock(PamDataBlock block, boolean exclude)
      Exclude specific data blocks from the source list. e.g. a process would normally not be able to use it's own output data block as an input source and should therefore exclude it from the list.
      Parameters:
      block - PamDataBlock to exlcude
      exclude - true - excluse; false - allow
    • clearExcludeList Link icon

      public void clearExcludeList()
      Clear the list of excluded data blocks.
    • getChannelBoxes Link icon

      public javafx.scene.control.CheckBox[] getChannelBoxes()
    • getLocalisationRequirements Link icon

      public int getLocalisationRequirements()
    • setLocalisationRequirements Link icon

      public void setLocalisationRequirements(int localisationRequirements)
    • setDataBlockClassType Link icon

      public void setDataBlockClassType(Class classType)
      Set a required class type, e.g. that it implements GroupedDataSource
      Parameters:
      classType - (class type or interface on the Data Block)
    • getSourceCount Link icon

      public int getSourceCount()
      Get the number of items in the list.
      Returns:
      number of sources of this type of data
    • addSourcePanelMonitor Link icon

      public void addSourcePanelMonitor(SourcePanelMonitor gspm)
    • removeSourcePanelMonitor Link icon

      public void removeSourcePanelMonitor(SourcePanelMonitor gspm)
    • setSourceToolTip Link icon

      public void setSourceToolTip(String toolTip)
      Set a tooltip text for the source panel.
      Parameters:
      toolTip - Tooltip text.
    • isHasChannels Link icon

      public boolean isHasChannels()
      Returns:
      the hasChannels
    • setHasChannels Link icon

      public void setHasChannels(boolean hasChannels)
      Parameters:
      hasChannels - the hasChannels to set
    • getBorderTitle Link icon

      public String getBorderTitle()
      Returns:
      the borderTitle
    • setBorderTitle Link icon

      public void setBorderTitle(String borderTitle)
      Parameters:
      borderTitle - the borderTitle to set
    • setTitleFont Link icon

      public void setTitleFont(javafx.scene.text.Font titleFont)
      // * Set the font of the title label whihc sits above the datablock ComboBox
      Parameters:
      titleFont - - the title label.
    • getTitleLabel Link icon

      public javafx.scene.control.Label getTitleLabel()
      Get the title label.
      Returns:
      the title label.
    • getDataBlockBox Link icon

      public javafx.scene.control.ComboBox<PamDataBlock> getDataBlockBox()
      Get the combo box which holds the datablocks
      Returns:
      the datablock combo box.
    • getChannelValidator Link icon

      public PamValidator getChannelValidator()
      Get the channel validator for the source pane.
      Returns:
      the channel validator