Module com.aoapps.hodgepodge
Package com.aoapps.hodgepodge.swing
package com.aoapps.hodgepodge.swing
-
ClassDescriptionAoTextField<T>Extends
JTextField
with the following features.Formats the type-specific value to text, only called for values that pass all registered validators.A text field containing anInteger
value.Parses the non-null text into the type-specific value orOptional.empty()
if field is empty or effectively empty (such as white-space only depending on parser).A text field containing aString
value without any trimming.A text field containing a trimmedString
.Validates a non-null value.ImplementsDocumentListener
sending all events to the givenRunnable
on the swing event thread viaSwingUtilities.invokeLater(java.lang.Runnable)
.When requested, it will synchronize its list of elements to an externally- provided list.When requested, it will synchronize its list of elements to an externally- provided list.When requested, it will recursively synchronize its children to an externally- provided tree.