|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.swing.desktop.ViewLayout
org.crosswire.common.swing.desktop.MDIViewLayout
public class MDIViewLayout
MDI (Multiple documet interface) manager of how we layout views as sub-windows.
|
Distribution Licence: JSword is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, or by writing to: Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA The copyright to this program is held by it's authors. |
Licence| Nested Class Summary | |
|---|---|
private class |
MDIViewLayout.CloseListener
We need to veto the closing of the last window. |
private class |
MDIViewLayout.CustomInternalFrameAdapter
So we can tidy things up when a window is closed |
| Field Summary | |
|---|---|
protected JDesktopPane |
desk
The desktop of sub-windows |
| Constructor Summary | |
|---|---|
MDIViewLayout()
Create a MDIViewLayout |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.crosswire.common.swing.desktop.ViewLayout |
|---|
addViewEventListener, closeAll, closeOthers, fireViewRemoved, getConstraint, getPanel, getTitle, getView, getViewCount, getViews, iterator, moveTo, removeViewEventListener, visit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JDesktopPane desk
| Constructor Detail |
|---|
public MDIViewLayout()
| Method Detail |
|---|
public void addView(Component view)
ViewLayout
addView in interface ViewableaddView in class ViewLayoutpublic void removeView(Component view)
ViewLayout
removeView in interface ViewableremoveView in class ViewLayoutprotected void forceRemoveView(Component component)
ViewLayout
forceRemoveView in class ViewLayoutpublic void updateTitle(Component view)
ViewLayout
updateTitle in interface ViewableupdateTitle in class ViewLayoutview - the component whose title is to be usedpublic Component getSelected()
ViewLayout
getSelected in interface ViewablegetSelected in class ViewLayoutpublic void select(Component component)
ViewLayout
select in interface Viewableselect in class ViewLayoutprivate void removeInternalFrameListener(JInternalFrame iframe)
iframe -
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||