|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.MultiFrame
public class MultiFrame
A class that holds either a JFrame or a JInteralFrame. It allows for client code to eqaily switch between regular windows and JDesktop windows
| Constructor Summary | |
|---|---|
MultiFrame()
ctor |
|
MultiFrame(JFrame frame)
ctor |
|
MultiFrame(JInternalFrame internalFrame)
ctor |
|
MultiFrame(String title)
ctor |
|
| Method Summary | |
|---|---|
void |
addWindowListener(WindowListener l)
wrapper method |
void |
dispose()
dispose of the component |
Rectangle |
getBounds()
wrapper method |
Component |
getComponent()
Return the component. |
Container |
getContainer()
Get the container |
Container |
getContentPane()
Get the content pane of the component |
JFrame |
getFrame()
access the JFrame |
JInternalFrame |
getInternalFrame()
Access the internal frame |
Point |
getLocation()
wrapper method |
Dimension |
getSize()
wrapper method |
int |
getState()
wrapper method |
String |
getTitle()
Get the title |
Window |
getWindow()
Finds the Window we are a part of |
boolean |
isShowing()
wrapper method |
boolean |
isVisible()
wrapper method |
void |
pack()
wrapper method |
void |
removeWindowListener(WindowListener l)
wrapper method |
void |
setBounds(Rectangle bounds)
wrapper method |
void |
setCursor(Cursor cursor)
Set the cursor |
void |
setDefaultCloseOperation(int operation)
wrapper method |
void |
setIconImage(Image icon)
wrapper method |
void |
setJMenuBar(JMenuBar menuBar)
wrapper method |
void |
setLocation(int x,
int y)
wrapper method |
void |
setSize(Dimension size)
wrapper method |
void |
setState(int state)
wrapper method |
void |
setTitle(String title)
Set the title |
void |
setVisible(boolean visible)
set visibility of the component |
void |
show()
Show the component |
void |
toFront()
wrapper method |
static void |
useDesktopPane(JDesktopPane desktopPane)
Set the global desktopPane. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiFrame()
public MultiFrame(String title)
title - Create a JFrame with the given titlepublic MultiFrame(JFrame frame)
frame - The framepublic MultiFrame(JInternalFrame internalFrame)
internalFrame - The internal frame| Method Detail |
|---|
public static void useDesktopPane(JDesktopPane desktopPane)
desktopPane - desktop panepublic void show()
public void dispose()
public void setVisible(boolean visible)
visible - visiblepublic Container getContentPane()
public Container getContainer()
public void setCursor(Cursor cursor)
cursor - cursorpublic void setState(int state)
state - statepublic void setTitle(String title)
title - The titlepublic String getTitle()
public JFrame getFrame()
public JInternalFrame getInternalFrame()
public Window getWindow()
public void pack()
public void setDefaultCloseOperation(int operation)
operation - operationpublic void addWindowListener(WindowListener l)
l - listenerpublic void removeWindowListener(WindowListener l)
l - _more_public void setJMenuBar(JMenuBar menuBar)
menuBar - _more_public Rectangle getBounds()
public void setBounds(Rectangle bounds)
bounds - _more_public void setIconImage(Image icon)
icon - _more_public void toFront()
public Component getComponent()
public boolean isVisible()
public boolean isShowing()
public Point getLocation()
public void setLocation(int x,
int y)
x - xy - ypublic void setSize(Dimension size)
size - size_public Dimension getSize()
public int getState()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||