com.ivata.mask.web.javascript
Class JavaScriptWindow

java.lang.Object
  extended bycom.ivata.mask.web.javascript.JavaScriptWindow

public final class JavaScriptWindow
extends java.lang.Object

IMPORTANT: the code generated by this class uses double quoted strings. That means, if you include the output in an HTML tag attribute, you should use single quotes for the HTML attribute.

Creates a new window using JavaScript. To use this class, set the attributes of the window by using the setter methods of this class, then call toString()to generate the JavaScript.

You must set the URL and the frame name before calling .

Since:
ivata masks 0.4 (2002-05-18)
Version:
$Revision: 1.3 $
Author:
Colin MacLeod colin.macleod@ivata.com

Constructor Summary
JavaScriptWindow()
           
 
Method Summary
 java.lang.String getFrameName()
           Get the fame name of the new window.
 boolean getHasMenuBar()
           Get whether or not the window has a menu bar.
 boolean getHasScrollBars()
           Get whether or not the window has scroll bars.
 boolean getHasToolBar()
           Get whether or not the window has a tool bar.
 int getHeight()
           Get the height of the window.
 boolean getIsResizable()
           Get whether or not the window can be resized.
 java.lang.String getPage()
           Set this value to specify the application-specific path (beginning with a '/') which the new window will show.
 java.util.Map getParams()
           Specifies parameters for the page this window shows.
 java.lang.String getParamsName()
           Specifies the name of a java.util.Map instance in the page context which is used to specify parameters for the page this window shows.
 int getWidth()
           Get the width of the window.
 java.lang.String getWindowName()
           Get a JavaScript object name for the new window.
 void setFrameName(java.lang.String frameNameParam)
           Set the fame name of the new window.
 void setHasMenuBar(boolean hasMenuBarParam)
           Set whether or not the window has a menu bar.
 void setHasScrollBars(boolean hasScrollBarsParam)
           Set whether or not the window has scroll bars.
 void setHasToolBar(boolean hasToolBarParam)
           Set whether or not the window has a tool bar.
 void setHeight(int heightParam)
           Set the height of the window.
 void setIsResizable(boolean isResizableParam)
           Set whether or not the window can be resized.
 void setPage(java.lang.String pageParam)
           Set this value to specify the application-specific path (beginning with a '/') which the new window will show.
 void setPageContext(javax.servlet.jsp.PageContext pageContextParam)
           Set the page context used to calculate the window URL .
 void setParams(java.util.Map paramsParam)
           Specifies parameters for the page this window shows.
 void setParamsName(java.lang.String paramsNameParam)
           Specifies the name of a java.util.Map instance in the page context which is used to specify parameters for the page this window shows.
 void setWidth(int widthParam)
           Set the width of the window.
 void setWindowName(java.lang.String windowNameParam)
           Set a JavaScript object name for the new window.
 java.lang.String toString()
           Create the JavaScript that makes the window and return it as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaScriptWindow

public JavaScriptWindow()
Method Detail

getFrameName

public java.lang.String getFrameName()

Get the fame name of the new window.

Returns:
the fame name of the new window.

getHasMenuBar

public boolean getHasMenuBar()

Get whether or not the window has a menu bar. The default setting is false.

Returns:
true if the window has a menu bar, otherwise false.

getHasScrollBars

public boolean getHasScrollBars()

Get whether or not the window has scroll bars. The default setting is true.

Returns:
true if the window has scroll bars, otherwise false.

getHasToolBar

public boolean getHasToolBar()

Get whether or not the window has a tool bar. The default setting is true.

Returns:
true if the window has a tool bar, otherwise false.

getHeight

public int getHeight()

Get the height of the window.

Returns:
the height of the window.

getIsResizable

public boolean getIsResizable()

Get whether or not the window can be resized. The default setting is true.

Returns:
true if the window has can be resized, otherwise false.

getPage

public java.lang.String getPage()

Set this value to specify the application-specific path (beginning with a '/') which the new window will show.

Returns:
the current value of page.

getParams

public java.util.Map getParams()

Specifies parameters for the page this window shows.

Returns:
the current value of parameters.
See Also:
TagUtils.getInstance().computeURL

getParamsName

public java.lang.String getParamsName()

Specifies the name of a java.util.Map instance in the page context which is used to specify parameters for the page this window shows.

Returns:
the current value of paramsName.
See Also:
TagUtils.getInstance().computeURL.

getWidth

public int getWidth()

Get the width of the window.

Returns:
the width of the window.

getWindowName

public java.lang.String getWindowName()

Get a JavaScript object name for the new window.

Returns:
a JavaScript object name for the new window.

setFrameName

public void setFrameName(java.lang.String frameNameParam)

Set the fame name of the new window.

Parameters:
frameNameParam - the new value of the fame name of the new window.

setHasMenuBar

public void setHasMenuBar(boolean hasMenuBarParam)

Set whether or not the window has a menu bar. The default setting is false.

Parameters:
hasMenuBarParam - set to true if the window has a menu bar, otherwise false.

setHasScrollBars

public void setHasScrollBars(boolean hasScrollBarsParam)

Set whether or not the window has scroll bars. The default setting is true.

Parameters:
hasScrollBarsParam - set to true if the window has scroll bars, otherwise false.

setHasToolBar

public void setHasToolBar(boolean hasToolBarParam)

Set whether or not the window has a tool bar. The default setting is true.

Parameters:
hasToolBarParam - set to true if the window has a tool bar, otherwise false.

setHeight

public void setHeight(int heightParam)

Set the height of the window. The default setting is 450.

Parameters:
heightParam - the new height of the window.

setIsResizable

public void setIsResizable(boolean isResizableParam)

Set whether or not the window can be resized. The default setting is true.

Parameters:
isResizableParam - set to true if the window has can be resized, otherwise false.

setPage

public void setPage(java.lang.String pageParam)

Set this value to specify the application-specific path (beginning with a '/') which the new window will show.

Parameters:
pageParam - the new value of page.

setPageContext

public void setPageContext(javax.servlet.jsp.PageContext pageContextParam)

Set the page context used to calculate the window URL .

Parameters:
pageContextParam - new value of page context.

setParams

public void setParams(java.util.Map paramsParam)

Specifies parameters for the page this window shows.

Parameters:
paramsParam - the new value of the parameters.
See Also:
TagUtils.getInstance().computeURL

setParamsName

public void setParamsName(java.lang.String paramsNameParam)

Specifies the name of a java.util.Map instance in the page context which is used to specify parameters for the page this window shows.

Parameters:
paramsNameParam - the new value of paramsName.
See Also:
TagUtils.getInstance().computeURL.

setWidth

public void setWidth(int widthParam)

Set the width of the window. The default setting is 700.

Parameters:
widthParam - the new value for the width of the window.

setWindowName

public void setWindowName(java.lang.String windowNameParam)

Set a JavaScript object name for the new window.

Parameters:
windowNameParam - a JavaScript object name for the new window.

toString

public java.lang.String toString()

Create the JavaScript that makes the window and return it as a string.

Returns:
the JavaScript that makes the window.


Copyright © 2001-2005 ivata limited. All Rights Reserved.