|
||||||||||
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.
for license details.
The copyright to this program is held by it's authors.
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 Viewable
addView
in class AbstractViewLayout
public void removeView(Component component)
AbstractViewLayout
removeView
in interface Viewable
removeView
in class AbstractViewLayout
protected void forceRemoveView(Component component)
AbstractViewLayout
forceRemoveView
in class AbstractViewLayout
public void updateTitle(Component component)
AbstractViewLayout
updateTitle
in interface Viewable
updateTitle
in class AbstractViewLayout
component
- 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
public void addPopup(JPopupMenu popup)
popup
-
|
Copyright ยจ 2003-2013 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |