|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.swing.panels.PanelManager.Panel
public class PanelManager.Panel
A panel managed by the panel manager.
Field Summary | |
---|---|
protected ClientCommandViews |
commandViews
|
protected Component |
component
The visible component to be displayed by this Panel |
protected InternalFloatState |
externalFloatState
the component is displayed in a native Frame in this state |
protected FixedFloatState |
fixedState
the component is displayed in the tabbed pane in this state |
protected TitleShowPolicy |
hideTitle
|
protected Icon |
icon
|
protected InternalFloatState |
internalFloatState
the component is displayed in a lightweight JFrame in this state |
protected boolean |
scrollable
|
protected TitleShowPolicy |
showTitle
Determines whether the Tab for this panel will display only an icon, (hideTitle) or and icon and a textual title (showTitle). |
protected FixedFloatState |
state
represents the current active state of this Panel |
TitleShowPolicy |
titleDisplay
|
protected List |
toolViews
|
Fields inherited from interface dsto.dfc.swing.icons.Iconic |
---|
NULL_ICON |
Constructor Summary | |
---|---|
protected |
PanelManager.Panel(Component component,
String name,
Icon icon,
boolean showingName,
boolean scrollable,
int index)
|
Method Summary | |
---|---|
void |
addAllCommands()
The panel's commands are merged with the client component's commands. |
ToolView |
addToolView(Component tool)
Create a new tool view attached to the panel containing a component. |
protected boolean |
alreadyDisposed()
|
protected void |
changeToolViewState(String newState)
|
void |
close()
Close (hide and remove) this panel. |
void |
dispose()
Dispose of the object (unregister listeners, close open resources etc). |
protected void |
disposeToolViews()
|
protected void |
extractCommandViewsFrom(Object commandSource)
|
void |
fireFloatChangeEvent()
|
boolean |
getChanged()
|
CommandView |
getCommandView(String viewName)
Get the command view instance for a given view name. |
Component |
getComponent()
|
Command |
getDefaultCommand()
|
String |
getFloating()
|
Icon |
getIcon()
The small (16x16) icon for the object. |
int |
getIndex()
|
Icon |
getLargeIcon()
The large (32x32) icon. |
PanelManager |
getManager()
|
String |
getName()
The human-readable name for the object. |
JScrollPane |
getTabPaneScrollPane()
|
protected ToolView |
getToolViewAt(int index)
|
int |
getToolViewCount()
The number of tool views attached to this panel. |
boolean |
isActive()
|
boolean |
isFixed()
|
boolean |
isFloating()
|
protected boolean |
isScrollable()
|
boolean |
isShowingName()
|
void |
makeUncloseable()
Ensure this panel cannot be closed. |
protected void |
refreshTitles()
|
void |
removeAllCommands()
|
void |
removeToolView(ToolView toolView)
Remove a tool view. |
void |
setActive(boolean active)
|
void |
setChanged(boolean changed)
Called when the component represented by this Panel has been logically edited or changed. |
void |
setComponent(Component component)
|
void |
setFloating(String floatStatus)
Set how the panel is displayed. |
void |
setName(String name)
|
void |
setShowingName(boolean showingName)
Set whether the panel name is displayed. |
protected void |
setTitleDisplay(boolean showingTitle)
|
protected void |
setToolViewsActive(boolean active)
|
void |
setVisible(boolean visible)
Hide/show the panel. |
protected void |
showNextFixedPanelInTabPane()
|
void |
switchCloseCommand(Command publishedCloseCommand)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TitleShowPolicy showTitle
protected TitleShowPolicy hideTitle
public TitleShowPolicy titleDisplay
protected boolean scrollable
protected Icon icon
protected Component component
protected FixedFloatState state
protected FixedFloatState fixedState
protected InternalFloatState internalFloatState
protected InternalFloatState externalFloatState
protected ClientCommandViews commandViews
protected List toolViews
Constructor Detail |
---|
protected PanelManager.Panel(Component component, String name, Icon icon, boolean showingName, boolean scrollable, int index)
Method Detail |
---|
public void makeUncloseable()
public void close()
public void setVisible(boolean visible)
public void dispose()
Disposable
dispose
in interface Disposable
protected boolean alreadyDisposed()
public PanelManager getManager()
public ToolView addToolView(Component tool)
public void removeToolView(ToolView toolView)
addToolView(java.awt.Component)
public int getToolViewCount()
public CommandView getCommandView(String viewName)
CommandSource
getCommandView
in interface CommandSource
viewName
- The name of the view to be retrieved. Usually one of
CommandView.MAIN_MENU_VIEW, CommandView.CONTEXT_MENU_VIEW or
CommandView.TOOLBAR_VIEW, but custom views may be supported also.
public Command getDefaultCommand()
protected void refreshTitles()
public boolean getChanged()
public void setChanged(boolean changed)
public void setShowingName(boolean showingName)
protected void setTitleDisplay(boolean showingTitle)
public boolean isShowingName()
public void setName(String name)
public String getName()
Iconic
getName
in interface Iconic
public Icon getIcon()
Iconic
getIcon
in interface Iconic
public Icon getLargeIcon()
Iconic
getLargeIcon
in interface Iconic
public void setComponent(Component component)
public Component getComponent()
protected void extractCommandViewsFrom(Object commandSource)
public int getIndex()
public boolean isFloating()
public boolean isFixed()
public void fireFloatChangeEvent()
public void setFloating(String floatStatus)
public String getFloating()
public void addAllCommands()
public void removeAllCommands()
public void switchCloseCommand(Command publishedCloseCommand)
protected void showNextFixedPanelInTabPane()
protected void disposeToolViews()
protected void setToolViewsActive(boolean active)
protected void changeToolViewState(String newState)
protected ToolView getToolViewAt(int index)
public void setActive(boolean active)
public boolean isActive()
protected boolean isScrollable()
public JScrollPane getTabPaneScrollPane()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |