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, visit
protected JDesktopPane desk
public void addView(Component view)
AbstractViewLayout
addView
in interface Viewable
addView
in class AbstractViewLayout
public void removeView(Component view)
AbstractViewLayout
removeView
in interface Viewable
removeView
in class AbstractViewLayout
protected void forceRemoveView(Component component)
AbstractViewLayout
forceRemoveView
in class AbstractViewLayout
public void updateTitle(Component view)
AbstractViewLayout
updateTitle
in interface Viewable
updateTitle
in class AbstractViewLayout
view
- the component whose title is to be usedpublic Component getSelected()
AbstractViewLayout
getSelected
in interface Viewable
getSelected
in class AbstractViewLayout
public void select(Component component)
AbstractViewLayout
select
in interface Viewable
select
in class AbstractViewLayout
private void removeInternalFrameListener(JInternalFrame iframe)
iframe
-