All Packages Class Hierarchy This Package Previous Next Index
Class com.sun.java.swing.JScrollPane
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.JScrollPane
- public class JScrollPane
- extends JComponent
- implements ScrollPaneConstants, Accessible
A specialized container that manages a viewport, optional
vertical and horizontal scrollbars, and optional row and
column heading viewports.
Warning: serialized objects of this class will not be compatible with
future swing releases. The current serialization support is appropriate
for short term storage or RMI between Swing1.0 applications. It will
not be possible to load serialized Swing1.0 objects with future releases
of Swing. The JDK1.2 release of Swing will be the compatibility
baseline for the serialized form of Swing objects.
- See Also:
- JScrollPane. ScrollBar
-
cornerKeywords
-
-
JScrollPane()
-
-
JScrollPane(Component)
-
-
JScrollPane(Component, int, int)
-
-
JScrollPane(int, int)
-
-
createHorizontalScrollBar()
- Used by ScrollPaneUI implementations to create the horizontal
scrollbar.
-
createVerticalScrollBar()
- Used by ScrollPaneUI implementations to create the vertical
scrollbar.
-
createViewport()
- Returns 'new JViewport()' by default.
-
getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
-
getColumnHeader()
-
-
getCorner(String)
-
-
getHorizontalScrollBar()
-
-
getHorizontalScrollBarPolicy()
-
-
getRowHeader()
-
-
getUI()
-
-
getUIClassID()
-
-
getVerticalScrollBar()
-
-
getVerticalScrollBarPolicy()
-
-
getViewport()
-
-
getViewportBorder()
-
-
isOpaque()
- Returns true if this component is completely opaque.
-
isValidateRoot()
-
Calls to revalidate() any descendant of this JScrollPane, e.g.
-
setColumnHeader(JViewport)
-
-
setColumnHeaderView(Component)
- Creates a ColumnHeader viewport if neccessary and then sets
its view.
-
setCorner(String, Component)
-
-
setHorizontalScrollBarPolicy(int)
-
-
setRowHeader(JViewport)
-
-
setRowHeaderView(Component)
- Creates a RowHeader viewport if neccessary and then sets
its view.
-
setUI(ScrollPaneUI)
-
-
setVerticalScrollBarPolicy(int)
-
-
setViewport(JViewport)
-
-
setViewportBorder(Border)
- Add a border around the viewport.
-
setViewportView(Component)
- Creates a viewport if neccessary and then sets its view.
-
updateUI()
- Resets the UI property to a value from the current look and feel.
cornerKeywords
protected static final String cornerKeywords[]
JScrollPane
public JScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
JScrollPane
public JScrollPane(Component view)
JScrollPane
public JScrollPane(int vsbPolicy,
int hsbPolicy)
JScrollPane
public JScrollPane()
getUI
public ScrollPaneUI getUI()
setUI
public void setUI(ScrollPaneUI ui)
updateUI
public void updateUI()
- Resets the UI property to a value from the current look and feel.
- Overrides:
- updateUI in class JComponent
getUIClassID
public String getUIClassID()
- Returns:
- "ScrollPaneUI"
- Overrides:
- getUIClassID in class JComponent
- See Also:
- getUIClassID, getUI
getVerticalScrollBarPolicy
public int getVerticalScrollBarPolicy()
setVerticalScrollBarPolicy
public void setVerticalScrollBarPolicy(int x)
getHorizontalScrollBarPolicy
public int getHorizontalScrollBarPolicy()
setHorizontalScrollBarPolicy
public void setHorizontalScrollBarPolicy(int x)
getViewportBorder
public Border getViewportBorder()
- Returns:
- the value of the viewportBorder property.
- See Also:
- setViewportBorder
setViewportBorder
public void setViewportBorder(Border viewportBorder)
- Add a border around the viewport. Note that the border isn't
set on the viewport directly, JViewport doesn't support the
JComponent border property. Similarly setting the JScrollPanes
viewport doesn't effect the viewportBorder property.
The default value of this property is computed by the look
and feel implementation.
This is a JavaBeans bound property.
- See Also:
- getViewportBorder, setViewport
createHorizontalScrollBar
public JScrollBar createHorizontalScrollBar()
- Used by ScrollPaneUI implementations to create the horizontal
scrollbar. Returns a JScrollPane.ScrollBar by default. Subclasses
may override this method to force ScrollPaneUI implementations to
use a JScrollBar subclass.
- Returns:
- The horizontal JScrollBar
- See Also:
- JScrollPane. ScrollBar
createVerticalScrollBar
public JScrollBar createVerticalScrollBar()
- Used by ScrollPaneUI implementations to create the vertical
scrollbar. Returns a JScrollPane.ScrollBar by default. Subclasses
may override this method to force ScrollPaneUI implementations to
use a JScrollBar subclass.
- Returns:
- The vertical JScrollBar
- See Also:
- JScrollPane. ScrollBar
getHorizontalScrollBar
public JScrollBar getHorizontalScrollBar()
getVerticalScrollBar
public JScrollBar getVerticalScrollBar()
createViewport
protected JViewport createViewport()
- Returns 'new JViewport()' by default. Used to create the
viewport (as needed) in setViewportView(), setRowHeaderView(),
and setColumnHeaderView(). Subclasses my override this method
to return a subclass of JViewport.
getViewport
public JViewport getViewport()
setViewport
public void setViewport(JViewport x)
setViewportView
public void setViewportView(Component view)
- Creates a viewport if neccessary and then sets its view.
getRowHeader
public JViewport getRowHeader()
setRowHeader
public void setRowHeader(JViewport x)
setRowHeaderView
public void setRowHeaderView(Component view)
- Creates a RowHeader viewport if neccessary and then sets
its view.
getColumnHeader
public JViewport getColumnHeader()
setColumnHeader
public void setColumnHeader(JViewport x)
setColumnHeaderView
public void setColumnHeaderView(Component view)
- Creates a ColumnHeader viewport if neccessary and then sets
its view.
getCorner
public Component getCorner(String key)
setCorner
public void setCorner(String key,
Component x)
isOpaque
public boolean isOpaque()
- Returns true if this component is completely opaque.
- Overrides:
- isOpaque in class JComponent
isValidateRoot
public boolean isValidateRoot()
- Calls to revalidate() any descendant of this JScrollPane, e.g.
the viewports view, will cause a request to be queued that
will validate this JScrollPane and all its descendants.
- Returns:
- true
- Overrides:
- isValidateRoot in class JComponent
- See Also:
- revalidate, invalidate, validate
getAccessibleContext
public AccessibleContext getAccessibleContext()
- Get the AccessibleContext associated with this JComponent
- Returns:
- the AccessibleContext of this JComponent
- Overrides:
- getAccessibleContext in class JComponent
All Packages Class Hierarchy This Package Previous Next Index