|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.common.swing.desktop.AbstractViewLayout
org.crosswire.common.swing.desktop.MDIViewLayout
public class MDIViewLayout
MDI (Multiple documet interface) manager of how we layout views as sub-windows.
for license details.
The copyright to this program is held by it's authors.| Nested Class Summary | |
|---|---|
(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 |
| 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.AbstractViewLayout |
|---|
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)
AbstractViewLayout
addView in interface ViewableaddView in class AbstractViewLayoutpublic void removeView(Component view)
AbstractViewLayout
removeView in interface ViewableremoveView in class AbstractViewLayoutprotected void forceRemoveView(Component component)
AbstractViewLayout
forceRemoveView in class AbstractViewLayoutpublic void updateTitle(Component view)
AbstractViewLayout
updateTitle in interface ViewableupdateTitle in class AbstractViewLayoutview - the component whose title is to be usedpublic Component getSelected()
AbstractViewLayout
getSelected in interface ViewablegetSelected in class AbstractViewLayoutpublic void select(Component component)
AbstractViewLayout
select in interface Viewableselect in class AbstractViewLayoutprivate void removeInternalFrameListener(JInternalFrame iframe)
iframe -
|
Copyright ยจ 2003-2013 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||