All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class TextFieldPanel extends JPanel
A panel that includes a JTextField in a BorderLayout.CENTER position and a button in BorderLayout.EAST which opens a JTextArea for editing long strings.
See Also:
  • Method Details

    • setText

      public void setText(String text)
      Parameters:
      text - the text to set
      Throws:
      IllegalArgumentException - in case the text length exceeds maximum length
    • getText

      public String getText()
      Returns:
      the current input text value
    • textField

      public JTextField textField()
      Returns:
      the text field
    • button

      public JButton button()
      Returns:
      the input dialog button
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • setToolTipText

      public void setToolTipText(String text)
      Overrides:
      setToolTipText in class JComponent
    • transferFocusOnEnter

      public void transferFocusOnEnter(boolean transferFocusOnEnter)
      Parameters:
      transferFocusOnEnter - specifies whether focus should be transferred on Enter
    • builder

      public static TextFieldPanel.Builder builder()
      Returns:
      a new builder
    • builder

      public static TextFieldPanel.Builder builder(Value<String> linkedValue)
      Parameters:
      linkedValue - the linked value
      Returns:
      a new builder