Class PhonemeButton
- java.lang.Object
-
- javafx.scene.Node
-
- javafx.scene.Parent
-
- net.oijon.susquehanna.gui.components.PhonemeButton
-
- All Implemented Interfaces:
javafx.css.Styleable
,javafx.event.EventTarget
public class PhonemeButton extends javafx.scene.Parent
-
-
Constructor Summary
Constructors Constructor Description PhonemeButton(java.lang.String phoneme)
Creates a PhonemeButton, with a toolbar of actions on the right sidePhonemeButton(java.lang.String phoneme, boolean isEditable)
Creates a PhonemeButton, similar to PhonemeButton(String), but with a toggle to visually disable it.PhonemeButton(java.lang.String phoneme, PhonemeTable pt, boolean isEditable)
Creates a PhonemeButton with a linked PhonemeTablePhonemeButton(PhonemeButton pb)
Makes an exact copy of a PhonemeButton
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.scene.control.Button
getAddButton()
Gets the add buttonjavafx.scene.control.Button
getEditButton()
Gets the edit buttonjavafx.scene.control.Button
getMainButton()
Gets the left, main buttonjava.lang.String
getPhoneme()
Gets the phoneme displayed on the buttonPhonemeTable
getPhonemeTable()
javafx.scene.control.Button
getTrashButton()
Gets the trash buttonboolean
isEditable()
Gets if the phoneme shown is editable or notboolean
isInPhono()
Checks if the phoneme for this button is in the Phonology.void
setEditable(boolean isEditable)
Sets if the phoneme shown is editable or notvoid
setInPhono(boolean inPhono)
Set the PhonemeButton to be in the Phonology, adding extra buttons to it if set to truevoid
setPhoneme(java.lang.String phoneme)
Sets the phoneme displayed on the buttonvoid
setPhonemeTable(PhonemeTable pt)
-
Methods inherited from class javafx.scene.Parent
computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, minHeight, minWidth, needsLayoutProperty, prefHeight, prefWidth, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBounds
-
Methods 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, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClassCssMetaData, getClip, getContentBias, getCssMetaData, 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, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isResizable, 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, maxHeight, maxWidth, 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, resize, 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, visibleProperty
-
-
-
-
Constructor Detail
-
PhonemeButton
public PhonemeButton(java.lang.String phoneme)
Creates a PhonemeButton, with a toolbar of actions on the right side- Parameters:
phoneme
- The phoneme to display on the main button
-
PhonemeButton
public PhonemeButton(PhonemeButton pb)
Makes an exact copy of a PhonemeButton- Parameters:
pb
- The PhonemeButton to copy
-
PhonemeButton
public PhonemeButton(java.lang.String phoneme, boolean isEditable)
Creates a PhonemeButton, similar to PhonemeButton(String), but with a toggle to visually disable it.- Parameters:
phoneme
- The phoneme to display on the main buttonisEditable
- True if editable, false if disabled
-
PhonemeButton
public PhonemeButton(java.lang.String phoneme, PhonemeTable pt, boolean isEditable)
Creates a PhonemeButton with a linked PhonemeTable- Parameters:
phoneme
- The phoneme to display on the main buttonpt
- The PhonemeTable to link toisEditable
- True if editable, false if disabled
-
-
Method Detail
-
getMainButton
public javafx.scene.control.Button getMainButton()
Gets the left, main button- Returns:
- The main button out of the four
-
getAddButton
public javafx.scene.control.Button getAddButton()
Gets the add button- Returns:
- The add button
-
getEditButton
public javafx.scene.control.Button getEditButton()
Gets the edit button- Returns:
- The edit button
-
getTrashButton
public javafx.scene.control.Button getTrashButton()
Gets the trash button- Returns:
- The trash button
-
getPhoneme
public java.lang.String getPhoneme()
Gets the phoneme displayed on the button- Returns:
- The phoneme used on this button
-
setPhoneme
public void setPhoneme(java.lang.String phoneme)
Sets the phoneme displayed on the button- Parameters:
phoneme
- The new phoneme to be used
-
getPhonemeTable
public PhonemeTable getPhonemeTable()
-
setPhonemeTable
public void setPhonemeTable(PhonemeTable pt)
-
isEditable
public boolean isEditable()
Gets if the phoneme shown is editable or not- Returns:
- The editability status of the phoneme this button represents
-
setEditable
public void setEditable(boolean isEditable)
Sets if the phoneme shown is editable or not- Parameters:
isEditable
- The editability status of the phoneme this button represents
-
isInPhono
public boolean isInPhono()
Checks if the phoneme for this button is in the Phonology. Note that this does not do any checking, it simply returns the value used for display changes.- Returns:
- True if in, false if not.
-
setInPhono
public void setInPhono(boolean inPhono)
Set the PhonemeButton to be in the Phonology, adding extra buttons to it if set to true- Parameters:
inPhono
- True if in, false if not
-
-