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
-
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
-
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:
-