JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

A Container is something that can contain Components.

Inherited Attributes

Function Summary

public abstract bound getName() : java.lang.String

Returns this Container's name, or null if it doesn't have a name.

More: [+]

Returns this Container's name, or null if it doesn't have a name.

Returns
String
this Container's name or null
public abstract bound getParent() : Container

Returns this Container's parent Container, or null if it doesn't have a parent.

More: [+]

Returns this Container's parent Container, or null if it doesn't have a parent.

Returns
Container
this Container's parent or null
protected parentToThisContainer(component: Component) : Void

Parents the given Component to this Container.

More: [+]

Parents the given Component to this Container. First, unparents the Component from its current Container, if any, by calling remove(component). Then sets the Component's parent to this. Does nothing if the parameter is null or is already parented to this Container.

Parameters
component

the component to parent to this Container

protected abstract remove(component: Component) : Void

Called when a Component is being reparented to notify its old Container that it is to be removed.

More: [+]

Called when a Component is being reparented to notify its old Container that it is to be removed.

Parameters
component

the Component to remove

protected unparentFromThisContainer(component: Component) : Void

Unparents the given Component from this Container.

More: [+]

Unparents the given Component from this Container. If the given Component is currently parented to this Container, sets the Component's parent to null. Otherwise, does nothing. Does nothing if the parameter is null.

Parameters
component

the component to unparent from this Container

Inherited Functions