|
||||||||||
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.sibvisions.rad.ui.swing.ext.JVxScrollPane
public class JVxScrollPane
ScrollPane implementation that get the right minimum size, preferred size and maximum size.
JScrollPane
,
Serialized FormNested 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.BaselineResizeBehavior, 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 | |
---|---|
JVxScrollPane()
Creates an empty (no viewport view) JVxScrollPane
where both horizontal and vertical scrollbars appear when needed. |
|
JVxScrollPane(Component pView)
Creates a JVxScrollPane 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. |
|
JVxScrollPane(Component pView,
int pVerticalScrollBarPolicy,
int pHorizontalScrollBarPolicy)
Creates a JVxScrollPane that displays the view
component in a viewport
whose view position can be controlled with a pair of scrollbars. |
|
JVxScrollPane(int pVerticalScrollBarPolicy,
int pHorizontalScrollBarPolicy)
Creates an empty (no viewport view) JVxScrollPane
with specified
scrollbar policies. |
Method Summary | |
---|---|
protected Dimension |
getPreferredComponentSize(Component pComponent)
The calculation of PreferredSize is in here to prevent wrapping each component. |
Dimension |
getPreferredSize()
Returns the preferred size in a bit different way as JScrollPane. |
Component |
getViewportView()
Gets the view port view. |
void |
mouseClicked(MouseEvent pEvent)
|
void |
mouseEntered(MouseEvent pEvent)
|
void |
mouseExited(MouseEvent pEvent)
|
void |
mousePressed(MouseEvent pEvent)
|
void |
mouseReleased(MouseEvent pEvent)
|
void |
setViewport(JViewport pViewport)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JVxScrollPane(Component pView, int pVerticalScrollBarPolicy, int pHorizontalScrollBarPolicy)
JVxScrollPane
that displays the view
component in a viewport
whose view position can be controlled with a pair of scrollbars.
The scrollbar policies specify when the scrollbars are displayed,
For example, if vsbPolicy
is
VERTICAL_SCROLLBAR_AS_NEEDED
then the vertical scrollbar only appears if the view doesn't fit
vertically. The available policy settings are listed at
JScrollPane.setVerticalScrollBarPolicy(int)
and
JScrollPane.setHorizontalScrollBarPolicy(int)
.
pView
- the component to display in the scrollpanes viewportpVerticalScrollBarPolicy
- an integer that specifies the vertical
scrollbar policypHorizontalScrollBarPolicy
- an integer that specifies the horizontal
scrollbar policyJScrollPane.setViewportView(java.awt.Component)
public JVxScrollPane(Component pView)
JVxScrollPane
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.
pView
- the component to display in the scrollpane's viewportJScrollPane.setViewportView(java.awt.Component)
public JVxScrollPane(int pVerticalScrollBarPolicy, int pHorizontalScrollBarPolicy)
JVxScrollPane
with specified
scrollbar policies. The available policy settings are listed at
JScrollPane.setVerticalScrollBarPolicy(int)
and
JScrollPane.setHorizontalScrollBarPolicy(int)
.
pVerticalScrollBarPolicy
- an integer that specifies the vertical
scrollbar policypHorizontalScrollBarPolicy
- an integer that specifies the horizontal
scrollbar policyJScrollPane.setViewportView(java.awt.Component)
public JVxScrollPane()
JVxScrollPane
where both horizontal and vertical scrollbars appear when needed.
Method Detail |
---|
public void mouseClicked(MouseEvent pEvent)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent pEvent)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent pEvent)
mouseExited
in interface MouseListener
public void mousePressed(MouseEvent pEvent)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent pEvent)
mouseReleased
in interface MouseListener
public void setViewport(JViewport pViewport)
setViewport
in class JScrollPane
protected Dimension getPreferredComponentSize(Component pComponent)
pComponent
- the component we want to know the preferred size.
public Dimension getPreferredSize()
getPreferredSize
in class JComponent
public Component getViewportView()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |