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
.-
Nested Class Summary
Nested classes/interfaces inherited from interface is.codion.swing.common.ui.component.text.TextComponentBuilder
TextComponentBuilder.InitialCaretPosition
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, 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) dateTimePattern
(String dateTimePattern) focusLostBehaviour
(int focusLostBehaviour) incrementDecrementEnabled
(boolean incrementDecrementEnabled) keyStroke
(ControlKey<?> controlKey, KeyStroke keyStroke) 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
Methods inherited from interface is.codion.swing.common.ui.component.text.TextComponentBuilder
caretListener, caretUpdatePolicy, controlDeleteWord, disabledTextColor, dragEnabled, editable, focusAccelerator, initialCaretPosition, 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, hint, horizontalAlignment, selector
-
Method Details
-
dateTimePattern
- Parameters:
dateTimePattern
- the date time pattern- Returns:
- this builder instance
-
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
- Parameters:
controlKey
- the control keykeyStroke
- the keyStroke to assign to the given control- Returns:
- this builder instance
-