| javax.swing.DesktopManager
All known Subclasses: javax.swing.DefaultDesktopManager,
DesktopManager | public interface DesktopManager (Code) | | DesktopManager objects are owned by a JDesktopPane
object. They implement L&F specific behavior for JDesktopPane .
|
Method Summary | |
void | activateFrame(JInternalFrame f) Sets focus to the internal frame. | void | beginDraggingFrame(JComponent f) This method is called when the user begins to move the frame. | void | beginResizingFrame(JComponent f, int direction) This method is called when the user begins to resize the frame. | void | closeFrame(JInternalFrame f) Closes the internal frame, i.e. | void | deactivateFrame(JInternalFrame f) Removes focus from the internal frame. | void | deiconifyFrame(JInternalFrame f) Removes the internal frame's desktop icon from its parent and add
the internal frame. | void | dragFrame(JComponent f, int x, int y) The frame has been moved. | void | endDraggingFrame(JComponent f) This method is called when the users has finished moving the frame. | void | endResizingFrame(JComponent f) This method is called when the users has finished resizing the frame. | void | iconifyFrame(JInternalFrame f) Removes the internal frame from its parent and adds its desktop icon
instead. | void | maximizeFrame(JInternalFrame f) Maximizes the internal frame (resize it to match its parent's bounds). | void | minimizeFrame(JInternalFrame f) Restore size and location of the internal frame to its size
and location before maximizing. | void | openFrame(JInternalFrame f) Displays the internal frame, if it's possible. | void | resizeFrame(JComponent f, int x, int y, int width, int height) Resizes the component. | void | setBoundsForFrame(JComponent f, int x, int y, int width, int height) Primitive method to reshape. |
activateFrame | void activateFrame(JInternalFrame f)(Code) | | Sets focus to the internal frame. This method is usually called
after setting JInternalFrame's IS_SELECTED_PROPERTY
property to true .
Parameters: f - the internal frame to activate |
beginDraggingFrame | void beginDraggingFrame(JComponent f)(Code) | | This method is called when the user begins to move the frame.
f is normally JInternalFrame .
Parameters: f - the moved component |
beginResizingFrame | void beginResizingFrame(JComponent f, int direction)(Code) | | This method is called when the user begins to resize the frame.
f is normally JInternalFrame .
Parameters: f - the component to resize Parameters: direction - direction of resizing |
closeFrame | void closeFrame(JInternalFrame f)(Code) | | Closes the internal frame, i.e. removes it from its parent.
Parameters: f - the internal frame to close |
deactivateFrame | void deactivateFrame(JInternalFrame f)(Code) | | Removes focus from the internal frame. This method is usually called
after setting JInternalFrame's IS_SELECTED_PROPERTY
property to false .
Parameters: f - the internal frame to deactivate |
deiconifyFrame | void deiconifyFrame(JInternalFrame f)(Code) | | Removes the internal frame's desktop icon from its parent and add
the internal frame. Size and location of the internal frame are
restored to those before iconification.
Parameters: f - the internal frame to deiconify |
dragFrame | void dragFrame(JComponent f, int x, int y)(Code) | | The frame has been moved. Call of this method is preceded by call of
beginDraggingFrame() .
f is normally JInternalFrame .
Parameters: f - the moved component Parameters: x - the new x position Parameters: y - the new y position |
endDraggingFrame | void endDraggingFrame(JComponent f)(Code) | | This method is called when the users has finished moving the frame.
f is normally JInternalFrame .
Parameters: f - the moved component |
endResizingFrame | void endResizingFrame(JComponent f)(Code) | | This method is called when the users has finished resizing the frame.
f is normally JInternalFrame .
Parameters: f - the component to resize |
iconifyFrame | void iconifyFrame(JInternalFrame f)(Code) | | Removes the internal frame from its parent and adds its desktop icon
instead.
Parameters: f - the internal frame to iconify |
maximizeFrame | void maximizeFrame(JInternalFrame f)(Code) | | Maximizes the internal frame (resize it to match its parent's bounds).
Parameters: f - the internal frame to maximize |
minimizeFrame | void minimizeFrame(JInternalFrame f)(Code) | | Restore size and location of the internal frame to its size
and location before maximizing.
Parameters: f - the internal frame to minimize |
openFrame | void openFrame(JInternalFrame f)(Code) | | Displays the internal frame, if it's possible. This method normally
is not called.
Parameters: f - the internal frame to open |
resizeFrame | void resizeFrame(JComponent f, int x, int y, int width, int height)(Code) | | Resizes the component. Call of this method is preceded by call of
beginResizingFrame() .
f is normally JInternalFrame .
Parameters: f - the component to resize Parameters: x - the new horizontal position of the component measured fromthe left corner of its container Parameters: y - the new vertical position of the component measured fromthe upper corner of its container Parameters: width - the new width of the component Parameters: height - the new height of the component |
setBoundsForFrame | void setBoundsForFrame(JComponent f, int x, int y, int width, int height)(Code) | | Primitive method to reshape.
Parameters: f - the component to set bounds to Parameters: x - the new horizontal position of the component measured fromthe left corner of its container Parameters: y - the new vertical position of the component measured fromthe upper corner of its container Parameters: width - the new width of the component Parameters: height - the new height of the component |
|
|