java.lang.Object
is.codion.swing.framework.ui.EditorComponents
Manages the components for a
SwingEntityEditor-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classManages settings that are applied to a component builder when set.static final classCreatesSwingEntityEditorbased componentsfinal class -
Method Summary
Modifier and TypeMethodDescriptioncreate()detail(ForeignKey foreignKey) editor()static EditorComponentseditorComponents(SwingEntityEditor editor) settings()
-
Method Details
-
editor
- Returns:
- the underlying editor
-
settings
- Returns:
- the component settings
-
create
- Returns:
- the
EditorComponents.CreateComponentsinstance
-
component
- Type Parameters:
T- the value type- Parameters:
attribute- the attribute- Returns:
- the
EditorComponents.EditorComponentcontaining the component associated with the given attribute
-
detail
- Parameters:
foreignKey- the foreign key- Returns:
- a detail
EditorComponentsinstance based on the given foreign key - Throws:
IllegalStateException- if no detail editor is registered for the foreign key, or if multiple detail editors are registered for it (usedetail(String)with an explicit name in that case)- See Also:
-
detail
- Parameters:
name- the detail editor name- Returns:
- a detail
EditorComponentsinstance based on the given name - Throws:
IllegalArgumentException- in case no detail editor has been set for the given name- See Also:
-
editorComponents
- Parameters:
editor- the editor- Returns:
- a new
EditorComponentsinstance
-