public interface Component<C extends Component>
Modifier and Type | Method and Description |
---|---|
boolean |
canPaste(Component child)
Returns true if given component can be added as this component child.
|
Component |
copy(C parent)
Returns a copy of this component for adding into the given parent component.
|
List<C> |
getChildren() |
<T extends C> |
getChildren(Class<T> type) |
List<C> |
getChildren(Collection<Class<? extends C>> types) |
Model |
getModel() |
C |
getParent() |
C getParent()
<T extends C> List<T> getChildren(Class<T> type)
type
- Interested children type to return.List<C> getChildren(Collection<Class<? extends C>> types)
types
- Interested children type to return.@CheckForNull Model getModel()
Component copy(C parent)
boolean canPaste(Component child)