|
||||||||||
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
edu.umd.cs.piccolox.swing.PScrollPane
public class PScrollPane
A simple extension to a standard scroll pane that uses the jazz version of the viewport by default. Also uses the jazz version of ScrollPaneLayout
Nested Class Summary | |
---|---|
protected static class |
PScrollPane.PNullAction
An action to do nothing - put into an action map to keep it from looking to its parent |
protected static class |
PScrollPane.PScrollAction
Action to scroll left/right/up/down. |
protected static class |
PScrollPane.PScrollEndAction
Action to scroll to last visible location. |
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.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected boolean |
disableKeyActions
|
protected PScrollPane.PNullAction |
nullAction
|
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 | |
---|---|
PScrollPane()
Pass on the constructor info to the super |
|
PScrollPane(Component view)
Pass on the constructor info to the super |
|
PScrollPane(Component view,
int vsbPolicy,
int hsbPolicy)
Pass on the constructor info to the super |
|
PScrollPane(int vsbPolicy,
int hsbPolicy)
Pass on the constructor info to the super |
Method Summary | |
---|---|
protected JViewport |
createViewport()
Overridden to create the Jazz viewport |
protected void |
disableKeyActions()
Disables key actions on this PScrollPane |
protected void |
installCustomKeyActions()
Install custom key actions (in place of the Swing defaults) to correctly scroll the view |
void |
setKeyActionsDisabled(boolean disable)
Disable or enable key actions on this PScrollPane |
void |
setUI(ScrollPaneUI ui)
Sets the UI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected PScrollPane.PNullAction nullAction
protected boolean disableKeyActions
Constructor Detail |
---|
public PScrollPane(Component view, int vsbPolicy, int hsbPolicy)
public PScrollPane(Component view)
public PScrollPane(int vsbPolicy, int hsbPolicy)
public PScrollPane()
Method Detail |
---|
public void setKeyActionsDisabled(boolean disable)
disable
- true disables key actions, false enables key actionspublic void setUI(ScrollPaneUI ui)
setUI
in class JScrollPane
protected void installCustomKeyActions()
protected void disableKeyActions()
protected JViewport createViewport()
createViewport
in class JScrollPane
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |