Package jpicedt.ui
Interface MDIManager.MDIComponent
-
- Enclosing class:
- MDIManager
public static interface MDIManager.MDIComponentA common interface for UI components being hosted by this MDIManager. 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... (maybe this should be a useful interface added to javax.swing ???)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()makes this container unselected, unvisible or closedjava.awt.RectanglegetBounds()gets the bounds of the component wrapped by this DockablePaneljavax.swing.JPanelgetInnerPane()Returns the JPanel wrapped into this MDIComponent.java.awt.DimensiongetSize()booleanisVisible()returns whether the panel is currently visible or notvoidpack()voidreshape(int x, int y, int w, int h)voidsetDefaultCloseOperation(int i)control the window-closing operationvoidsetLocation(int x, int y)voidsetTitle(java.lang.String title)set the title of this containervoidsetVisible(boolean v)set the visible state of the component
-
-
-
Method Detail
-
setVisible
void setVisible(boolean v)
set the visible state of the component
-
isVisible
boolean isVisible()
returns whether the panel is currently visible or not
-
getBounds
java.awt.Rectangle getBounds()
gets the bounds of the component wrapped by this DockablePanel
-
dispose
void dispose()
makes this container unselected, unvisible or closed
-
setTitle
void setTitle(java.lang.String title)
set the title of this container
-
setDefaultCloseOperation
void setDefaultCloseOperation(int i)
control the window-closing operation- Parameters:
i- see javax.swing.WindowConstants
-
pack
void pack()
-
setLocation
void setLocation(int x, int y)
-
getSize
java.awt.Dimension getSize()
-
reshape
void reshape(int x, int y, int w, int h)
-
getInnerPane
javax.swing.JPanel getInnerPane()
Returns the JPanel wrapped into this MDIComponent. In particular, this may be a PEDrawingBoard.
-
-