Class 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
    • Constructor Detail

      • DesktopPanelTag

        public DesktopPanelTag()
    • 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 class ContainerTag
        Parameters:
        manager - the component manager
        create - the create flag
        components - a collection with the container's children
        Returns:
        the new container
        Throws:
        FormBuilderException - if an error occurs
        org.apache.commons.jelly.JellyTagException - if the tag is incorrectly used