public class Editors
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static PropertyEditor<?> |
createCheckEditor(PropertySheet.Item property) |
static <T> PropertyEditor<?> |
createChoiceEditor(PropertySheet.Item property,
java.util.Collection<T> choices) |
static PropertyEditor<?> |
createColorEditor(PropertySheet.Item property) |
static java.util.Optional<PropertyEditor<?>> |
createCustomEditor(PropertySheet.Item property)
Static method used to create an instance of the custom editor returned
via a call to
PropertySheet.Item.getPropertyEditorClass()
The class returned must declare a constructor that takes a single
parameter of type PropertySheet.Item into which the parameter supplied
to this method will be passed. |
static PropertyEditor<?> |
createDateEditor(PropertySheet.Item property) |
static PropertyEditor<?> |
createFontEditor(PropertySheet.Item property) |
static PropertyEditor<?> |
createNumericEditor(PropertySheet.Item property) |
static PropertyEditor<?> |
createTextEditor(PropertySheet.Item property) |
public static final PropertyEditor<?> createTextEditor(PropertySheet.Item property)
public static final PropertyEditor<?> createNumericEditor(PropertySheet.Item property)
public static final PropertyEditor<?> createCheckEditor(PropertySheet.Item property)
public static final <T> PropertyEditor<?> createChoiceEditor(PropertySheet.Item property, java.util.Collection<T> choices)
public static final PropertyEditor<?> createColorEditor(PropertySheet.Item property)
public static final PropertyEditor<?> createDateEditor(PropertySheet.Item property)
public static final PropertyEditor<?> createFontEditor(PropertySheet.Item property)
public static final java.util.Optional<PropertyEditor<?>> createCustomEditor(PropertySheet.Item property)
PropertySheet.Item.getPropertyEditorClass()
The class returned must declare a constructor that takes a single
parameter of type PropertySheet.Item into which the parameter supplied
to this method will be passed.property - The PropertySheet.Item that this editor will be
associated with.PropertyEditor wrapped in an Optional