public class TDIViewLayout extends AbstractViewLayout
The GNU General Public License for details.
Modifier and Type | Field and Description |
---|---|
private JTabbedPane |
tabs
The tabbed view pane
|
Constructor and Description |
---|
TDIViewLayout()
Build a TDI layout
|
Modifier and Type | Method and Description |
---|---|
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.
|
addViewEventListener, closeAll, closeOthers, fireViewRemoved, getConstraint, getPanel, getTitle, getView, getViewCount, getViews, iterator, moveTo, removeViewEventListener, visit
private JTabbedPane tabs
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
-