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
COMPONENT_VALUE, 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) keyStroke
(ControlKey<?> controlKey, KeyStroke keyStroke) 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, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, 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
-
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
-
keyStroke
- Parameters:
controlKey
- the control keykeyStroke
- the keyStroke to assign to the given control- Returns:
- this builder instance
-