Module is.codion.swing.framework.ui
Class DefaultEditComponent<C extends JComponent,T>
java.lang.Object
is.codion.swing.framework.ui.component.DefaultEditComponent<C,T>
- Type Parameters:
C- the component typeT- the attribute type
- All Implemented Interfaces:
EditComponent<C,T>
public class DefaultEditComponent<C extends JComponent,T>
extends Object
implements EditComponent<C,T>
A default
EditComponent implementation.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<Integer> Specifies the default number of text field columns Value type: Integer Default value: 20 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EntityComboBox.BuildercomboBox(ForeignKey foreignKey, SwingEntityEditor editor) component(SwingEntityEditor editor) Provides an inputComponentValuefor editing a single attribute value for one or more entities.protected EntitySearchField.BuildersearchField(ForeignKey foreignKey, SwingEntityEditor editor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface is.codion.swing.framework.ui.component.EditComponent
caption
-
Field Details
-
TEXT_FIELD_COLUMNS
Specifies the default number of text field columns- Value type: Integer
- Default value: 20
-
-
Constructor Details
-
DefaultEditComponent
- Parameters:
attribute- the attribute for which this instance creates aComponentValue
-
-
Method Details
-
component
Description copied from interface:EditComponentProvides an inputComponentValuefor editing a single attribute value for one or more entities.- Specified by:
componentin interfaceEditComponent<C extends JComponent,T> - Parameters:
editor- the editor used to create foreign key component models- Returns:
- a new
ComponentValueinstance
-
attribute
- Returns:
- the attribute
-
comboBox
- Parameters:
foreignKey- the foreign keyeditor- the editor providing the combo box model factory- Returns:
- a
EntityComboBox.Builderinstance - See Also:
-
searchField
- Parameters:
foreignKey- the foreign keyeditor- the editor providing the search model factory- Returns:
- a
EntitySearchField.Builderinstance - See Also:
-