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

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

org.netbeans.api.visual 2.2

org.netbeans.api.visual.widget
Class SwingScrollWidget

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

public class SwingScrollWidget
extends Widget

This is a scroll widget similar to JScrollPane. In comparison with the ScrollWidget class, this class is using JScrollBar for vertical and horizontal scroll bars.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.api.visual.widget.Widget
Widget.Dependency
 
Constructor Summary
SwingScrollWidget(Scene scene)
          Creates a scroll widget.
SwingScrollWidget(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

SwingScrollWidget

public SwingScrollWidget(Scene scene)
Creates a scroll widget.

Parameters:
scene -

SwingScrollWidget

public SwingScrollWidget(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.