类 UnderlineTextField

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
javafx.scene.control.Control
javafx.scene.control.TextInputControl
javafx.scene.control.TextField
com.tlcsdm.core.javafx.control.UnderlineTextField
所有已实现的接口:
javafx.css.Styleable, javafx.event.EventTarget, javafx.scene.control.Skinnable

public class UnderlineTextField extends javafx.scene.control.TextField
下划线样式文本框.
作者:
unknowIfGuestInDream
  • 属性概要

    属性
    类型
    属性
    说明
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     

    从类继承的属性 javafx.scene.control.TextField

    alignment, onAction, prefColumnCount

    从类继承的属性 javafx.scene.control.TextInputControl

    anchor, caretPosition, editable, font, length, promptText, redoable, selectedText, selection, textFormatter, text, undoable

    从类继承的属性 javafx.scene.control.Control

    contextMenu, skin, tooltip

    从类继承的属性 javafx.scene.layout.Region

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

    从类继承的属性 javafx.scene.Parent

    needsLayout

    从类继承的属性 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
  • 嵌套类概要

    从类继承的嵌套类/接口 javafx.scene.control.TextInputControl

    javafx.scene.control.TextInputControl.Content
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private static final int
     
    private static final javafx.scene.paint.Color
    paint
    private static final javafx.scene.paint.Color
     
    private static final javafx.css.StyleablePropertyFactory<UnderlineTextField>
     
    private javafx.beans.property.DoubleProperty
     
    private static final javafx.css.CssMetaData<UnderlineTextField,javafx.scene.paint.Color>
    css样式属性
    private final javafx.css.StyleableProperty<javafx.scene.paint.Color>
    Properties
    private static final javafx.css.CssMetaData<UnderlineTextField,javafx.scene.paint.Color>
     
    private javafx.scene.text.Text
    组件
    private javafx.scene.layout.HBox
     
    private final javafx.css.StyleableProperty<javafx.scene.paint.Color>
     
    private static final double
     
    private static final double
     
    private javafx.animation.Timeline
    动画时间线
    private static final double
     
    private static String
    用户代理样式表

    从类继承的字段 javafx.scene.control.TextField

    DEFAULT_PREF_COLUMN_COUNT

    从类继承的字段 javafx.scene.layout.Region

    USE_COMPUTED_SIZE, USE_PREF_SIZE

    从类继承的字段 javafx.scene.Node

    BASELINE_OFFSET_SAME_AS_HEIGHT
  • 构造器概要

    构造器
    构造器
    说明
     
    UnderlineTextField(String promptTextBox)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>>
     
    javafx.scene.paint.Color
    css样式属性
    javafx.scene.paint.Color
    获取promptTextColor属性的值。
    style related
    private void
    handleTextAndFocus(boolean isFocused)
    function method
    private void
    初始化
    javafx.beans.property.ObjectProperty<javafx.scene.paint.Color>
     
    private void
    注册监听器

    从类继承的方法 javafx.scene.control.TextField

    alignmentProperty, createDefaultSkin, getAlignment, getCharacters, getClassCssMetaData, getOnAction, getPrefColumnCount, onActionProperty, prefColumnCountProperty, setAlignment, setOnAction, setPrefColumnCount

    从类继承的方法 javafx.scene.control.TextInputControl

    anchorProperty, appendText, backward, cancelEdit, caretPositionProperty, clear, commitValue, copy, cut, deleteNextChar, deletePreviousChar, deleteText, deleteText, deselect, editableProperty, end, endOfNextWord, executeAccessibleAction, extendSelection, fontProperty, forward, getAnchor, getCaretPosition, getContent, getFont, getLength, getPromptText, getSelectedText, getSelection, getText, getText, getTextFormatter, home, insertText, isEditable, isRedoable, isUndoable, lengthProperty, nextWord, paste, positionCaret, previousWord, promptTextProperty, queryAccessibleAttribute, redo, redoableProperty, replaceSelection, replaceText, replaceText, selectAll, selectBackward, selectedTextProperty, selectEnd, selectEndOfNextWord, selectForward, selectHome, selectionProperty, selectNextWord, selectPositionCaret, selectPreviousWord, selectRange, setEditable, setFont, setPromptText, setText, setTextFormatter, textFormatterProperty, textProperty, undo, undoableProperty

    从类继承的方法 javafx.scene.control.Control

    computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getContextMenu, getCssMetaData, getInitialFocusTraversable, getSkin, getTooltip, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinProperty, tooltipProperty

    从类继承的方法 javafx.scene.layout.Region

    backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, 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, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthProperty

    从类继承的方法 javafx.scene.Parent

    getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setNeedsLayout, updateBounds

    从类继承的方法 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, fireEvent, focusedProperty, focusTraversableProperty, focusVisibleProperty, focusWithinProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, 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, visibleProperty

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    从接口继承的方法 javafx.css.Styleable

    getStyleableNode
  • 属性详细资料

  • 字段详细资料

    • FACTORY

      private static final javafx.css.StyleablePropertyFactory<UnderlineTextField> FACTORY
    • STD_FONT_SIZE

      private static final double STD_FONT_SIZE
      另请参阅:
    • SMALL_FONT_SIZE

      private static final double SMALL_FONT_SIZE
      另请参阅:
    • TOP_OFFSET_Y

      private static final double TOP_OFFSET_Y
      另请参阅:
    • ANIMATION_DURATION

      private static final int ANIMATION_DURATION
      另请参阅:
    • promptText

      private javafx.scene.text.Text promptText
      组件
    • promptTextBox

      private javafx.scene.layout.HBox promptTextBox
    • DEFAULT_MATERIAL_DESIGN_COLOR

      private static final javafx.scene.paint.Color DEFAULT_MATERIAL_DESIGN_COLOR
      paint
    • DEFAULT_PROMPT_TEXT_COLOR

      private static final javafx.scene.paint.Color DEFAULT_PROMPT_TEXT_COLOR
    • timeline

      private javafx.animation.Timeline timeline
      动画时间线
    • materialDesignColor

      private final javafx.css.StyleableProperty<javafx.scene.paint.Color> materialDesignColor
      Properties
    • promptTextColor

      private final javafx.css.StyleableProperty<javafx.scene.paint.Color> promptTextColor
    • fontSize

      private javafx.beans.property.DoubleProperty fontSize
    • userAgentStyleSheet

      private static String userAgentStyleSheet
      用户代理样式表
    • MATERIAL_DESIGN_COLOR

      private static final javafx.css.CssMetaData<UnderlineTextField,javafx.scene.paint.Color> MATERIAL_DESIGN_COLOR
      css样式属性
    • PROMPT_TEXT_COLOR

      private static final javafx.css.CssMetaData<UnderlineTextField,javafx.scene.paint.Color> PROMPT_TEXT_COLOR
  • 构造器详细资料

    • UnderlineTextField

      public UnderlineTextField()
    • UnderlineTextField

      public UnderlineTextField(String promptTextBox)
  • 方法详细资料

    • initGraphics

      private void initGraphics()
      初始化
    • registerListeners

      private void registerListeners()
      注册监听器
    • getMaterialDesignColor

      public javafx.scene.paint.Color getMaterialDesignColor()
      css样式属性
    • getPromptTextColor

      public javafx.scene.paint.Color getPromptTextColor()
      获取promptTextColor属性的值。
      属性说明:
      返回:
      promptTextColor 属性的值
      另请参阅:
    • promptTextColorProperty

      public javafx.beans.property.ObjectProperty<javafx.scene.paint.Color> promptTextColorProperty()
      返回:
      promptTextColor 属性
      另请参阅:
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      style related
      覆盖:
      getUserAgentStylesheet 在类中 javafx.scene.layout.Region
    • getControlCssMetaData

      public List<javafx.css.CssMetaData<? extends javafx.css.Styleable,?>> getControlCssMetaData()
      覆盖:
      getControlCssMetaData 在类中 javafx.scene.control.TextField
    • handleTextAndFocus

      private void handleTextAndFocus(boolean isFocused)
      function method