|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Display
public final class Display
Container that serves as the root of a component hierarchy.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Constructor Summary | |
---|---|
Display(ApplicationContext.DisplayHost displayHost)
|
Method Summary | |
---|---|
protected void |
descendantAdded(Component descendant)
|
protected void |
descendantRemoved(Component descendant)
|
ApplicationContext.DisplayHost |
getDisplayHost()
|
FocusTraversalPolicy |
getFocusTraversalPolicy()
Returns this container's focus traversal policy. |
Window |
getHostWindow()
|
void |
insert(Component component,
int index)
Inserts an item into the sequence at a specific index. |
void |
repaint(int x,
int y,
int width,
int height,
boolean immediate)
Flags an area as needing to be repainted. |
void |
setLocation(int x,
int y)
Sets the component's location. |
protected void |
setParent(Container parent)
|
protected void |
setSkin(Skin skin)
Sets the skin, replacing any previous skin. |
void |
setVisible(boolean visible)
Sets the component's visibility. |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, clear, containsFocus, descendantGainedFocus, descendantLostFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getLength, getNamedComponent, indexOf, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setFocusTraversalPolicy, store, transferFocus, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Display(ApplicationContext.DisplayHost displayHost)
Method Detail |
---|
public ApplicationContext.DisplayHost getDisplayHost()
public Window getHostWindow()
protected void setSkin(Skin skin)
Component
setSkin
in class Component
skin
- The new skin.protected void setParent(Container parent)
setParent
in class Container
public void setLocation(int x, int y)
Component
setLocation
in class Component
x
- The component's horizontal position relative to the origin of the
parent container.y
- The component's vertical position relative to the origin of the
parent container.public void setVisible(boolean visible)
Component
setVisible
in class Container
visible
- true if the component should be painted; false,
otherwise.public void repaint(int x, int y, int width, int height, boolean immediate)
Component
repaint
in class Component
public void insert(Component component, int index)
Sequence
insert
in interface Sequence<Component>
insert
in class Container
component
- The item to be added to the sequence.index
- The index at which the item should be inserted. Must be a value between
0 and getLength().protected void descendantAdded(Component descendant)
descendantAdded
in class Container
protected void descendantRemoved(Component descendant)
descendantRemoved
in class Container
public FocusTraversalPolicy getFocusTraversalPolicy()
Container
getFocusTraversalPolicy
in class Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |