Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
Property | Stored in | Bound? |
---|---|---|
columnHeader | scrollPane | yes |
columnHeaderView | columnHeader | no |
componentOrientation | scrollPane | yes |
horizontalScrollBar | scrollPane | yes |
horizontalScrollBarPolicy | scrollPane | yes |
layout | scrollPane | yes |
rowHeader | scrollPane | yes |
rowHeaderView | rowHeader | no |
validateRoot | scrollPane | no |
verticalScrollBar | scrollPane | yes |
verticalScrollBarPolicy | scrollPane | yes |
viewport | scrollPane | yes |
viewportBorder | scrollPane | yes |
viewportBorderBounds | scrollPane | no |
viewportView | viewport | no |
wheelScrollingEnabled | scrollPane | yes |
Nested Class Summary | |
protected class |
|
protected class |
Nested classes/interfaces inherited from class javax.swing.JComponent | |
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container | |
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component | |
Component.AccessibleAWTComponent , Component.BltBufferStrategy , Component.FlipBufferStrategy |
Field Summary | |
protected JViewport | |
protected JScrollBar | |
protected int | |
protected Component | |
protected Component | |
protected JViewport | |
protected Component | |
protected Component | |
protected JScrollBar | |
protected int | |
protected JViewport |
Fields inherited from class javax.swing.JComponent | |
TOOL_TIP_TEXT_KEY , UNDEFINED_CONDITION , WHEN_ANCESTOR_OF_FOCUSED_COMPONENT , WHEN_FOCUSED , WHEN_IN_FOCUSED_WINDOW , accessibleContext , listenerList , ui |
Fields inherited from class java.awt.Component | |
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver | |
ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
Constructor Summary | |
| |
| |
| |
|
Method Summary | |
JScrollBar | |
JScrollBar | |
protected JViewport | |
AccessibleContext |
|
JViewport | |
Component | |
JScrollBar | |
int | |
JViewport | |
ScrollPaneUI |
|
String |
|
JScrollBar | |
int | |
JViewport | |
Border | |
Rectangle | |
boolean |
|
boolean | |
void | |
void | |
void |
|
void | |
void | |
void |
|
void |
|
void | |
void | |
void |
|
void | |
void |
|
void | |
void | |
void |
|
void |
|
void |
|
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public JScrollPane()
Creates a newJScrollPane
without a view. The scrollbar policy is set toScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED
andScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED
.
public JScrollPane(int vsbPolicy, int hsbPolicy)
Creates a newJScrollPane
without a view; The scrollbar policies are set tovsbPolicy
andhsbPolicy
.
- Parameters:
vsbPolicy
- the vertical scrollbar policy to sethsbPolicy
- the vertical scrollbar policy to set
public JScrollPane(Component view)
Creates a newJScrollPane
that embeds the specifiedview
component, displaying vertical and horizontal scrollbars as needed.
- Parameters:
view
- the component that is embedded inside the JScrollPane
public JScrollPane(Component view, int vsbPolicy, int hsbPolicy)
Creates a newJScrollPane
that embeds the specifiedview
component; The scrollbar policies are set tovsbPolicy
andhsbPolicy
.
- Parameters:
vsbPolicy
- the vertical scrollbar policy to sethsbPolicy
- the vertical scrollbar policy to set
public AccessibleContext getAccessibleContext()
Returns the accessible context associated with thisJScrollPane
.
- Specified by:
- getAccessibleContext in interface Accessible
- Overrides:
- getAccessibleContext in interface JComponent
- Returns:
- the accessible context associated with this
JScrollPane
public ScrollPaneUI getUI()
This method returns the scrollpane's UI delegate.
- Returns:
- The scrollpane's UI delegate.
public String getUIClassID()
Get the value of the UIClassID property. This property should be a key in theUIDefaults
table managed byUIManager
, the value of which is the name of a class to load for the component'sJComponent.ui
property.
- Overrides:
- getUIClassID in interface JComponent
- Returns:
- A "symbolic" name which will map to a class to use for the component's UI, such as
"ComponentUI"
public boolean isValidateRoot()
Returntrue
if this component is a validation root; this will cause calls toJComponent.invalidate()
in this component's children to be "captured" at this component, and not propagate to its parents. For most components this should returnfalse
, but some components such asJViewport
will want to returntrue
.
- Overrides:
- isValidateRoot in interface JComponent
- Returns:
- Whether this component is a validation root
public void setComponentOrientation(ComponentOrientation co)
Sets the text layout orientation of this component. New components default to UNKNOWN (which behaves like LEFT_TO_RIGHT). This method affects only the current component, whileComponent.applyComponentOrientation(ComponentOrientation)
affects the entire hierarchy.
- Overrides:
- setComponentOrientation in interface Component
- Parameters:
- See Also:
Component.getComponentOrientation()
public void setLayout(LayoutManager l)
Sets the layout manager for this container to the specified layout manager.
- Parameters:
public void setUI(ScrollPaneUI ui)
This method sets the scrollpane's UI delegate.
- Parameters:
ui
- The scrollpane's UI delegate.
public void updateUI()
This method should be overridden in subclasses. In JComponent, the method does nothing. In subclasses, it should a UI delegate (corresponding to the symbolic name returned fromJComponent.getUIClassID()
) from theUIManager
, and callsJComponent.setUI(ComponentUI)
with the new delegate.
- Overrides:
- updateUI in interface JComponent