|
||||||||||
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 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
-
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |