This is an implementation of the DesktopManager. It currently implements the basic behaviors for managing JInternalFrames in an arbitrary parent. JInternalFrames that are not children of a JDesktop will use this component to handle their desktop-like actions. This class provides a policy for the various JInternalFrame methods, it is not meant to be called directly rather the various JInternalFrame methods will call into the DesktopManager.
This is an implementation of the DesktopManager. It currently implements the basic behaviors for managing JInternalFrames in an arbitrary parent. JInternalFrames that are not children of a JDesktop will use this component to handle their desktop-like actions. This class provides a policy for the various JInternalFrame methods, it is not meant to be called directly rather the various JInternalFrame methods will call into the DesktopManager.
(activate-frame this f)
This will activate f moving it to the front. It will set the current active frame's (if any) IS_SELECTED_PROPERTY to false. There can be only one active frame across all Layers.
f - the JInternalFrame to be activated - javax.swing.JInternalFrame
This will activate f moving it to the front. It will set the current active frame's (if any) IS_SELECTED_PROPERTY to false. There can be only one active frame across all Layers. f - the JInternalFrame to be activated - `javax.swing.JInternalFrame`
(begin-dragging-frame this f)
Description copied from interface: DesktopManager
f - javax.swing.JComponent
Description copied from interface: DesktopManager f - `javax.swing.JComponent`
(begin-resizing-frame this f direction)
Description copied from interface: DesktopManager
f - javax.swing.JComponent
direction - int
Description copied from interface: DesktopManager f - `javax.swing.JComponent` direction - `int`
(close-frame this f)
Removes the frame, and, if necessary, the desktopIcon, from its parent.
f - the JInternalFrame to be removed - javax.swing.JInternalFrame
Removes the frame, and, if necessary, the desktopIcon, from its parent. f - the JInternalFrame to be removed - `javax.swing.JInternalFrame`
(deactivate-frame this f)
Description copied from interface: DesktopManager
f - javax.swing.JInternalFrame
Description copied from interface: DesktopManager f - `javax.swing.JInternalFrame`
(deiconify-frame this f)
Removes the desktopIcon from its parent and adds its frame to the parent.
f - the JInternalFrame to be de-iconified - javax.swing.JInternalFrame
Removes the desktopIcon from its parent and adds its frame to the parent. f - the JInternalFrame to be de-iconified - `javax.swing.JInternalFrame`
(drag-frame this f new-x new-y)
Moves the visible location of the frame being dragged to the location specified. The means by which this occurs can vary depending on the dragging algorithm being used. The actual logical location of the frame might not change until endDraggingFrame is called.
f - javax.swing.JComponent
new-x - int
new-y - int
Moves the visible location of the frame being dragged to the location specified. The means by which this occurs can vary depending on the dragging algorithm being used. The actual logical location of the frame might not change until endDraggingFrame is called. f - `javax.swing.JComponent` new-x - `int` new-y - `int`
(end-dragging-frame this f)
Description copied from interface: DesktopManager
f - javax.swing.JComponent
Description copied from interface: DesktopManager f - `javax.swing.JComponent`
(end-resizing-frame this f)
Description copied from interface: DesktopManager
f - javax.swing.JComponent
Description copied from interface: DesktopManager f - `javax.swing.JComponent`
(iconify-frame this f)
Removes the frame from its parent and adds its desktopIcon to the parent.
f - the JInternalFrame to be iconified - javax.swing.JInternalFrame
Removes the frame from its parent and adds its desktopIcon to the parent. f - the JInternalFrame to be iconified - `javax.swing.JInternalFrame`
(maximize-frame this f)
Resizes the frame to fill its parents bounds.
f - the frame to be resized - javax.swing.JInternalFrame
Resizes the frame to fill its parents bounds. f - the frame to be resized - `javax.swing.JInternalFrame`
(minimize-frame this f)
Restores the frame back to its size and position prior to a maximizeFrame call.
f - the JInternalFrame to be restored - javax.swing.JInternalFrame
Restores the frame back to its size and position prior to a maximizeFrame call. f - the JInternalFrame to be restored - `javax.swing.JInternalFrame`
(open-frame this f)
Normally this method will not be called. If it is, it try to determine the appropriate parent from the desktopIcon of the frame. Will remove the desktopIcon from its parent if it successfully adds the frame.
f - javax.swing.JInternalFrame
Normally this method will not be called. If it is, it try to determine the appropriate parent from the desktopIcon of the frame. Will remove the desktopIcon from its parent if it successfully adds the frame. f - `javax.swing.JInternalFrame`
(resize-frame this f new-x new-y new-width new-height)
Calls setBoundsForFrame with the new values.
f - the component to be resized - javax.swing.JComponent
new-x - the new x-coordinate - int
new-y - the new y-coordinate - int
new-width - the new width - int
new-height - the new height - int
Calls setBoundsForFrame with the new values. f - the component to be resized - `javax.swing.JComponent` new-x - the new x-coordinate - `int` new-y - the new y-coordinate - `int` new-width - the new width - `int` new-height - the new height - `int`
(set-bounds-for-frame this f new-x new-y new-width new-height)
This moves the JComponent and repaints the damaged areas.
f - javax.swing.JComponent
new-x - int
new-y - int
new-width - int
new-height - int
This moves the JComponent and repaints the damaged areas. f - `javax.swing.JComponent` new-x - `int` new-y - `int` new-width - `int` new-height - `int`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close