public class MiniIconButton
extends javafx.scene.control.Button
The MiniIconButton is an extension of the standard button. It gets a second icon, which can be placed above the normal button. The icon is minified and shown
Type | Property and Description |
---|---|
javafx.beans.property.DoubleProperty |
animationDuration
This is the duration in milliseconds for the two animation types
AnimationType.BLINK and
AnimationType.JUMP the default is 500 |
javafx.beans.property.ObjectProperty<MiniIconButton.AnimationType> |
animationType
The property for the animation type.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
miniIconPosition
The mini-icon can be positioned with
Pos |
javafx.beans.property.ObjectProperty<javafx.scene.image.ImageView> |
miniIcon
The property of the mini icon
|
javafx.beans.property.DoubleProperty |
miniIconRatio
This is the ratio of the mini-icon corresponding to the button.
|
cancelButtonProperty, defaultButtonProperty
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, graphicProperty, graphicTextGapProperty, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, underlineProperty, wrapTextProperty
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, 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, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Modifier and Type | Class and Description |
---|---|
static class |
MiniIconButton.AnimationType
Type of animation
|
Constructor and Description |
---|
MiniIconButton()
creates an empty mini icon button
|
MiniIconButton(javafx.scene.image.ImageView miniIcon)
creates an empty button with a mini icon set
|
MiniIconButton(javafx.scene.Node graphic,
javafx.scene.image.ImageView miniIcon)
creates a button with icon and a mini icon set
|
MiniIconButton(java.lang.String text,
javafx.scene.image.ImageView miniIcon)
creates a text button with a mini icon set
|
MiniIconButton(java.lang.String text,
javafx.scene.Node graphic,
javafx.scene.image.ImageView miniIcon)
creates a button with text and icon and a mini icon set
|
Modifier and Type | Method and Description |
---|---|
javafx.beans.property.DoubleProperty |
animationDurationProperty()
This is the duration in milliseconds for the two animation types
AnimationType.BLINK and
AnimationType.JUMP the default is 500 |
javafx.beans.property.ObjectProperty<MiniIconButton.AnimationType> |
animationTypeProperty()
The property for the animation type.
|
double |
getAnimationDuration()
Returns the duration in milliseconds for the two animation types
AnimationType.BLINK and
AnimationType.JUMP the default is 500 |
MiniIconButton.AnimationType |
getAnimationType()
Returns the animation type.
|
javafx.scene.image.ImageView |
getMiniIcon()
Returns the mini icon
|
javafx.geometry.Pos |
getMiniIconPosition()
Returns the position of the mini-icon based on
Pos |
double |
getMiniIconRatio()
Returns the value of the mini-icon ratio.
|
java.lang.String |
getUserAgentStylesheet() |
javafx.beans.property.ObjectProperty<javafx.geometry.Pos> |
miniIconPositionProperty()
The mini-icon can be positioned with
Pos |
javafx.beans.property.ObjectProperty<javafx.scene.image.ImageView> |
miniIconProperty()
The property of the mini icon
|
javafx.beans.property.DoubleProperty |
miniIconRatioProperty()
This is the ratio of the mini-icon corresponding to the button.
|
void |
setAnimationDuration(double value)
Sets the animation duration in milli seconds
|
void |
setAnimationType(MiniIconButton.AnimationType value)
Sets the animation type.
|
void |
setMiniIcon(javafx.scene.image.ImageView value)
Sets the mini icon
|
void |
setMiniIconPosition(javafx.geometry.Pos value)
Sets the position of the mini icon with
Pos |
void |
setMiniIconRatio(double value)
Sets the ratio of the mini-icon corresponding to the buttons size
|
cancelButtonProperty, createDefaultSkin, defaultButtonProperty, fire, isCancelButton, isDefaultButton, setCancelButton, setDefaultButton
arm, armedProperty, disarm, executeAccessibleAction, getOnAction, isArmed, onActionProperty, setOnAction
alignmentProperty, contentDisplayProperty, ellipsisStringProperty, fontProperty, getAlignment, getClassCssMetaData, getContentBias, getContentDisplay, getControlCssMetaData, getEllipsisString, getFont, getGraphic, getGraphicTextGap, getLabelPadding, getLineSpacing, getText, getTextAlignment, getTextFill, getTextOverrun, graphicProperty, graphicTextGapProperty, impl_cssGetAlignmentInitialValue, isMnemonicParsing, isUnderline, isWrapText, labelPaddingProperty, lineSpacingProperty, mnemonicParsingProperty, setAlignment, setContentDisplay, setEllipsisString, setFont, setGraphic, setGraphicTextGap, setLineSpacing, setMnemonicParsing, setText, setTextAlignment, setTextFill, setTextOverrun, setUnderline, setWrapText, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, toString, underlineProperty, wrapTextProperty
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, 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, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, 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, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, 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, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.image.ImageView> miniIconProperty
The property of the mini icon
getMiniIcon()
,
setMiniIcon(ImageView)
public final javafx.beans.property.ObjectProperty<MiniIconButton.AnimationType> animationTypeProperty
The property for the animation type.
public final javafx.beans.property.ObjectProperty<javafx.geometry.Pos> miniIconPositionProperty
The mini-icon can be positioned with Pos
getMiniIconPosition()
,
setMiniIconPosition(Pos)
public final javafx.beans.property.DoubleProperty miniIconRatioProperty
This is the ratio of the mini-icon corresponding to the button. It could be a double number between 0.01 and 1.0.
getMiniIconRatio()
,
setMiniIconRatio(double)
public final javafx.beans.property.DoubleProperty animationDurationProperty
This is the duration in milliseconds for the two animation types AnimationType.BLINK
and
AnimationType.JUMP
the default is 500
public MiniIconButton()
creates an empty mini icon button
public MiniIconButton(javafx.scene.image.ImageView miniIcon)
creates an empty button with a mini icon set
miniIcon
- the mini icon shown in front of the buttonpublic MiniIconButton(java.lang.String text, javafx.scene.image.ImageView miniIcon)
creates a text button with a mini icon set
text
- A text string for its label.miniIcon
- the mini icon shown in front of the buttonpublic MiniIconButton(javafx.scene.Node graphic, javafx.scene.image.ImageView miniIcon)
creates a button with icon and a mini icon set
graphic
- the icon for its label.miniIcon
- the mini icon shown in front of the buttonpublic MiniIconButton(java.lang.String text, javafx.scene.Node graphic, javafx.scene.image.ImageView miniIcon)
creates a button with text and icon and a mini icon set
text
- A text string for its label.graphic
- the icon for its label.miniIcon
- the mini icon shown in front of the buttonpublic final javafx.beans.property.ObjectProperty<javafx.scene.image.ImageView> miniIconProperty()
The property of the mini icon
getMiniIcon()
,
setMiniIcon(ImageView)
public void setMiniIcon(javafx.scene.image.ImageView value)
Sets the mini icon
value
- node for the mini iconpublic javafx.scene.image.ImageView getMiniIcon()
Returns the mini icon
public final javafx.beans.property.ObjectProperty<MiniIconButton.AnimationType> animationTypeProperty()
The property for the animation type.
public MiniIconButton.AnimationType getAnimationType()
Returns the animation type. The default is AnimationType.NONE
MiniIconButton.AnimationType
public void setAnimationType(MiniIconButton.AnimationType value)
Sets the animation type.
value
- MiniIconButton.AnimationType
public final javafx.beans.property.ObjectProperty<javafx.geometry.Pos> miniIconPositionProperty()
The mini-icon can be positioned with Pos
getMiniIconPosition()
,
setMiniIconPosition(Pos)
public final void setMiniIconPosition(javafx.geometry.Pos value)
Sets the position of the mini icon with Pos
value
- position of the mini-iconpublic final javafx.geometry.Pos getMiniIconPosition()
Returns the position of the mini-icon based on Pos
public final javafx.beans.property.DoubleProperty miniIconRatioProperty()
This is the ratio of the mini-icon corresponding to the button. It could be a double number between 0.01 and 1.0.
getMiniIconRatio()
,
setMiniIconRatio(double)
public final void setMiniIconRatio(double value)
Sets the ratio of the mini-icon corresponding to the buttons size
value
- could be a double number between 0.01 and 1.0 all others will be set to 0.01 or 1.0public final double getMiniIconRatio()
Returns the value of the mini-icon ratio. The default is 0.25
public final javafx.beans.property.DoubleProperty animationDurationProperty()
This is the duration in milliseconds for the two animation types AnimationType.BLINK
and
AnimationType.JUMP
the default is 500
public final void setAnimationDuration(double value)
Sets the animation duration in milli seconds
value
- animation duration in millisecondspublic final double getAnimationDuration()
Returns the duration in milliseconds for the two animation types AnimationType.BLINK
and
AnimationType.JUMP
the default is 500
public java.lang.String getUserAgentStylesheet()
getUserAgentStylesheet
in class javafx.scene.layout.Region