org.apache.pivot.wtk
Class Display

java.lang.Object
  extended by org.apache.pivot.wtk.Component
      extended by org.apache.pivot.wtk.Container
          extended by org.apache.pivot.wtk.Display
All Implemented Interfaces:
Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual

public final class Display
extends Container

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 org.apache.pivot.wtk.Component
clearFocus, contains, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getSize, getSkin, getStyles, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, installSkin, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setCursor, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipWrapText, setWidth, setWidthLimits, setWidthLimits, setX, setY, toString, transferFocus, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Display

public Display(ApplicationContext.DisplayHost displayHost)
Method Detail

getDisplayHost

public ApplicationContext.DisplayHost getDisplayHost()

getHostWindow

public Window getHostWindow()

setSkin

protected void setSkin(Skin skin)
Description copied from class: Component
Sets the skin, replacing any previous skin.

Overrides:
setSkin in class Component
Parameters:
skin - The new skin.

setParent

protected void setParent(Container parent)
Overrides:
setParent in class Container

setLocation

public void setLocation(int x,
                        int y)
Description copied from class: Component
Sets the component's location. NOTE This method should only be called when performing layout. However, since some containers do not reposition components during layout, it is valid for callers to invoke this method directly when such containers.

Overrides:
setLocation in class Component
Parameters:
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.

setVisible

public void setVisible(boolean visible)
Description copied from class: Component
Sets the component's visibility.

Overrides:
setVisible in class Container
Parameters:
visible - true if the component should be painted; false, otherwise.

setTooltipText

public void setTooltipText(String tooltipText)
Description copied from class: Component
Sets the component's tooltip text.

Overrides:
setTooltipText in class Component
Parameters:
tooltipText - The component's tooltip text, or null for no tooltip.

repaint

public void repaint(int x,
                    int y,
                    int width,
                    int height,
                    boolean immediate)
Description copied from class: Component
Flags an area as needing to be repainted.

Overrides:
repaint in class Container

insert

public void insert(Component component,
                   int index)
Description copied from interface: Sequence
Inserts an item into the sequence at a specific index.

Specified by:
insert in interface Sequence<Component>
Overrides:
insert in class Container
Parameters:
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().

descendantAdded

protected void descendantAdded(Component descendant)
Overrides:
descendantAdded in class Container

descendantRemoved

protected void descendantRemoved(Component descendant)
Overrides:
descendantRemoved in class Container

getFocusTraversalPolicy

public FocusTraversalPolicy getFocusTraversalPolicy()
Description copied from class: Container
Returns this container's focus traversal policy.

Overrides:
getFocusTraversalPolicy in class Container