Package snap.swing
Class SWWindowHpr
A WindowHpr map snap Window functionality to Swing.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the native for the window content.Returns the native being helped.protected ComponentAdapter
Returns the listener that listens to Swing window move/resize/show/hide.Returns the snap Window.void
hide()
Hides the window.void
Initialize native window.void
requestPaint
(Rect aRect) Registers a view for repaint.protected void
sendWinEvent
(WindowEvent anEvent, ViewEvent.Type aType) Sends the given event.void
Sets the document file for the window title bar proxy icon.void
Sets the image property of given object to given string.void
setResizable
(boolean aValue) Sets the title of the window.void
Sets the title of the window.void
setWindow
(WindowView aWin) Sets the snap Window Swing.void
show()
Show window at given screen x and y.protected void
Called when WindowView changes to update native.protected void
Handles active changed.protected void
Handles when Swing window bounds changed.protected void
Called when window is shown/hidden.void
toFront()
Order window to front.viewToScreen
(View aView, double aX, double aY) Override to correct for case of RootView not in Swing Window.Methods inherited from class snap.view.WindowView.WindowHpr
focusDidChange
-
Constructor Details
-
SWWindowHpr
public SWWindowHpr()
-
-
Method Details
-
getWindow
Returns the snap Window.- Specified by:
getWindow
in classWindowView.WindowHpr<Window>
-
setWindow
Sets the snap Window Swing.- Specified by:
setWindow
in classWindowView.WindowHpr<Window>
-
getNative
Returns the native being helped.- Specified by:
getNative
in classWindowView.WindowHpr<Window>
-
getContentNative
Returns the native for the window content.- Overrides:
getContentNative
in classWindowView.WindowHpr<Window>
-
initWindow
public void initWindow()Initialize native window.- Specified by:
initWindow
in classWindowView.WindowHpr<Window>
-
show
public void show()Show window at given screen x and y.- Specified by:
show
in classWindowView.WindowHpr<Window>
-
hide
public void hide()Hides the window.- Specified by:
hide
in classWindowView.WindowHpr<Window>
-
toFront
public void toFront()Order window to front.- Specified by:
toFront
in classWindowView.WindowHpr<Window>
-
viewToScreen
Override to correct for case of RootView not in Swing Window.- Overrides:
viewToScreen
in classWindowView.WindowHpr<Window>
-
setTitle
Sets the title of the window. -
setResizable
public void setResizable(boolean aValue) Sets the title of the window. -
setDocURL
Sets the document file for the window title bar proxy icon.- Overrides:
setDocURL
in classWindowView.WindowHpr<Window>
-
setImage
Sets the image property of given object to given string. -
swingWindowShowingChanged
protected void swingWindowShowingChanged()Called when window is shown/hidden. -
getNativeWindowBoundsListener
Returns the listener that listens to Swing window move/resize/show/hide. -
swingWindowBoundsChanged
protected void swingWindowBoundsChanged()Handles when Swing window bounds changed. -
requestPaint
Registers a view for repaint.- Specified by:
requestPaint
in classWindowView.WindowHpr<Window>
-
swingWindowActiveChanged
protected void swingWindowActiveChanged()Handles active changed. -
snapWindowPropertyChanged
Called when WindowView changes to update native. -
sendWinEvent
Sends the given event.
-