|
||||||||||
| 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.Container |
|---|
Container.EDT_Checker |
| 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 |
setTooltipText(String tooltipText)
Sets the component's tooltip text. |
void |
setVisible(boolean visible)
Sets the component's visibility. |
| Methods inherited from class org.apache.pivot.wtk.Container |
|---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantGainedFocus, descendantLostFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getGraphics, getLength, getNamedComponent, indexOf, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, 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 Componentskin - The new skin.protected void setParent(Container parent)
setParent in class Container
public void setLocation(int x,
int y)
Component
setLocation in class Componentx - 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 Containervisible - true if the component should be painted; false,
otherwise.public void setTooltipText(String tooltipText)
Component
setTooltipText in class ComponenttooltipText - The component's tooltip text, or null for no tooltip.
public void repaint(int x,
int y,
int width,
int height,
boolean immediate)
Component
repaint in class Container
public void insert(Component component,
int index)
Sequence
insert in interface Sequence<Component>insert in class Containercomponent - 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 Containerprotected void descendantRemoved(Component descendant)
descendantRemoved in class Containerpublic FocusTraversalPolicy getFocusTraversalPolicy()
Container
getFocusTraversalPolicy in class Container
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||