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