|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MDIComponent
A common interface for UI components being hosted by a Multiple Document Interface.
Concrete implementation may rely on a JFrame
or a JInternalFrame
.
The need for this interface stems from the fact that the only superclass common to
JFrame and JInternalFrame is java.awt.Container, which doesn't contain some very important methods
for our purpose, e.g. dispose()
or setDefaultCloseOperation()
. Yet these method are implemented in both
JFrame
and JInternalFrame
...
Method Summary | |
---|---|
void |
addKeyListener(KeyListener l)
|
void |
dispose()
makes this container unselected, unvisible or closed |
Rectangle |
getBounds()
gets the bounds of the component wrapped by this DockablePanel |
Component |
getFocusOwner()
|
JMenuBar |
getJMenuBar()
|
Point |
getLocation()
|
Component |
getMostRecentFocusOwner()
|
Dimension |
getPreferredSize()
|
Dimension |
getSize()
|
boolean |
isVisible()
returns whether the panel is currently visible or not |
void |
pack()
|
void |
reshape(int x,
int y,
int w,
int h)
|
void |
setDefaultCloseOperation(int i)
control the window-closing operation |
void |
setJMenuBar(JMenuBar b)
|
void |
setLocation(int x,
int y)
|
void |
setResizable(boolean b)
|
void |
setSize(Dimension d)
|
void |
setTitle(String title)
set the title of this container |
void |
setVisible(boolean v)
set the visible state of the component |
void |
toBack()
|
void |
toFront()
|
Methods inherited from interface javax.swing.RootPaneContainer |
---|
getContentPane, getGlassPane, getLayeredPane, getRootPane, setContentPane, setGlassPane, setLayeredPane |
Method Detail |
---|
void setVisible(boolean v)
boolean isVisible()
Rectangle getBounds()
Dimension getPreferredSize()
void setSize(Dimension d)
void dispose()
void setTitle(String title)
void setDefaultCloseOperation(int i)
i
- see javax.swing.WindowConstantsvoid pack()
void setLocation(int x, int y)
Point getLocation()
Dimension getSize()
void reshape(int x, int y, int w, int h)
void setResizable(boolean b)
Component getFocusOwner()
Component getMostRecentFocusOwner()
JMenuBar getJMenuBar()
void setJMenuBar(JMenuBar b)
void toBack()
void toFront()
void addKeyListener(KeyListener l)
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |