站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ScrollWidget (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.widget
Class ScrollWidget

java.lang.Object
  extended by org.netbeans.api.visual.widget.Widget
      extended by org.netbeans.api.visual.widget.ScrollWidget

public class ScrollWidget
extends Widget

This a scroll widget similar to JScrollPane. A scrolled widget is could be manipulated with getView and setView methods. The scroll-bars are automatically visible when the scrolled widget is bigger than the widget.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
ScrollWidget(Scene scene)
          Creates a scroll widget.
ScrollWidget(Scene scene, Widget view)
          Creates a scroll widget.
 
Method Summary
protected  Rectangle calculateClientArea()
          Calculates a client area as from the scroll widget preferred bounds.
 Widget getView()
          Returns an inner widget.
 void setView(Widget view)
          Sets an scrolled widget.
 
Methods inherited from class org.netbeans.api.visual.widget.Widget
addChild, addChild, addChild, addChild, addChildren, addDependency, bringToBack, bringToFront, convertLocalToScene, convertLocalToScene, convertSceneToLocal, convertSceneToLocal, createActions, equals, getAccessibleContext, getActions, getActions, getBackground, getBorder, getBounds, getChildConstraint, getChildren, getClientArea, getCursor, getFont, getForeground, getGraphics, getLayout, getLocation, getLookup, getMaximumSize, getMinimumSize, getParentWidget, getPreferredBounds, getPreferredLocation, getPreferredSize, getScene, getState, getToolTipText, hashCode, isCheckClipping, isEnabled, isHitAt, isOpaque, isPreferredBoundsSet, isRepaintRequiredForRevalidating, isValidated, isVisible, notifyAdded, notifyRemoved, notifyStateChanged, paint, paintBackground, paintBorder, paintChildren, paintWidget, removeChild, removeChildren, removeChildren, removeDependency, removeFromParent, repaint, resolveBounds, revalidate, revalidate, setAccessibleContext, setBackground, setBorder, setBorder, setCheckClipping, setChildConstraint, setCursor, setEnabled, setFont, setForeground, setLayout, setMaximumSize, setMinimumSize, setOpaque, setPreferredBounds, setPreferredLocation, setPreferredSize, setState, setToolTipText, setVisible
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScrollWidget

public ScrollWidget(Scene scene)
Creates a scroll widget.

Parameters:
scene -

ScrollWidget

public ScrollWidget(Scene scene,
                    Widget view)
Creates a scroll widget.

Parameters:
scene - the scene
view - the scrolled view
Method Detail

getView

public final Widget getView()
Returns an inner widget.

Returns:
the inner widget

setView

public final void setView(Widget view)
Sets an scrolled widget.

Parameters:
view - the scrolled widget

calculateClientArea

protected Rectangle calculateClientArea()
Calculates a client area as from the scroll widget preferred bounds.

Overrides:
calculateClientArea in class Widget
Returns:
the calculated client area

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.