Overview
A Container
is something that can contain Components
.
Inherited Attributes
Function Summary
- public abstract bound getName() : java.lang.String
-
Returns this
More: [+]Container's
name, ornull
if it doesn't have a name.Returns this
Container's
name, ornull
if it doesn't have a name.-
Returns
- String
-
this
Container's
name ornull
- public abstract bound getParent() : Container
-
Returns this
More: [+]Container's
parentContainer
, ornull
if it doesn't have a parent.Returns this
Container's
parentContainer
, ornull
if it doesn't have a parent.-
Returns
- Container
-
this
Container's
parent ornull
- protected parentToThisContainer(component: Component) : Void
-
Parents the given
More: [+]Component
to thisContainer
.Parents the given
Component
to thisContainer
. First, unparents theComponent
from its currentContainer
, if any, by callingremove(component)
. Then sets theComponent's
parent to this. Does nothing if the parameter isnull
or is already parented to thisContainer
.-
Parameters
- component
-
the component to parent to this
Container
- protected abstract remove(component: Component) : Void
-
Called when a
More: [+]Component
is being reparented to notify its oldContainer
that it is to be removed.Called when a
Component
is being reparented to notify its oldContainer
that it is to be removed.-
Parameters
- component
-
the
Component
to remove
- protected unparentFromThisContainer(component: Component) : Void
-
Unparents the given
More: [+]Component
from thisContainer
.Unparents the given
Component
from thisContainer
. If the givenComponent
is currently parented to thisContainer
, sets theComponent's
parent tonull
. Otherwise, does nothing. Does nothing if the parameter isnull
.-
Parameters
- component
-
the component to unparent from this
Container