Module MaterialFX

Class MFXScrollPane

All Implemented Interfaces:
Styleable, EventTarget, Skinnable
Direct Known Subclasses:
MFXTreeView

public class MFXScrollPane extends ScrollPane
This is the implementation of a scroll pane following Google's material design guidelines in JavaFX.

Extends ScrollPane and redefines the style class to "mfx-scroll-pane" for usage in CSS.

  • Property Details

  • Constructor Details

    • MFXScrollPane

      public MFXScrollPane()
    • MFXScrollPane

      public MFXScrollPane(Node content)
  • Method Details

    • getTrackColor

      public Paint getTrackColor()
      Gets the value of the property trackColor.
      Property description:
      Specifies the color of the scrollbars' track.
    • trackColorProperty

      public ObjectProperty<Paint> trackColorProperty()
      Specifies the color of the scrollbars' track.
      See Also:
    • setTrackColor

      public void setTrackColor(Paint trackColor)
      Sets the value of the property trackColor.
      Property description:
      Specifies the color of the scrollbars' track.
    • getThumbColor

      public Paint getThumbColor()
      Gets the value of the property thumbColor.
      Property description:
      Specifies the color of the scrollbars' thumb.
    • thumbColorProperty

      public ObjectProperty<Paint> thumbColorProperty()
      Specifies the color of the scrollbars' thumb.
      See Also:
    • setThumbColor

      public void setThumbColor(Paint thumbColor)
      Sets the value of the property thumbColor.
      Property description:
      Specifies the color of the scrollbars' thumb.
    • getThumbHoverColor

      public Paint getThumbHoverColor()
      Gets the value of the property thumbHoverColor.
      Property description:
      Specifies the color of the scrollbars' thumb when mouse hover.
    • thumbHoverColorProperty

      public ObjectProperty<Paint> thumbHoverColorProperty()
      Specifies the color of the scrollbars' thumb when mouse hover.
      See Also:
    • setThumbHoverColor

      public void setThumbHoverColor(Paint thumbHoverColor)
      Sets the value of the property thumbHoverColor.
      Property description:
      Specifies the color of the scrollbars' thumb when mouse hover.
    • createDefaultSkin

      protected Skin<?> createDefaultSkin()
      Overrides:
      createDefaultSkin in class ScrollPane
    • getUserAgentStylesheet

      public String getUserAgentStylesheet()
      Overrides:
      getUserAgentStylesheet in class Region