|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object charva.awt.Component charva.awt.Container charvax.swing.JScrollPane
provides a scrollable view of a component.
Field Summary |
Fields inherited from class charva.awt.Container |
_components, _currentFocus, _insets, _isValid, _layoutMgr, _minimumSize, _size |
Fields inherited from class charva.awt.Component |
_alignmentX, _alignmentY, _background, _cursesColor, _enabled, _focusListeners, _foreground, _keyListeners, _origin, _parent, _visible, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Constructor Summary | |
JScrollPane()
Creates an empty JScrollPane. |
|
JScrollPane(Component component_)
Create a JScrollPane that displays the contents of the specified component. |
Method Summary | |
void |
debug(int level_)
|
void |
draw()
Draw all the components in this container. |
JViewport |
getViewport()
Returns the viewport of the component being displayed. |
Border |
getViewportBorder()
Returns a reference to the border around the JScrollPane's viewport. |
Dimension |
minimumSize()
Overrides the minimumSize() method of Container. |
void |
scroll(ScrollEvent e_)
Called by a Scrollable object such as JTable or JList, when its state changes in such a way that it may need to be scrolled. |
void |
setSize(Dimension size_)
Overrides the corresponding method in Container. |
void |
setSize(int width_,
int height_)
Overrides the corresponding method in Container. |
void |
setViewportBorder(Border viewportBorder_)
Adds a border around the viewport. |
void |
setViewportView(Component component_)
Creates a viewport if necessary, and then sets its view. |
java.lang.String |
toString()
|
Methods inherited from class charva.awt.Container |
add, add, doLayout, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getCurrentFocus, getHeight, getInsets, getSize, getWidth, invalidate, isFocusTraversable, isValid, nextFocus, previousFocus, processKeyEvent, remove, requestFocus, setBackground, setFocus, setForeground, setHeight, setLayout, setWidth, validate |
Methods inherited from class charva.awt.Component |
addFocusListener, addKeyListener, contains, contains, getAlignmentX, getAlignmentY, getAncestorWindow, getBackground, getBounds, getCursesColor, getForeground, getLocation, getLocationOnScreen, getName, getParent, hasFocus, hide, isDisplayed, isEnabled, isTotallyObscured, isVisible, processEvent, processFocusEvent, processMouseEvent, repaint, requestSync, setBounds, setBounds, setBounds, setEnabled, setLocation, setLocation, setName, setParent, setVisible, show, validateCursesColor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JScrollPane()
public JScrollPane(Component component_)
component_
- The component to be displayed. This component must
implement the Scrollable interface.Method Detail |
public void setViewportView(Component component_)
component_
- the view to set in the viewport.public JViewport getViewport()
public void setSize(int width_, int height_)
setSize
in class Container
public void setSize(Dimension size_)
setSize
in class Container
public Dimension minimumSize()
minimumSize
in class Container
public void scroll(ScrollEvent e_)
scroll
in interface ScrollListener
public void draw()
Container
draw
in class Container
public void setViewportBorder(Border viewportBorder_)
public Border getViewportBorder()
public void debug(int level_)
debug
in class Container
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |