Module is.codion.swing.common.ui
Interface TextFieldPanel.Builder
- All Superinterfaces:
ComponentBuilder<String,
TextFieldPanel, TextFieldPanel.Builder>
- Enclosing class:
- TextFieldPanel
public static interface TextFieldPanel.Builder
extends ComponentBuilder<String,TextFieldPanel,TextFieldPanel.Builder>
A builder for
TextFieldPanel
.-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionbuttonFocusable
(boolean buttonFocusable) Default false.buttonIcon
(ImageIcon buttonIcon) If specified a titled border with the given caption is added to the input fieldcolumns
(int columns) dialogTitle
(String dialogTitle) lowerCase
(boolean lowerCase) maximumLength
(int maximumLength) selectAllOnFocusGained
(boolean selectAllOnFocusGained) Makes the text field select all when it gains focustextAreaSize
(Dimension textAreaSize) upperCase
(boolean upperCase) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, linkedValue, linkedValue, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
-
Method Details
-
updateOn
- Parameters:
updateOn
- specifies when the underlying value should be updated- Returns:
- this builder instance
-
columns
- Parameters:
columns
- the number of colums in the text field- Returns:
- this builder instance
-
upperCase
- Parameters:
upperCase
- if true the text component convert all lower case input to upper case- Returns:
- this builder instance
-
lowerCase
- Parameters:
lowerCase
- if true the text component convert all upper case input to lower case- Returns:
- this builder instance
-
selectAllOnFocusGained
Makes the text field select all when it gains focus- Parameters:
selectAllOnFocusGained
- if true the component will select contents on focus gained- Returns:
- this builder instance
-
dialogTitle
- Parameters:
dialogTitle
- the input dialog title- Returns:
- this builder instance
-
caption
If specified a titled border with the given caption is added to the input field- Parameters:
caption
- the caption to display- Returns:
- this builder instance
-
textAreaSize
- Parameters:
textAreaSize
- the input text area siz- Returns:
- this builder instance
-
buttonFocusable
Default false.- Parameters:
buttonFocusable
- true if the input button should be focusable- Returns:
- this builder instance
-
buttonIcon
- Parameters:
buttonIcon
- the button icon- Returns:
- this builder instance
-
maximumLength
- Parameters:
maximumLength
- the maximum text length- Returns:
- this builder instance
-