| java.lang.Object org.wings.SComponent org.wings.SContainer org.wings.SScrollPane
All known Subclasses: org.wingx.XScrollPane,
Method Summary | |
public SComponent | addComponent(SComponent c, Object constraint, int index) | protected SComponent | addMe(SComponent c, Object constraint, int index) | protected void | adoptScrollBarVisibility(Adjustable scrollbar, int policy) | final public int | getHorizontalExtent() | public Adjustable | getHorizontalScrollBar() Returns the horizontal scroll bar. | final public int | getHorizontalScrollBarPolicy() Returns the horizontal scroll bar policy value. | public int | getMode() | final public Scrollable | getScrollable() Returns the element which should be scrolled. | final public int | getVerticalExtent() | final public Adjustable | getVerticalScrollBar() Returns the vertical scrollbar. | final public int | getVerticalScrollBarPolicy() Returns the vertical scroll bar policy value. | public void | scrollRectToVisible(Rectangle aRect) | protected int | scrollValue(int pos, int size, int rpos, int rsize, int inc) Calculate the best new position to show the given range. | public void | setCG(ScrollPaneCG cg) | public void | setHorizontalExtent(int horizontalExtent) | public void | setHorizontalScrollBar(Adjustable sb) Sets the horizontal scroll bar. | public void | setHorizontalScrollBar(Adjustable sb, String constraint) Sets the horizontal scrollbar. | public void | setHorizontalScrollBarPolicy(int policy) Determines when the horizontal scrollbar appears in the scrollpane. | public void | setMode(int mode) | protected void | setScrollable(SComponent c) Sets the element which should be scrolled. | public void | setVerticalExtent(int verticalExtent) | public void | setVerticalScrollBar(Adjustable sb) Sets the vertical scroll bar. | public void | setVerticalScrollBar(Adjustable sb, String constraint) Sets the vertical scroll bar. | public void | setVerticalScrollBarPolicy(int policy) Determines when the vertical scrollbar appears in the scrollpane. | public void | setViewportView(SComponent view) Sets the scrollable. |
MODE_COMPLETE | final public static int MODE_COMPLETE(Code) | | |
MODE_PAGING | final public static int MODE_PAGING(Code) | | |
MODE_SCROLLING | final public static int MODE_SCROLLING(Code) | | |
backupViewport | protected Rectangle backupViewport(Code) | | Holds the viewport that the scrollable had before adding it to this
scrollpane. The scrollable's viewport is reset to this value, if it
is removed from the this scrollpane.
|
horizontalExtent | protected int horizontalExtent(Code) | | |
horizontalModel | protected SViewportSynchronizationModel horizontalModel(Code) | | |
horizontalScrollBarPolicy | protected int horizontalScrollBarPolicy(Code) | | |
scrollable | protected Scrollable scrollable(Code) | | The element which should be scrolled.
|
verticalExtent | protected int verticalExtent(Code) | | |
verticalModel | protected SViewportSynchronizationModel verticalModel(Code) | | |
verticalScrollBarPolicy | protected int verticalScrollBarPolicy(Code) | | |
virtualViewportHeight | protected int virtualViewportHeight(Code) | | While the (horizontal) maximum of columns displayed by this scrollpane
will never be greater than the number of available columns in the model
of the contained scrollable, the (vertical) maximum of rows displayed by
this scrollpane CAN be greater than the number of available rows in the
model of the contained scrollable. For example this might be true if ...
- MODE == SCROLLING and this scrollpane's vertical extent was set to
something greater than the number of available rows in the model, or
- MODE == PAGING and there are not enough rows in the model in order
to fill up the last page so that the full vertical extent is reached.
In such cases the scrollable's CG fills the difference with empty lines.
The "virtualViewportHeight" equals der number of available rows in the
scrollable's model (typically "scrollable.getScrollableViewport()") PLUS
the number of empty lines needed to fill the viewport until the vertical
extent of this scrollpane is reached.
If MODE == COMPLETE this variable equals the number of available rows.
|
SScrollPane | public SScrollPane()(Code) | | |
adoptScrollBarVisibility | protected void adoptScrollBarVisibility(Adjustable scrollbar, int policy)(Code) | | |
getHorizontalExtent | final public int getHorizontalExtent()(Code) | | |
getHorizontalScrollBar | public Adjustable getHorizontalScrollBar()(Code) | | Returns the horizontal scroll bar.
the scrollbar that controls the viewports horizontal view position |
getMode | public int getMode()(Code) | | |
getScrollable | final public Scrollable getScrollable()(Code) | | Returns the element which should be scrolled.
the element which should be scrolled. |
getVerticalExtent | final public int getVerticalExtent()(Code) | | |
getVerticalScrollBar | final public Adjustable getVerticalScrollBar()(Code) | | Returns the vertical scrollbar.
the scrollbar that controls the viewports vertical view position |
scrollValue | protected int scrollValue(int pos, int size, int rpos, int rsize, int inc)(Code) | | Calculate the best new position to show the given range.
Parameters: pos - the current position Parameters: size - the current visible amount Parameters: rpos - the start-position of the range to expose Parameters: rsize - the size of the range to expose Parameters: inc - the unit-increment to advance pos pos the new position |
setHorizontalExtent | public void setHorizontalExtent(int horizontalExtent)(Code) | | |
setHorizontalScrollBar | public void setHorizontalScrollBar(Adjustable sb)(Code) | | Sets the horizontal scroll bar.
Parameters: sb - the scrollbar that controls the viewports horizontal view position |
setHorizontalScrollBarPolicy | public void setHorizontalScrollBarPolicy(int policy)(Code) | | Determines when the horizontal scrollbar appears in the scrollpane.
The options are:
SScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED
SScrollPane.HORIZONTAL_SCROLLBAR_NEVER
SScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS
|
setMode | public void setMode(int mode)(Code) | | |
setScrollable | protected void setScrollable(SComponent c)(Code) | | Sets the element which should be scrolled.
Parameters: c - the element which should be scrolled. |
setVerticalExtent | public void setVerticalExtent(int verticalExtent)(Code) | | |
setVerticalScrollBar | public void setVerticalScrollBar(Adjustable sb)(Code) | | Sets the vertical scroll bar.
Parameters: sb - the scrollbar that controls the viewports vertical view position |
setVerticalScrollBarPolicy | public void setVerticalScrollBarPolicy(int policy)(Code) | | Determines when the vertical scrollbar appears in the scrollpane.
The options are:
SScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED
SScrollPane.VERTICAL_SCROLLBAR_NEVER
SScrollPane.VERTICAL_SCROLLBAR_ALWAYS
|
setViewportView | public void setViewportView(SComponent view)(Code) | | Sets the scrollable.
If there is already one, it will be removed first.
Parameters: view - the component to add to the viewport |
Methods inherited from org.wings.SContainer | public SComponent add(SComponent c)(Code)(Java Doc) public void add(SComponent c, Object constraint)(Code)(Java Doc) public SComponent add(SComponent c, int index)(Code)(Java Doc) public void add(SComponent c, Object constraint, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint)(Code)(Java Doc) public SComponent addComponent(SComponent c, int index)(Code)(Java Doc) public SComponent addComponent(SComponent c, Object constraint, int index)(Code)(Java Doc) public void addContainerListener(SContainerListener l)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireContainerEvent(int type, SComponent comp)(Code)(Java Doc) public SComponent getComponent(int i)(Code)(Java Doc) public int getComponentCount()(Code)(Java Doc) protected ArrayList getComponentList()(Code)(Java Doc) public SComponent[] getComponents()(Code)(Java Doc) public Object getConstraintAt(int i)(Code)(Java Doc) protected ArrayList getConstraintList()(Code)(Java Doc) public SLayoutManager getLayout()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) public void inviteEachComponent(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected boolean isShowingChildren()(Code)(Java Doc) protected void processContainerEvent(SContainerListener listener, SContainerEvent e)(Code)(Java Doc) public void remove(SComponent c)(Code)(Java Doc) public void remove(int index)(Code)(Java Doc) public void removeAll()(Code)(Java Doc) public void removeContainerListener(SContainerListener l)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) public void setCG(ContainerCG cg)(Code)(Java Doc) public void setLayout(SLayoutManager l)(Code)(Java Doc) protected void setParentFrame(SFrame f)(Code)(Java Doc) public void updateCG()(Code)(Java Doc)
|
Methods inherited from org.wings.SComponent | final public void addComponentListener(SComponentListener l)(Code)(Java Doc) public void addDynamicStyle(Style style)(Code)(Java Doc) final protected void addEventListener(Class<T> type, T listener)(Code)(Java Doc) public void addNotify()(Code)(Java Doc) final public void addParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void addRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void addScriptListener(ScriptListener listener)(Code)(Java Doc) public void addStyle(String additionalCssClassName)(Code)(Java Doc) public Object clone()(Code)(Java Doc) protected void fireComponentChangeEvent(SComponentEvent aEvent)(Code)(Java Doc) public void fireFinalEvents()(Code)(Java Doc) protected void fireKeyEvents()(Code)(Java Doc) final public void fireRenderEvent(int type)(Code)(Java Doc) public ActionMap getActionMap()(Code)(Java Doc) public Color getBackground()(Code)(Java Doc) public SBorder getBorder()(Code)(Java Doc) public ComponentCG getCG()(Code)(Java Doc) final public Object getClientProperty(Object key)(Code)(Java Doc) public SPopupMenu getComponentPopupMenu()(Code)(Java Doc) public Style getDynamicStyle(Selector selector)(Code)(Java Doc) public Collection getDynamicStyles()(Code)(Java Doc) public int getFocusTraversalIndex()(Code)(Java Doc) public SFont getFont()(Code)(Java Doc) public Color getForeground()(Code)(Java Doc) public int getHorizontalAlignment()(Code)(Java Doc) public InputMap getInputMap()(Code)(Java Doc) public InputMap getInputMap(int condition)(Code)(Java Doc) final protected int getListenerCount(Class type)(Code)(Java Doc) final protected Object[] getListenerList()(Code)(Java Doc) final public EventListener[] getListeners(Class<? extends EventListener> type)(Code)(Java Doc) public String getLowLevelEventId()(Code)(Java Doc) final public String getName()(Code)(Java Doc) final public SContainer getParent()(Code)(Java Doc) public SFrame getParentFrame()(Code)(Java Doc) public SDimension getPreferredSize()(Code)(Java Doc) public RequestURL getRequestURL()(Code)(Java Doc) public boolean getResidesInForm()(Code)(Java Doc) public List<ScriptListener> getScriptListenerList()(Code)(Java Doc) public ScriptListener[] getScriptListeners()(Code)(Java Doc) final public Session getSession()(Code)(Java Doc) public boolean getShowAsFormComponent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) public String getToolTipText()(Code)(Java Doc) public int getVerticalAlignment()(Code)(Java Doc) public void invite(ComponentVisitor visitor) throws Exception(Code)(Java Doc) protected static boolean isDifferent(Object oldObject, Object newObject)(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isFocusOwner()(Code)(Java Doc) public boolean isRecursivelyVisible()(Code)(Java Doc) public boolean isReloadForced()(Code)(Java Doc) protected boolean isUpdatePossible()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) protected String paramString()(Code)(Java Doc) protected void processComponentEvent(SComponentListener listener, SComponentEvent e)(Code)(Java Doc) protected boolean processKeyEvents(String[] values)(Code)(Java Doc) protected void processLowLevelEvent(String name, String[] values)(Code)(Java Doc) final public void putClientProperty(Object key, Object value)(Code)(Java Doc) final void register()(Code)(Java Doc) public void reload()(Code)(Java Doc) final protected void reloadIfChange(Object oldVal, Object newVal)(Code)(Java Doc) final protected void reloadIfChange(int oldVal, int newVal)(Code)(Java Doc) final protected void reloadIfChange(boolean oldVal, boolean newVal)(Code)(Java Doc) final protected void reloadIfChange(byte oldVal, byte newVal)(Code)(Java Doc) final protected void reloadIfChange(short oldVal, short newVal)(Code)(Java Doc) final protected void reloadIfChange(long oldVal, long newVal)(Code)(Java Doc) final protected void reloadIfChange(float oldVal, float newVal)(Code)(Java Doc) final protected void reloadIfChange(double oldVal, double newVal)(Code)(Java Doc) final protected void reloadIfChange(char oldVal, char newVal)(Code)(Java Doc) final public void removeComponentListener(SComponentListener l)(Code)(Java Doc) public void removeDynamicStyle(Selector selector)(Code)(Java Doc) final protected void removeEventListener(Class<T> type, T listener)(Code)(Java Doc) public void removeNotify()(Code)(Java Doc) final public void removeParentFrameListener(SParentFrameListener l)(Code)(Java Doc) final public void removeRenderListener(SRenderListener renderListener)(Code)(Java Doc) final public void removeScriptListener(ScriptListener listener)(Code)(Java Doc) public void removeStyle(String cssStyleClassName)(Code)(Java Doc) public void requestFocus()(Code)(Java Doc) public void scrollRectToVisible(Rectangle aRect)(Code)(Java Doc) public void setActionMap(ActionMap actionMap)(Code)(Java Doc) public void setAttribute(String cssPropertyName, String value)(Code)(Java Doc) public void setAttribute(CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, String propertyValue)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, SIcon icon)(Code)(Java Doc) public void setAttribute(Selector selector, CSSProperty property, Color color)(Code)(Java Doc) public void setAttributes(Selector selector, CSSAttributeSet attributes)(Code)(Java Doc) public void setBackground(Color color)(Code)(Java Doc) public void setBorder(SBorder border)(Code)(Java Doc) public void setCG(ComponentCG newCG)(Code)(Java Doc) public void setComponentPopupMenu(SPopupMenu popupMenu)(Code)(Java Doc) public void setDynamicStyles(Collection dynamicStyles)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setFocusTraversalIndex(int index)(Code)(Java Doc) public void setFont(SFont font)(Code)(Java Doc) public void setForeground(Color color)(Code)(Java Doc) public void setHorizontalAlignment(int alignment)(Code)(Java Doc) public void setInputMap(InputMap inputMap)(Code)(Java Doc) public void setInputMap(int condition, InputMap inputMap)(Code)(Java Doc) public void setName(String uniqueName)(Code)(Java Doc) public void setNameRaw(String uncheckedName)(Code)(Java Doc) public void setParent(SContainer parent)(Code)(Java Doc) protected void setParentFrame(SFrame parentFrame)(Code)(Java Doc) public void setPreferredSize(SDimension preferredSize)(Code)(Java Doc) public void setReloadForced(boolean forced)(Code)(Java Doc) public void setShowAsFormComponent(boolean showAsFormComponent)(Code)(Java Doc) public void setStyle(String cssClassName)(Code)(Java Doc) public void setToolTipText(String t)(Code)(Java Doc) public void setVerticalAlignment(int alignment)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc) public String toString()(Code)(Java Doc) final void unregister()(Code)(Java Doc) public void update(Update update)(Code)(Java Doc) public void updateCG()(Code)(Java Doc) public void write(Device s) throws IOException(Code)(Java Doc)
|
|
|