|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.api.visual.widget.Widget
org.netbeans.api.visual.widget.ScrollWidget
public class ScrollWidget
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 java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScrollWidget(Scene scene)
scene
- public ScrollWidget(Scene scene, Widget view)
scene
- the sceneview
- the scrolled viewMethod Detail |
---|
public final Widget getView()
public final void setView(Widget view)
view
- the scrolled widgetprotected Rectangle calculateClientArea()
calculateClientArea
in class Widget
|
org.netbeans.api.visual 2.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |