|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.util.BasicPropertyEventSource
dsto.dfc.swing.panels.ToolView
public class ToolView
A floating tool view of a PanelManager.Panel. A tool view is an auxillary view to a PanelManager.Panel. Tool views are only displayed when their parent panel is active and the tool view is enabled. The state of the tool view depends on the state of it's PanelManager.Panel. If the Panel is FIXED or FLOAT_INTERNAL, the tool will be displayed in an internal frame. If the Panel is FLOAT_EXTERNAL, the tool is shown in a native window.
PanelManager.Panel.addToolView(Component)
,
Serialized FormField Summary | |
---|---|
protected Corner |
corner
|
static int |
DISPOSE_ON_CLOSE
|
protected Frame |
externalFrameOwner
|
static int |
HIDE_ON_CLOSE
|
protected int |
indentLevel
|
FrameLike |
insideFrame
|
protected JFrame |
internalFrameOwner
|
FrameLike |
outsideFrame
|
protected PanelManager.Panel |
panel
|
String |
state
|
FrameLike |
stateFrame
|
Component |
tool
|
Constructor Summary | |
---|---|
ToolView(PanelManager.Panel panel,
Component tool,
JFrame internalFrameOwner,
Frame externalFrameOwner)
Creates a new ToolView instance. |
Method Summary | |
---|---|
void |
changeState(String newState)
Normally called when the PanelManager.Panel that may
have created the tool view changes state. |
protected FrameLike |
createInsideFrameIfNeeded()
|
protected FrameLike |
createOutsideFrameIfNeeded()
|
protected Corner |
defaultCorner()
|
void |
dispose()
|
protected boolean |
frameNotYetCreated(FrameLike frame)
|
Icon |
getIcon()
|
String |
getTitle()
|
protected boolean |
isStandAlone()
|
protected void |
letPanelDoDisposing(PanelManager.Panel tombstone)
|
void |
putInCorner(Corner newCorner)
Set the ToolView within a corner of it's parent
frame. |
void |
putInCorner(Corner newCorner,
int newIndentLevel)
set the ToolView within a corner of it's parent frame. |
protected void |
resizeFramesToFitNewTool()
The tool has changed, so resize both Frames to fit the new tool of the ToolView . |
protected void |
resizeFrameToFitNewTool(FrameLike frame)
|
protected void |
setActive(boolean active)
Normally called when the PanelManager.Panel that may
have created the tool view becomes active. |
void |
setDefaultCloseOperation(int operation)
Sets the default behaviour invoked when the ToolView
is closed. |
void |
setIcon(Icon icon)
|
void |
setTitle(String title)
|
void |
setTool(Component newTool)
Sets the content of the ToolView Frame. |
void |
setVisible(boolean visible)
Toggle the visibility of the ToolView . |
protected void |
simpleDispose()
|
Methods inherited from class dsto.dfc.util.BasicPropertyEventSource |
---|
addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeSource, removePropertyChangeListener, setPropertyChangeSource |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HIDE_ON_CLOSE
public static final int DISPOSE_ON_CLOSE
protected PanelManager.Panel panel
public FrameLike outsideFrame
public FrameLike insideFrame
public FrameLike stateFrame
protected JFrame internalFrameOwner
protected Frame externalFrameOwner
public Component tool
protected Corner corner
protected int indentLevel
public String state
Constructor Detail |
---|
public ToolView(PanelManager.Panel panel, Component tool, JFrame internalFrameOwner, Frame externalFrameOwner)
ToolView
instance. Clients should use
PanelManager.Panel.addToolView(java.awt.Component)
.
panel
- The panel this view is associated with (null for
standalone views).tool
- The component to go into the tool view frame.internalFrameOwner
- The owner of internal tool view frames.externalFrameOwner
- The owner of external tool view frames.Method Detail |
---|
public void setTitle(String title)
public String getTitle()
public void setIcon(Icon icon)
public Icon getIcon()
public void putInCorner(Corner newCorner)
ToolView
within a corner of it's parent
frame.
newCorner
- the corner to put the tool view in.public void setTool(Component newTool)
ToolView
Frame.
newTool
- the component that will be shown in the frame.public void setVisible(boolean visible)
ToolView
.
visible
- if true the ToolView will be made visible & vice versa.public void setDefaultCloseOperation(int operation)
ToolView
is closed.
operation
- the operation to invoke when the ToolView
is closed.protected void resizeFramesToFitNewTool()
ToolView
.
protected void resizeFrameToFitNewTool(FrameLike frame)
public void putInCorner(Corner newCorner, int newIndentLevel)
ToolView
within a corner of it's parent frame.
newCorner
- the corner to put the tool view in.newIndentLevel
- how far to indent the toolview towards the center.public void changeState(String newState)
PanelManager.Panel
that may
have created the tool view changes state.
public void dispose()
protected void simpleDispose()
protected void letPanelDoDisposing(PanelManager.Panel tombstone)
protected boolean isStandAlone()
protected void setActive(boolean active)
PanelManager.Panel
that may
have created the tool view becomes active. shows the frame
corresponding the the current state of the ToolView
.
protected Corner defaultCorner()
protected FrameLike createOutsideFrameIfNeeded()
protected FrameLike createInsideFrameIfNeeded()
protected boolean frameNotYetCreated(FrameLike frame)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |