| thinwire.ui.Container
Container | public interface Container extends ItemChangeEventComponent(Code) | | A Container is a Component that maintains a collection of other Component s as a group.
Additionally, Container is the foundation of all other container types in the framework such as Panel , Frame ,
Dialog , TabSheet , etc. It is worth noting that components within a Container , maintain there
X and Y coordinates relative to the Container itself. Therefore, a Component with an X value of 5 that
is placed in a Container with an X value of 10, will actually be positioned at X coordinate 15.
author: Joshua J. Gertzen |
Inner Class :public enum ScrollType | |
Field Summary | |
final public static String | PROPERTY_LAYOUT Contains the formal property name for the layout manager of the container. | final public static String | PROPERTY_SCROLL_TYPE Contains the formal property name for the scroll type of the container. |
Method Summary | |
T | getChildWithFocus() Get the child Component for this container that currently has the focus.
If this container contains another container and that container contains the
Component at the bottom of the component hiearchy with the focus, this method
will return the Container contained by this container, not the
Component . | List<T> | getChildren() Returns a list of components in the container. | T | getComponentWithFocus() Get the Component at the bottom of the component hiearchy that has the focus. | int | getInnerHeight() Returns the usable inner height of the Container . | int | getInnerWidth() Returns the usable inner width of the Container . | Layout | getLayout() Gets the current layout manager that is responsible for sizing and
positioning components of this Container . | ScrollType | getScrollType() Gets the current scrollType defined for the Container. | void | setLayout(Layout layout) Sets the layout manager that is used to size and position components of this Container .
If a Layout is not specified for a container, then you must size and position of the components
within a container manually.
Default: null (i.e. | void | setScrollType(ScrollType scrollType) Sets the scrollType for the X and Y axis of this Container. |
getChildWithFocus | T getChildWithFocus()(Code) | | Get the child Component for this container that currently has the focus.
If this container contains another container and that container contains the
Component at the bottom of the component hiearchy with the focus, this method
will return the Container contained by this container, not the
Component . If you want the component at the bottom of the component
hiearchy that has the focus, use getComponentWithFocus() .
the child Component with focus, or null if there is no child with focus. |
getChildren | List<T> getChildren()(Code) | | Returns a list of components in the container.
this Container's children. |
getComponentWithFocus | T getComponentWithFocus()(Code) | | Get the Component at the bottom of the component hiearchy that has the focus.
This method first walks up the component hiearchy to find the root Container, then
it walks down the hiearchy to locate the component at the bottom of the component
hiearchy that has the focus.
the Component at the bottom of component hiearchy that has the focus, or null if no component does. |
getInnerHeight | int getInnerHeight()(Code) | | Returns the usable inner height of the Container .
the usable inner height of the Container . |
getInnerWidth | int getInnerWidth()(Code) | | Returns the usable inner width of the Container .
the usable inner width of the Container . |
getScrollType | ScrollType getScrollType()(Code) | | Gets the current scrollType defined for the Container.
the current scrollType defined for the Container. |
|
|