public interface Layout extends Component, ComponentContainer
titleProperty
Modifier and Type | Method and Description |
---|---|
void |
addChild(Component component)
Adds a new component to this layout.
|
default void |
addChild(Component component,
double x,
double y)
Adds a new component to this layout from a drag-and-drop operation.
|
default void |
addComponent(Component component)
Adds a component to this container.
|
default java.util.stream.Stream<Component> |
allComponents()
All of the components contained by or represented by this one, if any.
|
default java.util.stream.Stream<Component> |
components()
Gets a stream of all the first-level components in this container.
|
java.util.Collection<Component> |
getChildren()
Gets all the children in this layout.
|
void |
removeChild(Component component)
Removes a child component from ths layout.
|
default void |
removeComponent(Component component)
Removes a component from this container.
|
getName, getSettings, getTitle, getView, setTitle, titleProperty
java.util.Collection<Component> getChildren()
void addChild(Component component)
component
- the component to adddefault void addChild(Component component, double x, double y)
addChild(Component)
. Whether or not the drop coordinates are used is up to the specific
layout implementation.component
- the component to addx
- the x-coordinate, relative to this layout, that the component was dropped aty
- the y-coordinate, relative to this layout, that the component was dropped atvoid removeChild(Component component)
component
- the component to removedefault void removeComponent(Component component)
ComponentContainer
removeComponent
in interface ComponentContainer
component
- the component to removedefault void addComponent(Component component)
ComponentContainer
addComponent
in interface ComponentContainer
component
- the component to adddefault java.util.stream.Stream<Component> components()
ComponentContainer
components
in interface ComponentContainer
default java.util.stream.Stream<Component> allComponents()
Component
allComponents
in interface Component
allComponents
in interface ComponentContainer