Package org.apache.pivot.wtk
Class Display
- java.lang.Object
-
- org.apache.pivot.wtk.Component
-
- org.apache.pivot.wtk.Container
-
- org.apache.pivot.wtk.Display
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container
Container.EDTChecker
-
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
Constructors Constructor Description Display(ApplicationContext.DisplayHost displayHost)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
descendantAdded(Component descendant)
protected void
descendantRemoved(Component descendant)
ApplicationContext.DisplayHost
getDisplayHost()
FocusTraversalPolicy
getFocusTraversalPolicy()
java.awt.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(java.lang.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
checkSkin, clearFocus, contains, copyStyle, copyStyle, 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, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, 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, offsetToScreen, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, 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
-
-
-
-
Constructor Detail
-
Display
public Display(ApplicationContext.DisplayHost displayHost)
-
-
Method Detail
-
getDisplayHost
public ApplicationContext.DisplayHost getDisplayHost()
-
getHostWindow
public java.awt.Window getHostWindow()
-
setSkin
@UnsupportedOperation protected void setSkin(Skin skin)
Description copied from class:Component
Sets the skin, replacing any previous skin.
-
setParent
@UnsupportedOperation protected void setParent(Container parent)
-
setLocation
@UnsupportedOperation 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 for such containers.- Overrides:
setLocation
in classComponent
- 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
@UnsupportedOperation public void setVisible(boolean visible)
Description copied from class:Component
Sets the component's visibility.- Overrides:
setVisible
in classContainer
- Parameters:
visible
-true
if the component should be painted;false
, otherwise.
-
setTooltipText
@UnsupportedOperation public void setTooltipText(java.lang.String tooltipText)
Description copied from class:Component
Sets the component's tooltip text.- Overrides:
setTooltipText
in classComponent
- Parameters:
tooltipText
- The component's tooltip text, ornull
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.
-
insert
public void insert(Component component, int index)
Description copied from interface:Sequence
Inserts an item into the sequence at a specific index.
-
descendantAdded
protected void descendantAdded(Component descendant)
- Overrides:
descendantAdded
in classContainer
-
descendantRemoved
protected void descendantRemoved(Component descendant)
- Overrides:
descendantRemoved
in classContainer
-
getFocusTraversalPolicy
public FocusTraversalPolicy getFocusTraversalPolicy()
- Overrides:
getFocusTraversalPolicy
in classContainer
- Returns:
- This container's focus traversal policy.
-
-