|
||||||||||
| 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.Viewport
@DefaultProperty(value="view") public abstract class Viewport
Abstract base class for viewport components. Viewports provide a windowed view on a component (called the "view") that is too large to fit within a given area. They are generally scrollable.
| Nested Class Summary | |
|---|---|
static interface |
Viewport.Skin
Viewport skin interface. |
| 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 |
|---|
org.apache.pivot.collections.Sequence.Tree<T> |
| Constructor Summary | |
|---|---|
Viewport()
|
|
| Method Summary | |
|---|---|
int |
getScrollLeft()
|
int |
getScrollTop()
|
Component |
getView()
|
Bounds |
getViewportBounds()
The bounds of the Viewport within the container, for example, in ScrollPaneSkin, this excludes the scrollbars. |
org.apache.pivot.util.ListenerList<ViewportListener> |
getViewportListeners()
|
boolean |
isConsumeRepaint()
Returns the consumeRepaint flag, which controls whether the viewport will propagate repaints to its parent or consume them. |
org.apache.pivot.collections.Sequence<Component> |
remove(int index,
int count)
|
void |
repaint(int x,
int y,
int width,
int height,
boolean immediate)
Flags an area as needing to be repainted. |
void |
setConsumeRepaint(boolean consumeRepaint)
Sets the consumeRepaint flag, which controls whether the viewport will propagate repaints to its parent or consume them. |
void |
setScrollLeft(int scrollLeft)
|
void |
setScrollTop(int scrollTop)
|
protected void |
setSkin(Skin skin)
Sets the skin, replacing any previous skin. |
void |
setView(Component view)
|
| Methods inherited from class org.apache.pivot.wtk.Container |
|---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getLength, getNamedComponent, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Viewport()
| Method Detail |
|---|
protected void setSkin(Skin skin)
Component
setSkin in class Componentskin - The new skin.public int getScrollTop()
public void setScrollTop(int scrollTop)
public int getScrollLeft()
public void setScrollLeft(int scrollLeft)
public Component getView()
public void setView(Component view)
public boolean isConsumeRepaint()
public void setConsumeRepaint(boolean consumeRepaint)
consumeRepaint - true to consume repaints that bubble up through this viewport;
false to propagate them up like normal.public Bounds getViewportBounds()
public void repaint(int x,
int y,
int width,
int height,
boolean immediate)
Component
repaint in class Component
public org.apache.pivot.collections.Sequence<Component> remove(int index,
int count)
remove in interface org.apache.pivot.collections.Sequence<Component>remove in class Containerpublic org.apache.pivot.util.ListenerList<ViewportListener> getViewportListeners()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||