|
||||||||||
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.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree |
Constructor Summary | |
---|---|
protected |
Display(ApplicationContext.DisplayHost displayHost)
|
Method Summary | |
---|---|
ApplicationContext.DisplayHost |
getDisplayHost()
|
FocusTraversalPolicy |
getFocusTraversalPolicy()
Returns this container's focus traversal policy. |
Point |
getMouseLocation()
|
void |
insert(Component component,
int index)
Inserts an item into the sequence at a specific index. |
void |
invalidate()
Flags the component's hierarchy as invalid, and clears any cached preferred size. |
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. |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, containsFocus, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getLength, indexOf, isAncestor, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setContextKey, setFocusTraversalPolicy, setTooltip, setVisible, store, transferFocus, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Display(ApplicationContext.DisplayHost displayHost)
Method Detail |
---|
public ApplicationContext.DisplayHost getDisplayHost()
public Point getMouseLocation()
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 invalidate()
Component
invalidate
in class Component
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().public FocusTraversalPolicy getFocusTraversalPolicy()
Container
getFocusTraversalPolicy
in class Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |