Interface TemporalInput.Builder<T extends Temporal>
- Type Parameters:
T- the temporal type
- All Superinterfaces:
ComponentBuilder<TemporalInput<T>, TemporalInput.Builder<T>>, ComponentValueBuilder<TemporalInput<T>, T, TemporalInput.Builder<T>>, Supplier<TemporalInput<T>>
- Enclosing class:
TemporalInput<T extends Temporal>
public static interface TemporalInput.Builder<T extends Temporal>
extends ComponentValueBuilder<TemporalInput<T>, T, TemporalInput.Builder<T>>
Builds a
TemporalInput-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface ComponentValueBuilder
COMPONENT_VALUE -
Method Summary
Modifier and TypeMethodDescriptionadjustable(boolean adjustable) buttonFocusable(boolean buttonFocusable) Default false.calendarIcon(@Nullable ImageIcon calendarIcon) columns(int columns) dateTimePattern(String dateTimePattern) focusLostBehaviour(int focusLostBehaviour) selectAllOnFocusGained(boolean selectAllOnFocusGained) 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, when
-
Method Details
-
dateTimePattern
- Parameters:
dateTimePattern- the date time pattern- Returns:
- this builder instance
-
selectAllOnFocusGained
- Parameters:
selectAllOnFocusGained- if true the component will select contents on focus gained- Returns:
- this builder instance
-
columns
- Parameters:
columns- the number of colums in the temporal field- Returns:
- this builder instance
-
updateOn
- Parameters:
updateOn- specifies when the underlying value should be updated- Returns:
- this builder instance
-
buttonFocusable
Default false.- Parameters:
buttonFocusable- true if the calendar button should be focusable- Returns:
- this builder instance
-
focusLostBehaviour
- Parameters:
focusLostBehaviour- the focus lost behaviour, JFormattedTextField.COMMIT by default- Returns:
- this builder instance
- See Also:
-
calendarIcon
- Parameters:
calendarIcon- the calendar icon, null for none- Returns:
- this builder instance
-
adjustable
- Parameters:
adjustable- whether the date can be adjusted using the keyboard (UP/DOWN arrows by default) to increment/decrement the date component under cursor- Returns:
- this builder instance
- See Also:
-