org.apache.beehive.netui.tags.html
Class ConfigurePopup

Object
  extended by TagSupport
      extended by BodyTagSupport
          extended by AbstractClassicTag
              extended by ConfigurePopup
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, INetuiTag

public class ConfigurePopup
extends AbstractClassicTag

Configures popup window parameters for parent tags that can open popup windows.

See Also:
Serialized Form
Example
     <netui:anchor action="getCityZipFromNestedPageFlow" popup="true">
         Get a city and zip code
         <netui:configurePopup resizable="false" width="400" height="200">
             <netui:retrievePopupOutput tagIdRef="zipCodeField" dataSource="outputFormBean.zipCode" />
             <netui:retrievePopupOutput tagIdRef="cityField" dataSource="outputFormBean.city" />
         </netui:configurePopup>
     </netui:anchor>

Field Summary
 
Fields inherited from class AbstractClassicTag
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT
 
Fields inherited from class BodyTagSupport
bodyContent
 
Fields inherited from class TagSupport
id, pageContext
 
Fields inherited from interface BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
ConfigurePopup()
           
 
Method Summary
 int doStartTag()
           
 String getTagName()
          Return the name of the Tag.
protected  void localRelease()
          Release any acquired resources.
 void setDirectories(boolean directories)
          Sets whether directory buttons are displayed in the popup window.
 void setHeight(int height)
          Sets the height of the popup window.
 void setLeft(int left)
          Sets the X coordinate of the top left corner of the popup window.
 void setLocation(boolean location)
          Sets whether the location (address) bar is visible in the popup window.
 void setMenubar(boolean menubar)
          Sets whether the menu bar is displayed in the popup window.
 void setName(String name)
          Sets the name of the popup window.
 void setOnPopupDone(String onPopupDone)
          Sets the JavaScript function to be called when the popup window is closing.
 void setPopupFunc(String popupFunc)
          Sets the JavaScript function to be called to open the popup window.
 void setReplace(boolean replace)
          Sets whether the popup window's location will replace the location in the current window's navigation history.
 void setResizable(boolean resizable)
          Sets whether the popup window is resizable.
 void setScrollbars(boolean scrollbars)
          Sets whether the popup window has scroll bars.
 void setStatus(boolean status)
          Sets whether the status bar is displayed in the popup window.
 void setToolbar(boolean toolbar)
          Sets whether the toolbar is visible in the popup window.
 void setTop(int top)
          Sets the Y coordinate of the top left corner of the popup window.
 void setUpdateFormFields(boolean updateFormFields)
          Sets whether the JavaScript function that opens the popup window should add data from the form fields to the request.
 void setWidth(int width)
          Sets the width of the popup window.
 
Methods inherited from class AbstractClassicTag
applyNamingChain, getErrorsReport, getIdForTagId, getNamingChain, getNearestForm, getNextId, getScriptReporter, getUserLocale, hasErrors, qualifyAttribute, registerTagError, registerTagError, reportAndExit, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class BodyTagSupport
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Tag
getParent, setPageContext, setParent
 

Constructor Detail

ConfigurePopup

public ConfigurePopup()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in interface INetuiTag
Specified by:
getTagName in class AbstractClassicTag
Returns:
the name of the tag.

setOnPopupDone

public void setOnPopupDone(String onPopupDone)
Sets the JavaScript function to be called when the popup window is closing. If this attribute is not present, a default function will be generated.

Parameters:
onPopupDone - the JavaScript function to be called when the popup window is closing.

setPopupFunc

public void setPopupFunc(String popupFunc)
Sets the JavaScript function to be called to open the popup window. This function overrides the auto-generated one that is based on the other attributes like resizable, name, etc.

Parameters:
popupFunc - the JavaScript function to be called to open the popup window.

setUpdateFormFields

public void setUpdateFormFields(boolean updateFormFields)
Sets whether the JavaScript function that opens the popup window should add data from the form fields to the request.

Parameters:
updateFormFields - whether the data from the form fields is included in the popup window request.

setName

public void setName(String name)
Sets the name of the popup window.

Parameters:
name - the name of the popup window.

setToolbar

public void setToolbar(boolean toolbar)
Sets whether the toolbar is visible in the popup window.

Parameters:
toolbar - whether the toolbar is visible in the popup window.

setLocation

public void setLocation(boolean location)
Sets whether the location (address) bar is visible in the popup window.

Parameters:
location - whether the location (address) bar is visible in the popup window.

setDirectories

public void setDirectories(boolean directories)
Sets whether directory buttons are displayed in the popup window.

Parameters:
directories - whether directory buttons are displayed in the popup window.

setStatus

public void setStatus(boolean status)
Sets whether the status bar is displayed in the popup window.

Parameters:
status - whether the status bar is displayed in the popup window.

setMenubar

public void setMenubar(boolean menubar)
Sets whether the menu bar is displayed in the popup window.

Parameters:
menubar - whether the menu bar is displayed in the popup window.

setScrollbars

public void setScrollbars(boolean scrollbars)
Sets whether the popup window has scroll bars.

Parameters:
scrollbars - whether the popup window has scroll bars.

setResizable

public void setResizable(boolean resizable)
Sets whether the popup window is resizable.

Parameters:
resizable - whether the popup window is resizable.

setWidth

public void setWidth(int width)
Sets the width of the popup window.

Parameters:
width - the width of the popup window.

setHeight

public void setHeight(int height)
Sets the height of the popup window.

Parameters:
height - the height of the popup window.

setLeft

public void setLeft(int left)
Sets the X coordinate of the top left corner of the popup window.

Parameters:
left - the X coordinate of the top left corner of the popup window.

setTop

public void setTop(int top)
Sets the Y coordinate of the top left corner of the popup window.

Parameters:
top - the Y coordinate of the top left corner of the popup window.

setReplace

public void setReplace(boolean replace)
Sets whether the popup window's location will replace the location in the current window's navigation history.

Parameters:
replace - whether the popup window's location will replace the location in the current window's navigation history.

doStartTag

public int doStartTag()
               throws JspException
Specified by:
doStartTag in interface Tag
Overrides:
doStartTag in class BodyTagSupport
Throws:
JspException - if a JSP exception has occurred

localRelease

protected void localRelease()
Release any acquired resources.

Overrides:
localRelease in class AbstractClassicTag