Module is.codion.swing.common.ui
Interface TemporalField.Builder<T extends Temporal>
- Type Parameters:
T
- the temporal type
- All Superinterfaces:
ComponentBuilder<T,
,TemporalField<T>, TemporalField.Builder<T>> TextComponentBuilder<T,
,TemporalField<T>, TemporalField.Builder<T>> TextFieldBuilder<T,
TemporalField<T>, TemporalField.Builder<T>>
- Enclosing class:
- TemporalField<T extends Temporal>
public static interface TemporalField.Builder<T extends Temporal>
extends TextFieldBuilder<T,TemporalField<T>,TemporalField.Builder<T>>
A builder for
TemporalField
.-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptioncalendarIcon
(ImageIcon calendarIcon) dateTimeFormatter
(DateTimeFormatter dateTimeFormatter) Sets theDateTimeFormatter
for this field, this formatter must be able to parse the date time pattern this field is based on.dateTimeParser
(TemporalField.DateTimeParser<T> dateTimeParser) focusLostBehaviour
(int focusLostBehaviour) incrementDecrementEnabled
(boolean incrementDecrementEnabled) keyStroke
(TemporalField.KeyboardShortcut keyboardShortcut, KeyStroke keyStroke) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusCycleRoot, 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
Methods inherited from interface is.codion.swing.common.ui.component.text.TextComponentBuilder
caretListener, controlDeleteWord, disabledTextColor, dragEnabled, editable, focusAccelerator, lowerCase, margin, maximumLength, moveCaretToEndOnFocusGained, moveCaretToStartOnFocusGained, onTextChanged, selectAllOnFocusGained, selectedTextColor, selectionColor, updateOn, upperCase
Methods inherited from interface is.codion.swing.common.ui.component.text.TextFieldBuilder
action, actionListener, columns, format, hintText, horizontalAlignment, selector
-
Method Details
-
dateTimeFormatter
Sets theDateTimeFormatter
for this field, this formatter must be able to parse the date time pattern this field is based on.- Parameters:
dateTimeFormatter
- the date/time formatter- Returns:
- this builder instance
-
dateTimeParser
- Parameters:
dateTimeParser
- the date/time parser- 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- Returns:
- this builder instance
-
incrementDecrementEnabled
- Parameters:
incrementDecrementEnabled
- enable increment/decrement of date component under cursor- Returns:
- this builder instance
-
keyStroke
TemporalField.Builder<T> keyStroke(TemporalField.KeyboardShortcut keyboardShortcut, KeyStroke keyStroke) - Parameters:
keyboardShortcut
- the keyboard shortcut keykeyStroke
- the keyStroke to assign to the given shortcut key, null resets to the default one- Returns:
- this builder instance
-