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, componentResized
public 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 ComponentListener
componentShown
in class ComponentAdapter
public void componentHidden(ComponentEvent ev)
componentHidden
in interface ComponentListener
componentHidden
in class ComponentAdapter
public void updateBorder()
Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.