Package pamViewFX
Class PamGuiFX
java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.layout.Pane
javafx.scene.layout.StackPane
pamViewFX.PamGuiFX
- All Implemented Interfaces:
 javafx.css.Styleable,javafx.event.EventTarget,PamViewInterface
A pane which holds a set of tabs.
- Author:
 - Jamie Macaulay
 
- 
Property Summary
Properties inherited from class javafx.scene.layout.StackPane
alignmentProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
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
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe preferred width of the side pane.Fields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT - 
Constructor Summary
ConstructorsConstructorDescriptionPamGuiFX(javafx.stage.Stage stage, PamGuiManagerFX pamGuiManagerFX) PamGuiFX(PamTabPane mainTabPane, javafx.stage.Stage stage, PamGuiManagerFX pamGuiManagerFX) Create a new PamGUIFX. - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddAllTabs(List<PamGuiTabFX> pamGuiTabFXs) Add tabs to the tab pane.voidCalled whenever a pamcontrolled unit is added ot the model.Add a tab for the data model.addPamTab(TabInfo tabInfo, UserDisplayNodeFX content, boolean detachable) Convenience function to add a closable tab to the display with a new UserDisplayNodeFX.voidaddTab(PamGuiTabFX pamGuiTabFX) Add a tab to the tab pane.voidenableGUIControl(boolean enable) Enable and disable the entire GUI.intGet the load pane for the PamGuiFX- shows loading data and other status updates.intGet the number of tabs currently open.Get the PamGuiManagerFX which controls the PamGuiF XgetPamTab(int i) Get a PamTabFX at a specified indexprotected ArrayList<javafx.scene.control.Button> Get all record buttons from the different toolbars in this stage.Get the side pane.getTab(int i) Get a tabgetTabs()Get all tabs for this PamGuiFXbooleanCheck whether the frame is in mode showing loadpanes.voidmodelChanged(int changeType) voidnotifyLoadProgress(PamTaskUpdate pamTaskUpdate) Notify load progress.voidpamEnded()voidvoidCalled whenever a controlled unit is removed.voidremoveInternalPane(UserDisplayNodeFX removeNode) Remove an internal pane if it is contained within any tabs within the PamGuiFXvoidRename a tab at a selected index.voidselectTab(int j) Select a tabvoidvoidshow()Show this PamGUIFX.voidShow the GUI for a specific controlled unitvoidshowLoadingPane(boolean show) Show the PamLoadPnae- this shows the pane that contains progress bars for loading data.voidshowLoadMode(boolean loadMode) Change the GUI to show load mode.voidshowSidePane(boolean show) Show the side pane.Methods inherited from class javafx.scene.layout.StackPane
alignmentProperty, clearConstraints, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getAlignment, getAlignment, getClassCssMetaData, getContentBias, getCssMetaData, getMargin, layoutChildren, requestLayout, setAlignment, setAlignment, setMarginMethods inherited from class javafx.scene.layout.Pane
getChildrenMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, queryAccessibleAttribute, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
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, getInitialCursor, getInitialFocusTraversable, 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, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, 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, setPressed, 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, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode 
- 
Field Details
- 
SIDE_PANE_PREF_WIDTH
public static final double SIDE_PANE_PREF_WIDTHThe preferred width of the side pane.- See Also:
 
 
 - 
 - 
Constructor Details
- 
PamGuiFX
Create a new PamGUIFX.- Parameters:
 mainTabPane- - the tabPane.stage- - the stage in which the PamGuiFX will reside.pamGuiManagerFX- - the GUI manager.
 - 
PamGuiFX
 
 - 
 - 
Method Details
- 
getLoadPane
Get the load pane for the PamGuiFX- shows loading data and other status updates.- Returns:
 - the PamLoadingf Pane
 
 - 
show
public void show()Show this PamGUIFX. - 
addPamTab
Convenience function to add a closable tab to the display with a new UserDisplayNodeFX.- Parameters:
 content- - content to add to the tab. Can be null;name- - tab name.
 - 
addDataModelTab
Add a tab for the data model.- Parameters:
 dataModelPaneFX- - the data model
 - 
getTabs
Get all tabs for this PamGuiFX- Returns:
 - list of tabs in the PamGuiFX
 
 - 
addTab
Add a tab to the tab pane.- Parameters:
 pamGuiTabFX- - the tab to add
 - 
addAllTabs
Add tabs to the tab pane.- Parameters:
 pamGuiTabFX- - the tabs to add
 - 
getNumTabs
public int getNumTabs()Get the number of tabs currently open.- Returns:
 - the number of tabs.
 
 - 
getTab
Get a tab- Parameters:
 i- - tab index- Returns:
 - the ith PamGuiTab
 
 - 
selectTab
public void selectTab(int j) Select a tab- Parameters:
 j- - index
 - 
getRecordButtons
Get all record buttons from the different toolbars in this stage.- Returns:
 - list of record buttons.
 
 - 
removeInternalPane
Remove an internal pane if it is contained within any tabs within the PamGuiFX- Parameters:
 removeNode- - remove the pane if it contains this node.
 - 
showLoadingPane
public void showLoadingPane(boolean show) Show the PamLoadPnae- this shows the pane that contains progress bars for loading data.- Parameters:
 show- - true to show pane.
 - 
showLoadMode
public void showLoadMode(boolean loadMode) Change the GUI to show load mode.- Parameters:
 loadMode- - true to show load mode.
 - 
notifyLoadProgress
Notify load progress.- Parameters:
 pamTaskUpdate- - information on a thread which s currently doing some work.
 - 
pamStarted
public void pamStarted()- Specified by:
 pamStartedin interfacePamViewInterface
 - 
pamEnded
public void pamEnded()- Specified by:
 pamEndedin interfacePamViewInterface
 - 
modelChanged
public void modelChanged(int changeType) - Specified by:
 modelChangedin interfacePamViewInterface
 - 
addControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a pamcontrolled unit is added ot the model.- Specified by:
 addControlledUnitin interfacePamViewInterface- Parameters:
 unit- - the added controlled unit.
 - 
removeControlledUnit
Description copied from interface:PamViewInterfaceCalled whenever a controlled unit is removed.- Specified by:
 removeControlledUnitin interfacePamViewInterface- Parameters:
 unit-
 - 
showControlledUnit
Description copied from interface:PamViewInterfaceShow the GUI for a specific controlled unit- Specified by:
 showControlledUnitin interfacePamViewInterface- Parameters:
 unit- -the controlled unit to show.
 - 
setTitle
- Specified by:
 setTitlein interfacePamViewInterface
 - 
getFrameNumber
public int getFrameNumber()- Specified by:
 getFrameNumberin interfacePamViewInterface- Returns:
 - Frame number used by the multiple GUI frames. All other objects, such as the model view should return invalid input: '<' 0.
 
 - 
getGuiFrame
- Specified by:
 getGuiFramein interfacePamViewInterface
 - 
enableGUIControl
public void enableGUIControl(boolean enable) Description copied from interface:PamViewInterfaceEnable and disable the entire GUI.- Specified by:
 enableGUIControlin interfacePamViewInterface- Parameters:
 enable- - true to enable the GUI/
 - 
isShowLoadMode
public boolean isShowLoadMode()Check whether the frame is in mode showing loadpanes.- Returns:
 - true if in load mode.
 
 - 
getPamGuiManagerFX
Get the PamGuiManagerFX which controls the PamGuiF X- Returns:
 - the PamGuiManagerFX
 
 - 
getPamTab
Get a PamTabFX at a specified index- Parameters:
 i- - the index of the tab- Returns:
 - the tab at index i.
 
 - 
getSidePane
Get the side pane. The side pane holds extra quick access controls for modules.- Returns:
 - the side pane.
 
 - 
showSidePane
public void showSidePane(boolean show) Show the side pane. The side pane holds extra quick access controls for modules.- Parameters:
 show- - true to show the pane.
 - 
renameTab
Rename a tab at a selected index.- Parameters:
 selectedItem- - the new nametabIndex- - the tab index
 
 -