Package org.gvsig.coreplugin.mdiManager
Class SingletonWindowSupport
java.lang.Object
org.gvsig.coreplugin.mdiManager.SingletonWindowSupport
DOCUMENT ME!
- Version:
- $Revision: 31344 $
- Author:
- $author$
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRepresenta una vista singleton manteniendo el modelo y la clase de la vista que lo muestra -
Constructor Summary
ConstructorsConstructorDescriptionDOCUMENT ME! -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseWindow(org.gvsig.andami.ui.mdiManager.SingletonWindow sw) DOCUMENT ME!booleanbooleancontains(org.gvsig.andami.ui.mdiManager.SingletonWindow sw) getFrame(org.gvsig.andami.ui.mdiManager.SingletonWindow sv) voidopenSingletonWindow(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, Component frame) booleanregisterWindow(Class windowClass, Object model, org.gvsig.andami.ui.mdiManager.WindowInfo wi) If the window existed, the 'wi' parameter is updated with the previous window info (this allows to show the window in the previous place), but the title of the window is updated using the title from the parameter.voidsetHeight(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int height) voidsetMaximized(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, boolean maximized) voidsetMinimumSize(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, Dimension minSize) Sets the minimum allowed size for the provided singleton window.voidsetNormalBounds(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, Rectangle normalBounds) voidvoidsetWidth(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int width) voidsetX(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int x) voidsetY(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int y)
-
Constructor Details
-
SingletonWindowSupport
DOCUMENT ME!- Parameters:
vis- DOCUMENT ME!fvs-- See Also:
-
-
Method Details
-
registerWindow
public boolean registerWindow(Class windowClass, Object model, org.gvsig.andami.ui.mdiManager.WindowInfo wi) If the window existed, the 'wi' parameter is updated with the previous window info (this allows to show the window in the previous place), but the title of the window is updated using the title from the parameter.- Parameters:
windowClass- DOCUMENT ME!model- DOCUMENT ME!wi- DOCUMENT ME!- Returns:
- true si la vista existe ya y false si la vista no existe
- Throws:
org.gvsig.andami.ui.mdiManager.SingletonDialogAlreadyShownException- DOCUMENT ME!
-
openSingletonWindow
-
contains
public boolean contains(org.gvsig.andami.ui.mdiManager.SingletonWindow sw) -
contains
-
closeWindow
public void closeWindow(org.gvsig.andami.ui.mdiManager.SingletonWindow sw) DOCUMENT ME!- Parameters:
sw-
-
getFrame
-
getFrames
- Parameters:
model-- Returns:
-
getFrame
- Parameters:
view-- Returns:
-
setX
public void setX(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int x) - Parameters:
sv-i-
-
setY
public void setY(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int y) - Parameters:
sv-i-
-
setHeight
public void setHeight(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int height) - Parameters:
sv-i-
-
setWidth
public void setWidth(org.gvsig.andami.ui.mdiManager.SingletonWindow sv, int width) - Parameters:
sv-i-
-
setMaximized
public void setMaximized(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, boolean maximized) - Parameters:
sw-maximized-
-
setNormalBounds
public void setNormalBounds(org.gvsig.andami.ui.mdiManager.SingletonWindow sw, Rectangle normalBounds) - Parameters:
sw-maximized-
-
setMinimumSize
Sets the minimum allowed size for the provided singleton window.- Parameters:
sw-minSize-
-
setTitle
- Parameters:
sv-string-
-