Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Interface EntityEditComponentPanel.EditorComponent
- Enclosing class:
EntityEditComponentPanel
protected static interface EntityEditComponentPanel.EditorComponent
Species the component used to edit an attribute
-
Method Summary
Modifier and TypeMethodDescriptionget()
label()
optional()
void
replace
(JComponent component) Replaces an already set componentvoid
set
(JComponent component)
-
Method Details
-
get
JComponent get()- Returns:
- the component
- Throws:
IllegalStateException
- in case no component has been set
-
optional
Optional<JComponent> optional()- Returns:
- the component or an empty Optional in case none has been set
-
set
- Parameters:
component
- the component- Throws:
IllegalStateException
- in case the component has already been set
-
replace
Replaces an already set component- Parameters:
component
- the component- Throws:
IllegalStateException
- in case no component has been previously set
-
label
JLabel label()- Returns:
- the label associated with the component
- Throws:
IllegalStateException
- in case no component has been set or if no label is associated with it- See Also:
-