Class DesktopPanelTag
- java.lang.Object
-
- org.apache.commons.jelly.TagSupport
-
- net.sf.jguiraffe.gui.builder.components.tags.FormBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.ComponentBaseTag
-
- net.sf.jguiraffe.gui.builder.components.tags.SimpleComponentTag
-
- net.sf.jguiraffe.gui.builder.components.tags.ContainerTag
-
- net.sf.jguiraffe.gui.builder.components.tags.DesktopPanelTag
-
- All Implemented Interfaces:
Composite
,ConditionalTag
,org.apache.commons.jelly.Tag
public class DesktopPanelTag extends ContainerTag
A specific container tag implementation that creates a desktop panel.
Desktop panels can be used in MDI applications. They provide the background on which internal frames are drawn.
Note that desktop panels may not be supported by all GUI libraries. They fit well in Swing's concept of internal frames, but can be problematic in SWT applications. So for really portable applications their usage is not recommended.
The following attributes are supported by this tag handler class:
Attribute Description Optional dragmode Defines the way windows on this panel are dragged. Two values are supported: live means that the windows are fully drawn while they are dragged. outline means that only a frame is drawn during dragging; this is more efficient on slow systems. If this attribute is not defined, live is used as default value. yes - Version:
- $Id: DesktopPanelTag.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DesktopPanelTag.DragMode
Enumeration class that defines the allowed values for thedragmode
attribute.
-
Constructor Summary
Constructors Constructor Description DesktopPanelTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Object
createContainer(ComponentManager manager, boolean create, Collection<Object[]> components)
Creates the container component.DesktopPanelTag.DragMode
getDragMode()
Returns the desktop panel's drag mode.void
setDragmode(String s)
Setter method of the dragmode attribute.void
setDragMode(DesktopPanelTag.DragMode dm)
Sets the desktop panel's drag mode.-
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, process
-
Methods inherited from class net.sf.jguiraffe.gui.builder.components.tags.ComponentBaseTag
getBackColor, getBackgroundColor, getConstraints, getFont, getFontRef, getForeColor, getForegroundColor, getName, getToolTipData, insertComponent, 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
-
setDragmode
public void setDragmode(String s)
Setter method of the dragmode attribute.- Parameters:
s
- the attribute's value
-
getDragMode
public DesktopPanelTag.DragMode getDragMode()
Returns the desktop panel's drag mode.- Returns:
- the drag mode
-
setDragMode
public void setDragMode(DesktopPanelTag.DragMode dm)
Sets the desktop panel's drag mode.- Parameters:
dm
- the new drag mode
-
createContainer
protected Object createContainer(ComponentManager manager, boolean create, Collection<Object[]> components) throws FormBuilderException, org.apache.commons.jelly.JellyTagException
Creates the container component. This implementation creates a desktop panel through the given component manager.- Specified by:
createContainer
in classContainerTag
- Parameters:
manager
- the component managercreate
- the create flagcomponents
- a collection with the container's children- Returns:
- the new container
- Throws:
FormBuilderException
- if an error occursorg.apache.commons.jelly.JellyTagException
- if the tag is incorrectly used
-
-