public class MDIViewLayout extends AbstractViewLayout
The GNU General Public License for details.| Modifier and Type | Class and Description |
|---|---|
(package private) class |
MDIViewLayout.CloseListener
We need to veto the closing of the last window.
|
(package private) class |
MDIViewLayout.CustomInternalFrameAdapter
So we can tidy things up when a window is closed
|
| Modifier and Type | Field and Description |
|---|---|
protected JDesktopPane |
desk
The desktop of sub-windows
|
| Constructor and Description |
|---|
MDIViewLayout()
Create a MDIViewLayout
|
| Modifier and Type | Method and Description |
|---|---|
void |
addView(Component view)
Add a view to the set.
|
protected void |
forceRemoveView(Component component)
Unconditionally remove a view from the set.
|
Component |
getSelected()
Returns the top view.
|
private void |
removeInternalFrameListener(JInternalFrame iframe)
Find and remove the CustomInternalFrameAdapter that is attached to the
iframe.
|
void |
removeView(Component view)
Remove a view from the set.
|
void |
select(Component component)
Find the view and select it.
|
void |
updateTitle(Component view)
Update the title of the view.
|
addViewEventListener, closeAll, closeOthers, fireViewRemoved, getConstraint, getPanel, getTitle, getView, getViewCount, getViews, iterator, moveTo, removeViewEventListener, visitprotected JDesktopPane desk
public void addView(Component view)
AbstractViewLayoutaddView in interface ViewableaddView in class AbstractViewLayoutpublic void removeView(Component view)
AbstractViewLayoutremoveView in interface ViewableremoveView in class AbstractViewLayoutprotected void forceRemoveView(Component component)
AbstractViewLayoutforceRemoveView in class AbstractViewLayoutpublic void updateTitle(Component view)
AbstractViewLayoutupdateTitle in interface ViewableupdateTitle in class AbstractViewLayoutview - the component whose title is to be usedpublic Component getSelected()
AbstractViewLayoutgetSelected in interface ViewablegetSelected in class AbstractViewLayoutpublic void select(Component component)
AbstractViewLayoutselect in interface Viewableselect in class AbstractViewLayoutprivate void removeInternalFrameListener(JInternalFrame iframe)
iframe -