|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.yospace.yae.yogi.YogiComponent
|
+--com.yospace.yae.yogi.YogiScrollPane
Scroll pane class. Acts as a parent for 2 scrollbars and a content pane.
| Constructor Summary | |
YogiScrollPane()
Default constructor where the two scrollbars are set to be at the right and bottom of the screen and will appear as needed. |
|
YogiScrollPane(int horizontalConfig,
int verticalConfig,
int horizontalPlacement,
int verticalPlacement)
Constructs a YogiScrollPane with its scrollbars set to the specified configuration and placement. |
|
YogiScrollPane(YogiComponent content)
Constructs a YogiScrollPane with the specified contents. |
|
| Method Summary | |
void |
add(YogiComponent c)
Overrides the YogiComponent.add(YogiComponent c) method, to add any objects to the content
pane rather than the scroll pane. |
YogiScrollContentPane |
getContentPane()
Gets the scrollable content pane. |
YogiScrollBar |
getHorizScroller()
Gets the horizontal scrollbar. |
YogiScrollBar |
getVertScroller()
Gets the vertical scrollbar. |
void |
propertyChanged(java.lang.Object source,
int property)
Required by the PropertyChangeListener interface. |
void |
remove(YogiComponent c)
Overrides the YogiComponent.remove(YogiComponent c) method, to remove any objects from the
content pane rather than the scroll pane. |
void |
setHorizScroller(YogiScrollBar horizScroller)
Sets the horizontal scrollbar. |
void |
setVertScroller(YogiScrollBar vertScroller)
Sets the vertical scrollbar. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public YogiScrollPane()
public YogiScrollPane(YogiComponent content)
content - the YogiComponent to be displayed in the scroll pane.
public YogiScrollPane(int horizontalConfig,
int verticalConfig,
int horizontalPlacement,
int verticalPlacement)
horizontalConfig - the configuration of the horizontal scrollbar.verticalConfig - the configuration of the vertical scrollbar.horizontalPlacement - the placement of the horizontal scrollbar.verticalPlacement - the placement of the vertical scrollbar.YogiScrollBar| Method Detail |
public YogiScrollBar getHorizScroller()
public YogiScrollBar getVertScroller()
public void setHorizScroller(YogiScrollBar horizScroller)
horizScroller - the new horizontal scrollbarpublic void setVertScroller(YogiScrollBar vertScroller)
vertScroller - the new vertical scrollbarpublic YogiScrollContentPane getContentPane()
public void add(YogiComponent c)
YogiComponent.add(YogiComponent c) method, to add any objects to the content
pane rather than the scroll pane.add in class YogiComponentc - the component to add.public void remove(YogiComponent c)
YogiComponent.remove(YogiComponent c) method, to remove any objects from the
content pane rather than the scroll pane.remove in class YogiComponentc - the component to remove.
public void propertyChanged(java.lang.Object source,
int property)
PropertyChangeListener interface.
Notified by the content pane when its contents change, and sets the modes of the
scrollbars appropriately.propertyChanged in interface PropertyChangeListenersource - the source of the property change eventproperty - the code of the property that changed
|
Copyright 2002 Yospace Holdings Ltd. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||