Spec-Zone .ru
спецификации, руководства, описания, API
|
public abstract class ButtonBase extends Labeled
Ввести | Свойство и Описание |
---|---|
ReadOnlyBooleanProperty |
вооруженный
Указывает, что кнопка была "вооружена" так, что, выпуск мыши заставит действие кнопки быть вызванным.
|
ObjectProperty<EventHandler<ActionEvent>> |
onAction
Действие кнопки, которое вызывается всякий раз, когда кнопка запускается.
|
alignmentProperty, contentDisplayProperty, fontProperty, graphicProperty, graphicTextGapProperty, labelPaddingProperty, mnemonicParsingProperty, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, underlineProperty, wrapTextProperty
contextMenuProperty, heightProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, prefHeightProperty, prefWidthProperty, skinProperty, tooltipProperty, widthProperty
needsLayoutProperty
blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, managedProperty, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
USE_COMPUTED_SIZE, USE_PREF_SIZE
Конструктор и Описание |
---|
ButtonBase()
Создайте значение по умолчанию ButtonBase с пустым текстом.
|
ButtonBase(java.lang.String text)
Создайте ButtonBase с данным текстом.
|
ButtonBase(java.lang.String text, Node graphic)
Создайте ButtonBase с данным текстом и графический.
|
Модификатор и Тип | Метод и Описание |
---|---|
void |
arm()
Вооружает кнопку.
|
ReadOnlyBooleanProperty |
armedProperty()
Указывает, что кнопка была "вооружена" так, что, выпуск мыши заставит действие кнопки быть вызванным.
|
void |
disarm()
Разоружает кнопку.
|
abstract void |
fire()
Вызванный, когда пользовательский жест указывает что событие для этого
ButtonBase должен произойти. |
EventHandler<ActionEvent> |
getOnAction()
Действие кнопки, которое вызывается всякий раз, когда кнопка запускается.
|
boolean |
isArmed()
Указывает, что кнопка была "вооружена" так, что, выпуск мыши заставит действие кнопки быть вызванным.
|
ObjectProperty<EventHandler<ActionEvent>> |
onActionProperty()
Действие кнопки, которое вызывается всякий раз, когда кнопка запускается.
|
void |
setOnAction(EventHandler<ActionEvent> value)
Действие кнопки, которое вызывается всякий раз, когда кнопка запускается.
|
alignmentProperty, contentDisplayProperty, fontProperty, getAlignment, getContentBias, getContentDisplay, getFont, getGraphic, getGraphicTextGap, getLabelPadding, getText, getTextAlignment, getTextFill, getTextOverrun, graphicProperty, graphicTextGapProperty, isMnemonicParsing, isUnderline, isWrapText, labelPaddingProperty, mnemonicParsingProperty, setAlignment, setContentDisplay, setFont, setGraphic, setGraphicTextGap, setMnemonicParsing, setText, setTextAlignment, setTextFill, setTextOverrun, setUnderline, setWrapText, textAlignmentProperty, textFillProperty, textOverrunProperty, textProperty, underlineProperty, wrapTextProperty
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getHeight, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getPrefHeight, getPrefWidth, getSkin, getTooltip, getUserAgentStylesheet, getWidth, heightProperty, intersects, isResizable, layoutChildren, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, setContextMenu, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setPrefHeight, setPrefSize, setPrefWidth, setSkin, setTooltip, setWidth, skinProperty, tooltipProperty, widthProperty
getChildren, getChildrenUnmodifiable, getManagedChildren, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, setNeedsLayout
addEventFilter, addEventHandler, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getCursor, getDepthTest, getEffect, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragged, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnScroll, getOpacity, getParent, getProperties, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getUserData, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToScene, localToScene, localToScene, lookupAll, managedProperty, mouseTransparentProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDraggedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onScrollProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragged, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnScroll, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, startDragAndDrop, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, visibleProperty
arm
однако также принимает во внимание, является ли мышь фактически по кнопке и нажатый.isArmed()
fire()
метод.getOnAction()
, setOnAction(EventHandler)
public ButtonBase()
public ButtonBase(java.lang.String text)
text
- нулевой текст обрабатывается как пустая строкаpublic ButtonBase(java.lang.String text, Node graphic)
text
- нулевой текст обрабатывается как пустая строкаgraphic
- нулевая графика является приемлемойpublic final ReadOnlyBooleanProperty armedProperty()
arm
однако также принимает во внимание, является ли мышь фактически по кнопке и нажатый.isArmed()
public final boolean isArmed()
arm
однако также принимает во внимание, является ли мышь фактически по кнопке и нажатый.public final ObjectProperty<EventHandler<ActionEvent>> onActionProperty()
fire()
метод.getOnAction()
, setOnAction(EventHandler)
public final void setOnAction(EventHandler<ActionEvent> value)
fire()
метод.public final EventHandler<ActionEvent> getOnAction()
fire()
метод.public void arm()
Button
или переключение выбора на a CheckBox
или некоторое другое поведение) на следующем ожидаемом жесте UI.public void disarm()
arm()
.public abstract void fire()
ButtonBase
должен произойти. Если вызвано, этот метод будет выполняться независимо от состояния arm()
.
Copyright (c) 2008, 2011, Oracle и/или его филиалы. Все права защищены. Использование подвергается