Class DialogTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- All Implemented Interfaces:
Composite
,ConditionalTag
,IconSupport
,WindowData
,org.apache.commons.jelly.Tag
public class DialogTag extends WindowBaseTag
A tag handler class for creating dialogs.
With this tag class modal and non modal dialogs can be created, i.e. typical windows that gather user input. In addition to the attributes defined by the base class, this class support the boolean
modal
attribute, which specifies whether the resulting dialog window is modal or not. The default value for this attribute is true.- Version:
- $Id: DialogTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Field Summary
-
Fields inherited from class org.apache.commons.jelly.TagSupport
body, context, hasTrimmed, parent, shouldTrim
-
Fields inherited from interface net.sf.jguiraffe.gui.builder.window.WindowData
UNDEFINED
-
-
Constructor Summary
Constructors Constructor Description DialogTag()
Creates a new instance ofDialogTag
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Window
createWindow(WindowManager manager, WindowBuilderData data)
Creates the dialog window using the passed in window manager.protected Window
initWindow(WindowManager manager, WindowBuilderData data, Window wnd)
Initializes the dialog window.boolean
isModal()
Returns the modal flag.void
setModal(boolean modal)
Setter method for the modal attribute.-
Methods inherited from class net.sf.jguiraffe.gui.builder.window.tags.WindowBaseTag
createContainer, fetchMenuBar, getComponentBuilderData, getController, getHeight, getIcon, getMenuBar, getTitle, getWidth, getWindow, getXPos, getYPos, insertComponent, isAutoClose, isCenter, isClosable, isCloseOnEsc, isIconifiable, isMaximizable, isResizable, process, setAutoClose, setCenter, setClosable, setCloseOnEsc, setController, setHeight, setIcon, setIconifiable, setMaximizable, setMenu, setResgrp, setResizable, setTitle, setTitleres, setWidth, setXpos, setYpos
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.ContainerTag
addComponent, addComponents, createComponent, getComposite, getContainer, getLayout, processBeforeBody, setComposite, setLayout
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.SimpleComponentTag
getComponent
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.ComponentBaseTag
getBackColor, getBackgroundColor, getConstraints, getFont, getFontRef, getForeColor, getForegroundColor, getName, getToolTipData, setBackColor, setConstraints, setFont, setFontRef, setForeColor, setName, setTooltip, setTooltipres, setTooltipresgrp
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
canProcess, canProcess, convertToClass, convertToNumberWithUnit, convertToNumberWithUnit, doTag, findContainer, getBuilderData, getBuilderData, getIfName, getResourceText, getResourceText, getUnlessName, setIfName, setUnlessName
-
Methods inherited from class org.apache.commons.jelly.TagSupport
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody
-
-
-
-
Method Detail
-
isModal
public boolean isModal()
Returns the modal flag.- Returns:
- the modal flag
-
setModal
public void setModal(boolean modal)
Setter method for the modal attribute.- Parameters:
modal
- the attribute value
-
createWindow
protected Window createWindow(WindowManager manager, WindowBuilderData data) throws WindowBuilderException
Creates the dialog window using the passed in window manager.- Specified by:
createWindow
in classWindowBaseTag
- Parameters:
manager
- the window managerdata
- the window builder data- Returns:
- the new window
- Throws:
WindowBuilderException
- if an error occurs
-
initWindow
protected Window initWindow(WindowManager manager, WindowBuilderData data, Window wnd) throws WindowBuilderException
Initializes the dialog window.- Specified by:
initWindow
in classWindowBaseTag
- Parameters:
manager
- the window managerdata
- the window builder datawnd
- the window to initialize- Returns:
- the initialized window
- Throws:
WindowBuilderException
- if an error occurs
-
-