|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.wtk.Component
pivot.wtk.Container
pivot.wtk.Viewport
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 pivot.wtk.Component |
---|
Component.Attributes, Component.ComponentDictionary, Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Constructor Summary | |
---|---|
Viewport()
|
Method Summary | |
---|---|
int |
getScrollLeft()
|
int |
getScrollTop()
|
Component |
getView()
|
Bounds |
getViewportBounds()
|
ListenerList<ViewportListener> |
getViewportListeners()
|
boolean |
isConsumeRepaint()
Returns the consumeRepaint flag, which controls whether the viewport will propagate repaints to its parent or consume them. |
Sequence<Component> |
remove(int index,
int count)
Removes one or more items from the sequence. |
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 pivot.wtk.Container |
---|
add, containsFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getContextKey, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, isFocusable, iterator, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setContextKey, setEnabled, setFocusTraversalPolicy, setParent, setTooltip, setVisible, store, update, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Viewport()
Method Detail |
---|
protected void setSkin(Skin skin)
Component
setSkin
in class Component
skin
- 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 Sequence<Component> remove(int index, int count)
Sequence
remove
in interface Sequence<Component>
remove
in class Container
index
- The starting index to remove.count
- The number of items to remove, beginning with index.
public ListenerList<ViewportListener> getViewportListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |