public class ScrollPaneBorderListener extends ComponentAdapter
| Modifier and Type | Method and Description |
|---|---|
void |
componentHidden(ComponentEvent ev) |
void |
componentShown(ComponentEvent ev) |
static ScrollPaneBorderListener |
createBottomAndTopBorderListener(JScrollPane scroll)
Returns a scroll pane border listener that will apply a border on the
bottom and on the top of the scroll.
|
static ScrollPaneBorderListener |
createBottomBorderListener(JScrollPane scroll)
Returns a scroll pane border listener that will apply a border only on the
bottom of the scroll.
|
static ScrollPaneBorderListener |
createFullBorderListener(JScrollPane scroll)
Returns a scroll pane border listener that will apply a full border to the
scroll.
|
void |
updateBorder()
Updates the border depending on whether the scroll bars are visible or not.
|
componentMoved, componentResizedpublic static ScrollPaneBorderListener createBottomBorderListener(JScrollPane scroll)
scroll - the scroll pane to update.public static ScrollPaneBorderListener createBottomAndTopBorderListener(JScrollPane scroll)
scroll - the scroll pane to update.public static ScrollPaneBorderListener createFullBorderListener(JScrollPane scroll)
scroll - the scroll pane to update.public void componentShown(ComponentEvent ev)
componentShown in interface ComponentListenercomponentShown in class ComponentAdapterpublic void componentHidden(ComponentEvent ev)
componentHidden in interface ComponentListenercomponentHidden in class ComponentAdapterpublic void updateBorder()
Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.