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

Variable Index

 o cornerKeywords

Constructor Index

 o JScrollPane()
 o JScrollPane(Component)
 o JScrollPane(Component, int, int)
 o JScrollPane(int, int)

Method Index

 o createHorizontalScrollBar()
Used by ScrollPaneUI implementations to create the horizontal scrollbar.
 o createVerticalScrollBar()
Used by ScrollPaneUI implementations to create the vertical scrollbar.
 o createViewport()
Returns 'new JViewport()' by default.
 o getAccessibleRole()
Get the role of this object.
 o getColumnHeader()
 o getCorner(String)
 o getHorizontalScrollBar()
 o getHorizontalScrollBarPolicy()
 o getRowHeader()
 o getUI()
 o getUIClassID()
 o getVerticalScrollBar()
 o getVerticalScrollBarPolicy()
 o getViewport()
 o isOpaque()
Returns true if this component is completely opaque.
 o setColumnHeader(JViewport)
 o setColumnHeaderView(Component)
Creates a ColumnHeader viewport if neccessary and then sets its view.
 o setCorner(String, Component)
 o setHorizontalScrollBarPolicy(int)
 o setRowHeader(JViewport)
 o setRowHeaderView(Component)
Creates a RowHeader viewport if neccessary and then sets its view.
 o setUI(ScrollPaneUI)
 o setVerticalScrollBarPolicy(int)
 o setViewport(JViewport)
 o setViewportView(Component)
Creates a viewport if neccessary and then sets its view.
 o updateUI()
Notification from the UIFactory that the L&F has changed.

Variables

 o cornerKeywords
 protected static final String cornerKeywords[]

Constructors

 o JScrollPane
 public JScrollPane(Component view,
                    int vsbPolicy,
                    int hsbPolicy)
 o JScrollPane
 public JScrollPane(Component view)
 o JScrollPane
 public JScrollPane(int vsbPolicy,
                    int hsbPolicy)
 o JScrollPane
 public JScrollPane()

Methods

 o getUI
 public ScrollPaneUI getUI()
 o setUI
 public void setUI(ScrollPaneUI ui)
 o updateUI
 public void updateUI()
Notification from the UIFactory that the L&F has changed.

Overrides:
updateUI in class JComponent
 o getUIClassID
 public String getUIClassID()
Returns:
"ScrollPaneUI"
Overrides:
getUIClassID in class JComponent
See Also:
getUIClassID, getUI
 o getVerticalScrollBarPolicy
 public int getVerticalScrollBarPolicy()
 o setVerticalScrollBarPolicy
 public void setVerticalScrollBarPolicy(int x)
 o getHorizontalScrollBarPolicy
 public int getHorizontalScrollBarPolicy()
 o setHorizontalScrollBarPolicy
 public void setHorizontalScrollBarPolicy(int x)
 o 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
 o 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
 o getHorizontalScrollBar
 public JScrollBar getHorizontalScrollBar()
 o getVerticalScrollBar
 public JScrollBar getVerticalScrollBar()
 o 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.

 o getViewport
 public JViewport getViewport()
 o setViewport
 public void setViewport(JViewport x)
 o setViewportView
 public void setViewportView(Component view)
Creates a viewport if neccessary and then sets its view.

 o getRowHeader
 public JViewport getRowHeader()
 o setRowHeader
 public void setRowHeader(JViewport x)
 o setRowHeaderView
 public void setRowHeaderView(Component view)
Creates a RowHeader viewport if neccessary and then sets its view.

 o getColumnHeader
 public JViewport getColumnHeader()
 o setColumnHeader
 public void setColumnHeader(JViewport x)
 o setColumnHeaderView
 public void setColumnHeaderView(Component view)
Creates a ColumnHeader viewport if neccessary and then sets its view.

 o getCorner
 public Component getCorner(String key)
 o setCorner
 public void setCorner(String key,
                       Component x)
 o isOpaque
 public boolean isOpaque()
Returns true if this component is completely opaque.

Overrides:
isOpaque in class JComponent
 o getAccessibleRole
 public AccessibleRole getAccessibleRole()
Get the role of this object.

Returns:
an instance of AccessibleRole describing the role of the object
Overrides:
getAccessibleRole in class JComponent
See Also:
AccessibleRole

All Packages  Class Hierarchy  This Package  Previous  Next  Index