|
||||||||||
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.TDIViewLayout
public class TDIViewLayout
TDI (Tabbed Document Interface) manager of how we layout views as tabs.
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
Field Summary | |
---|---|
private JTabbedPane |
tabs
The tabbed view pane |
Constructor Summary | |
---|---|
TDIViewLayout()
Build a TDI layout |
Method Summary | |
---|---|
void |
addPopup(JPopupMenu popup)
Bind a popup to the tabbed page |
void |
addView(Component component)
Add a view to the set. |
protected void |
forceRemoveView(Component component)
Unconditionally remove a view from the set. |
Component |
getSelected()
Returns the top view. |
void |
removeView(Component component)
Remove a view from the set. |
void |
select(Component component)
Find the view and select it. |
void |
updateTitle(Component component)
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 |
---|
private JTabbedPane tabs
Constructor Detail |
---|
public TDIViewLayout()
Method Detail |
---|
public void addView(Component component)
ViewLayout
addView
in interface Viewable
addView
in class ViewLayout
public void removeView(Component component)
ViewLayout
removeView
in interface Viewable
removeView
in class ViewLayout
protected void forceRemoveView(Component component)
ViewLayout
forceRemoveView
in class ViewLayout
public void updateTitle(Component component)
ViewLayout
updateTitle
in interface Viewable
updateTitle
in class ViewLayout
component
- the component whose title is to be usedpublic Component getSelected()
ViewLayout
getSelected
in interface Viewable
getSelected
in class ViewLayout
public void select(Component component)
ViewLayout
select
in interface Viewable
select
in class ViewLayout
public void addPopup(JPopupMenu popup)
popup
-
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |