|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Container<T extends Component>
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.
Nested Class Summary | |
---|---|
static class |
Container.ScrollType
|
Field Summary | |
---|---|
static java.lang.String |
PROPERTY_LAYOUT
Contains the formal property name for the layout manager of the container. |
static java.lang.String |
PROPERTY_SCROLL_TYPE
Contains the formal property name for the scroll type of the container. |
Fields inherited from interface thinwire.ui.Component |
---|
ACTION_CLICK, ACTION_DOUBLE_CLICK, PROPERTY_ENABLED, PROPERTY_FOCUS, PROPERTY_FOCUS_CAPABLE, PROPERTY_HEIGHT, PROPERTY_LIMIT, PROPERTY_USER_OBJECT, PROPERTY_VISIBLE, PROPERTY_WIDTH, PROPERTY_X, PROPERTY_Y |
Method Summary | |
---|---|
java.util.List<T> |
getChildren()
Returns a list of components in the container. |
T |
getChildWithFocus()
Get the child Component for this container that currently has the focus. |
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 . |
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 . |
void |
setScrollType(Container.ScrollType scrollType)
Sets the scrollType for the X and Y axis of this Container. |
Methods inherited from interface thinwire.ui.ItemChangeEventComponent |
---|
addItemChangeListener, removeItemChangeListener |
Field Detail |
---|
static final java.lang.String PROPERTY_SCROLL_TYPE
setScrollType(ScrollType)
,
getScrollType()
,
Container.ScrollType
,
Constant Field Valuesstatic final java.lang.String PROPERTY_LAYOUT
setLayout(Layout)
,
getLayout()
,
Layout
,
Constant Field ValuesMethod Detail |
---|
Container.ScrollType getScrollType()
void setScrollType(Container.ScrollType scrollType)
scrollType
- one of the enum ScrollType constants.#PROPERTY_SCROLL
,
PropertyChangeEvent
Layout getLayout()
Container
.
Container
.setLayout(Layout)
,
Component.getLimit()
,
Component.setLimit(Object)
,
Layout
void setLayout(Layout layout)
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. fixed absolute coordinate positioning)
layout
- any class implementing the Layout
interface, or null.PROPERTY_LAYOUT
,
Component.getLimit()
,
Component.setLimit(Object)
,
Layout
,
PropertyChangeEvent
java.util.List<T> getChildren()
T getChildWithFocus()
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()
.
T getComponentWithFocus()
int getInnerWidth()
Container
.
Container
.int getInnerHeight()
Container
.
Container
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |