Package ucar.unidata.ui
Class MultiFrame
java.lang.Object
ucar.unidata.ui.MultiFrame
- Direct Known Subclasses:
IdvWindow
A class that holds either a JFrame or a JInteralFrame. It allows for client
code to eqaily switch between regular windows and JDesktop windows
- Author:
- IDV development team
-
Constructor Summary
ConstructorsConstructorDescriptionctorMultiFrame
(String title) ctorMultiFrame
(JFrame frame) ctorMultiFrame
(JInternalFrame internalFrame) ctor -
Method Summary
Modifier and TypeMethodDescriptionvoid
wrapper methodvoid
dispose()
dispose of the componentwrapper methodReturn the component.Get the containerGet the content pane of the componentgetFrame()
access the JFrameAccess the internal framewrapper methodgetSize()
wrapper methodint
getState()
wrapper methodgetTitle()
Get the titleFinds the Window we are a part ofboolean
wrapper methodboolean
wrapper methodvoid
pack()
wrapper methodvoid
wrapper methodvoid
wrapper methodvoid
Set the cursorvoid
setDefaultCloseOperation
(int operation) wrapper methodvoid
setIconImage
(Image icon) wrapper methodvoid
setJMenuBar
(JMenuBar menuBar) wrapper methodvoid
setLocation
(int x, int y) wrapper methodvoid
wrapper methodvoid
setState
(int state) wrapper methodvoid
Set the titlevoid
setVisible
(boolean visible) set visibility of the componentvoid
show()
Show the componentvoid
toFront()
wrapper methodstatic void
useDesktopPane
(JDesktopPane desktopPane) Set the global desktopPane.
-
Constructor Details
-
MultiFrame
public MultiFrame()ctor -
MultiFrame
ctor- Parameters:
title
- Create a JFrame with the given title
-
MultiFrame
ctor- Parameters:
frame
- The frame
-
MultiFrame
ctor- Parameters:
internalFrame
- The internal frame
-
-
Method Details
-
useDesktopPane
Set the global desktopPane. This causes all default MultiFrames to be an internalFrame.- Parameters:
desktopPane
- desktop pane
-
show
public void show()Show the component -
dispose
public void dispose()dispose of the component -
setVisible
public void setVisible(boolean visible) set visibility of the component- Parameters:
visible
- visible
-
getContentPane
Get the content pane of the component- Returns:
- content pane
-
getContainer
Get the container- Returns:
- Either the frame or the internalFrame
-
setCursor
Set the cursor- Parameters:
cursor
- cursor
-
setState
public void setState(int state) wrapper method- Parameters:
state
- state
-
setTitle
Set the title- Parameters:
title
- The title
-
getTitle
Get the title- Returns:
- The title
-
getFrame
access the JFrame- Returns:
- The frame
-
getInternalFrame
Access the internal frame- Returns:
- internal frame
-
getWindow
Finds the Window we are a part of- Returns:
- the window
-
pack
public void pack()wrapper method -
setDefaultCloseOperation
public void setDefaultCloseOperation(int operation) wrapper method- Parameters:
operation
- operation
-
addWindowListener
wrapper method- Parameters:
l
- listener
-
removeWindowListener
wrapper method- Parameters:
l
- _more_
-
setJMenuBar
wrapper method- Parameters:
menuBar
- _more_
-
getBounds
wrapper method- Returns:
- _more_
-
setBounds
wrapper method- Parameters:
bounds
- _more_
-
setIconImage
wrapper method- Parameters:
icon
- _more_
-
toFront
public void toFront()wrapper method -
getComponent
Return the component. Either the frame or the internalFrame- Returns:
- The component
-
isVisible
public boolean isVisible()wrapper method- Returns:
- is visible
-
isShowing
public boolean isShowing()wrapper method- Returns:
- is showing
-
getLocation
wrapper method- Returns:
- location
-
setLocation
public void setLocation(int x, int y) wrapper method- Parameters:
x
- xy
- y
-
setSize
wrapper method- Parameters:
size
- size_
-
getSize
wrapper method- Returns:
- size
-
getState
public int getState()wrapper method- Returns:
- state
-