|
||||||||||
| 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.TDIViewLayout
public class TDIViewLayout
TDI (Tabbed Document Interface) manager of how we layout views as tabs.
The GNU General Public License for details.| 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.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 |
|---|
private JTabbedPane tabs
| Constructor Detail |
|---|
public TDIViewLayout()
| Method Detail |
|---|
public void addView(Component component)
AbstractViewLayout
addView in interface ViewableaddView in class AbstractViewLayoutpublic void removeView(Component component)
AbstractViewLayout
removeView in interface ViewableremoveView in class AbstractViewLayoutprotected void forceRemoveView(Component component)
AbstractViewLayout
forceRemoveView in class AbstractViewLayoutpublic void updateTitle(Component component)
AbstractViewLayout
updateTitle in interface ViewableupdateTitle in class AbstractViewLayoutcomponent - 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 AbstractViewLayoutpublic void addPopup(JPopupMenu popup)
popup -
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||