|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JScrollPane
com.sciapp.table.AdvancedJScrollPane
public class AdvancedJScrollPane
This subclass of JScrollPane ensures that the scrollpane will adjust correctly to the last (dummy) column added by AdvancedJTable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JScrollPane |
---|
JScrollPane.AccessibleJScrollPane, JScrollPane.ScrollBar |
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 |
---|
Fields inherited from class javax.swing.JScrollPane |
---|
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
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 | |
---|---|
AdvancedJScrollPane()
Creates an empty (no viewport view) AdvancedJScrollPane where both horizontal and vertical scrollbars appear when needed. |
|
AdvancedJScrollPane(Component view)
Creates an AdvancedJScrollPane that displays the contents of the specified component, where both horizontal and vertical scrollbars appear whenever the component's contents are larger than the view. |
|
AdvancedJScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
Creates an AdvancedJScrollPane that displays the view component in a viewport whose view position can be controlled with a pair of scrollbars. |
|
AdvancedJScrollPane(int vsbPolicy,
int hsbPolicy)
Creates an empty (no viewport view) AdvancedJScrollPane with specified scrollbar policies. |
Method Summary | |
---|---|
JScrollBar |
createHorizontalScrollBar()
Returns a specialized horizontal scrollbar which is a subclass of JScrollPane.ScrollBar. |
void |
layout()
Causes this container to lay out its components. |
void |
setViewportView(Component view)
Creates a viewport if necessary and then sets its view. |
void |
validateTree()
Recursively descends the container tree and recomputes the layout for any subtrees marked as needing it (those marked as invalid). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AdvancedJScrollPane()
public AdvancedJScrollPane(int vsbPolicy, int hsbPolicy)
public AdvancedJScrollPane(Component view)
public AdvancedJScrollPane(Component view, int vsbPolicy, int hsbPolicy)
Method Detail |
---|
public JScrollBar createHorizontalScrollBar()
createHorizontalScrollBar
in class JScrollPane
JScrollBar
public void layout()
layout
in class Container
public void setViewportView(Component view)
JScrollPane
constructor
should use this method to specify the scrollable child that's going
to be displayed in the scrollpane. For example:
JScrollPane scrollpane = new JScrollPane(); scrollpane.setViewportView(myBigComponentToScroll);Applications should not add children directly to the scrollpane.
setViewportView
in class JScrollPane
view
- the component to add to the viewportJScrollPane.setViewport(javax.swing.JViewport)
,
JViewport.setView(java.awt.Component)
public void validateTree()
validate
.
validateTree
in class Container
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |