Interface TextFieldBuilder<C extends JTextField, T, B extends TextFieldBuilder<C,T,B>>
- Type Parameters:
C- the text field typeT- the type the text field representsB- the builder type
- All Superinterfaces:
ComponentBuilder<C,B>, ComponentValueBuilder<C, T, B>, Supplier<C>, TextComponentBuilder<C, T, B>
- All Known Subinterfaces:
NumberField.Builder<T>, PasswordFieldBuilder, TemporalField.Builder<T>
public interface TextFieldBuilder<C extends JTextField, T, B extends TextFieldBuilder<C,T,B>>
extends TextComponentBuilder<C,T,B>
Builds a JTextField.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface TextComponentBuilder
TextComponentBuilder.CaretPosition -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Boolean> Specifies whether text fields should select all on focus gained by default.Fields inherited from interface ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionNote that this disablesComponentBuilder.transferFocusOnEnter(boolean).actionListener(ActionListener actionListener) Note that this disablesComponentBuilder.transferFocusOnEnter(boolean).builder()columns(int columns) Associates the given format with the text field.horizontalAlignment(int horizontalAlignment) Methods inherited from interface ComponentBuilder
ancestorListener, background, border, build, build, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusable, focusCycleRoot, focusListener, font, font, foreground, get, hierarchyListener, keyEvent, keyListener, label, label, label, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, name, onBuild, onSetVisible, opaque, popupControl, popupControls, popupControls, popupMenu, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, toolTipText, transferFocusOnEnter, transferFocusOnEnter, transferHandler, visible, visibleMethods inherited from interface ComponentValueBuilder
buildValue, buildValue, changeConsumer, changeListener, consumer, link, link, listener, modified, modifiedIndicator, onBuildValue, valid, valid, validationIndicator, validator, value, warned, weakChangeConsumer, weakChangeListener, weakConsumer, weakListener, when, when, when, whenMethods inherited from interface TextComponentBuilder
caretListener, caretPosition, caretUpdatePolicy, controlDeleteWord, disabledTextColor, documentListener, dragEnabled, editable, focusAccelerator, lowerCase, margin, maximumLength, moveCaretToEndOnFocusGained, moveCaretToStartOnFocusGained, selectAllOnFocusGained, selectedTextColor, selectionColor, updateOn, upperCase
-
Field Details
-
SELECT_ALL_ON_FOCUS_GAINED
Specifies whether text fields should select all on focus gained by default.- Value type:Boolean
- Default value: false
-
-
Method Details
-
columns
- Parameters:
columns- the number of colums in the text component- Returns:
- this builder instance
- See Also:
-
action
Note that this disablesComponentBuilder.transferFocusOnEnter(boolean).- Parameters:
action- the action to associate with the text field- Returns:
- this builder instance
- See Also:
-
actionListener
Note that this disablesComponentBuilder.transferFocusOnEnter(boolean).- Parameters:
actionListener- the action listener- Returns:
- this builder instance
- See Also:
-
format
-
horizontalAlignment
- Parameters:
horizontalAlignment- the horizontal text alignment- Returns:
- this builder instance
- See Also:
-
hint
-
builder
- Returns:
- a
TextFieldBuilder.ValueTypeStep
-