public abstract class LayoutBase extends java.lang.Object implements Layout
Type | Property and Description |
---|---|
javafx.beans.property.Property<LayoutBase.LabelPosition> |
labelPosition |
javafx.beans.property.Property<java.lang.String> |
title
Gets the label for this component.
|
Modifier and Type | Class and Description |
---|---|
static class |
LayoutBase.ChildContainer
A container for an individual component inside a layout.
|
static class |
LayoutBase.LabelPosition
An enumeration of the possible positions for labels of components inside a layout.
|
Constructor and Description |
---|
LayoutBase() |
Modifier and Type | Method and Description |
---|---|
protected ActionList |
actionsForComponent(Component component)
Creates an action list for a component.
|
void |
addChild(Component component)
Adds a new component to this layout.
|
protected abstract void |
addComponentToView(Component component)
Adds a component to this layout's view.
|
protected ActionList |
baseActionsForComponent(Component component)
Creates the initial action list for a component.
|
protected ActionList |
createChangeMenusForWidget(Widget widget)
Creates all the menus needed for changing a widget to a different type.
|
java.util.List<Component> |
getChildren()
Gets all the children in this layout.
|
LayoutBase.LabelPosition |
getLabelPosition()
Gets the side on which labels for components should be displayed.
|
javafx.beans.property.Property<LayoutBase.LabelPosition> |
labelPositionProperty() |
void |
removeChild(Component component)
Removes a child component from ths layout.
|
protected abstract void |
removeComponentFromView(Component component)
Removes a component from this layout's view.
|
protected abstract void |
replaceInPlace(Component existing,
Component replacement)
Replaces a component with another one, keeping it in the same position as the original component.
|
void |
setLabelPosition(LayoutBase.LabelPosition labelPosition)
Sets the side on which labels for children should be displayed.
|
javafx.beans.property.Property<java.lang.String> |
titleProperty()
Gets the label for this component.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, addComponent, allComponents, components, removeComponent
public javafx.beans.property.Property<java.lang.String> titleProperty
titleProperty
in interface Component
Component.getTitle()
,
Component.setTitle(String)
public final javafx.beans.property.Property<LayoutBase.LabelPosition> labelPositionProperty
protected abstract void addComponentToView(Component component)
component
- the component to addprotected abstract void removeComponentFromView(Component component)
component
- the component to removeprotected abstract void replaceInPlace(Component existing, Component replacement)
existing
- the component to replacereplacement
- the component to replace it withpublic java.util.List<Component> getChildren()
Layout
getChildren
in interface Layout
public void addChild(Component component)
Layout
public void removeChild(Component component)
Layout
removeChild
in interface Layout
component
- the component to removepublic javafx.beans.property.Property<java.lang.String> titleProperty()
Component
titleProperty
in interface Component
Component.getTitle()
,
Component.setTitle(String)
public final LayoutBase.LabelPosition getLabelPosition()
public final javafx.beans.property.Property<LayoutBase.LabelPosition> labelPositionProperty()
public final void setLabelPosition(LayoutBase.LabelPosition labelPosition)
protected final ActionList createChangeMenusForWidget(Widget widget)
protected ActionList actionsForComponent(Component component)
baseActionsForComponent(Component)
instead of creating a new action list from scratch.component
- the component to create the action list forprotected final ActionList baseActionsForComponent(Component component)
component
- the component to create an action list for