Class TextFieldSkin

All Implemented Interfaces:
Skin<TextField>

public class TextFieldSkin extends TextInputControlSkin<TextField,TextFieldBehavior>
Text field skin. (empty as we rely on the target toolkit for now)
  • Constructor Details

    • TextFieldSkin

      public TextFieldSkin(TextField textField)
      Create a new TextFieldSkin.
      Parameters:
      textField - not null
    • TextFieldSkin

      public TextFieldSkin(TextField textField, TextFieldBehavior behavior)
  • Method Details

    • computeMinHeight

      protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Description copied from class: SkinBase
      Computes the minimum allowable height of the Skin, based on the provided width.
      Overrides:
      computeMinHeight in class SkinBase<TextField>
      Parameters:
      width - The width of the Skin, in case this value might dictate the minimum height.
      topInset - the pixel snapped top inset
      rightInset - the pixel snapped right inset
      bottomInset - the pixel snapped bottom inset
      leftInset - the pixel snapped left inset
      Returns:
      A double representing the minimum height of this Skin.
    • computePrefHeight

      protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Description copied from class: SkinBase
      Calculates the preferred height of this SkinBase. The default implementation calculates this height as the height of the area occupied by its managed children when they are positioned at their current positions at their preferred heights.
      Overrides:
      computePrefHeight in class SkinBase<TextField>
      Parameters:
      width - the width that should be used if preferred height depends on it
      topInset - the pixel snapped top inset
      rightInset - the pixel snapped right inset
      bottomInset - the pixel snapped bottom inset
      leftInset - the pixel snapped left inset
      Returns:
      the calculated preferred height
    • computeMaxHeight

      protected double computeMaxHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
      Description copied from class: SkinBase
      Computes the maximum allowable height of the Skin, based on the provided width.
      Overrides:
      computeMaxHeight in class SkinBase<TextField>
      Parameters:
      width - The width of the Skin, in case this value might dictate the maximum height.
      topInset - the pixel snapped top inset
      rightInset - the pixel snapped right inset
      bottomInset - the pixel snapped bottom inset
      leftInset - the pixel snapped left inset
      Returns:
      A double representing the maximum height of this Skin.