Class ResizeComponentListener
java.lang.Object
java.awt.event.ComponentAdapter
org.languagetool.gui.ResizeComponentListener
- All Implemented Interfaces:
ComponentListener, EventListener
A class that listens for window resize/move events and saves its bounds.
- Since:
- 3.4
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidattachToWindow(JFrame frame) voidvoid(package private) static RectanglegetBoundsProperty(JFrame frame) private void(package private) static voidsetBoundsProperty(JFrame frame, Rectangle bounds) Methods inherited from class ComponentAdapter
componentHidden, componentShown
-
Field Details
-
BOUNDS_PROPERTY_NAME
- See Also:
-
frame
-
-
Constructor Details
-
ResizeComponentListener
-
-
Method Details
-
attachToWindow
-
setBoundsProperty
-
getBoundsProperty
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener- Overrides:
componentResizedin classComponentAdapter
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener- Overrides:
componentMovedin classComponentAdapter
-
saveBounds
private void saveBounds()
-