|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ascape.runtime.swing.ViewFrameBridge
public class ViewFrameBridge
A class allowing Frame, JFrame, and JInternalFrame to be used interchangebly, and providing general support for frame management. This class also ends up mediating and centralizing all swing/non-swong deployment issues. All Swing related userEnvironment calls are sent to this class so that all swing functionality can be removed in one place. This will change once the majority of browsers support Swing.
Constructor Summary | |
---|---|
ViewFrameBridge()
Construct a frame bridge. |
|
ViewFrameBridge(ComponentView view)
Construct a frame bridge. |
|
ViewFrameBridge(ComponentView[] views)
Construct a frame bridge. |
Method Summary | |
---|---|
void |
dispose()
Closes and frees the bridges frames, saving any relevant information. |
java.awt.Container |
getContentPane()
Returns the contentPane object for the frame. |
java.awt.Container |
getFrameImp()
Returns the actual frame implementation. |
int |
getGridBorderSize()
Gets the grid border size. |
javax.swing.JScrollPane |
getScrollPanel()
Gets the scroll panel. |
java.lang.String |
getTitle()
Gets the title of the frame. |
java.awt.Component |
getViewPanel()
Gets the view panel. |
ComponentView[] |
getViews()
Returns the views displayed in this window. |
javax.swing.JToolBar |
getViewToolbar()
Gets the view toolbar. |
javax.swing.Action |
getZoomInAction()
Gets the zoom in action. |
javax.swing.Action |
getZoomOutAction()
Gets the zoom out action. |
void |
iconUpdated()
Should be called when the view has updated itself in a way that changes icon. |
boolean |
isAgentView()
Checks if is agent view. |
boolean |
isLockZoomToFrame()
Checks if is lock zoom to frame. |
boolean |
isVisible()
Is the frame currently visible?. |
protected void |
onFrameDispose()
Called whenever the bridged frames are disposed. |
void |
pack()
Packs the delegate frame. |
void |
setDefaultCloseOperation(int closeOp)
Sets the default close operation. |
void |
setGridBorderSize(int gridBorderSize)
Sets the grid border size. |
void |
setLockZoomToFrame(boolean lockZoomToFrame)
Sets the lock zoom to frame. |
void |
setTitle(java.lang.String title)
Sets the title for this frame to the specified string. |
void |
setView(ComponentView view)
Sets the view to display in this window. |
void |
setViews(ComponentView[] views)
Sets the view to display in this window. |
void |
setVisible(boolean b)
Makes the frame visible or invisible. |
void |
toFront()
Brings the frame to the front. |
java.lang.String |
toString()
Returns a string represenetation of the view frame. |
void |
viewDeserialized()
This view has just been deserailized. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ViewFrameBridge()
public ViewFrameBridge(ComponentView[] views)
views
- the viewspublic ViewFrameBridge(ComponentView view)
view
- the viewMethod Detail |
---|
public void setDefaultCloseOperation(int closeOp)
closeOp
- the new default close operationpublic void setViews(ComponentView[] views)
views
- the viewspublic void viewDeserialized()
public void iconUpdated()
public void toFront()
protected void onFrameDispose()
public void pack()
public void dispose()
public java.lang.String toString()
toString
in class java.lang.Object
public int getGridBorderSize()
public void setGridBorderSize(int gridBorderSize)
gridBorderSize
- the new grid border sizepublic void setView(ComponentView view)
view
- the viewpublic ComponentView[] getViews()
public java.awt.Component getViewPanel()
public java.awt.Container getFrameImp()
public java.awt.Container getContentPane()
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- the title to be displayed in the frame's borderpublic void setVisible(boolean b)
b
- true if frame should be made visible, false if frame should be
hiddenpublic boolean isVisible()
public boolean isAgentView()
public javax.swing.JToolBar getViewToolbar()
public boolean isLockZoomToFrame()
public void setLockZoomToFrame(boolean lockZoomToFrame)
lockZoomToFrame
- the new lock zoom to framepublic javax.swing.Action getZoomInAction()
public javax.swing.Action getZoomOutAction()
public javax.swing.JScrollPane getScrollPanel()
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |