Class PanelView

  • All Implemented Interfaces:
    java.io.Serializable

    public class PanelView
    extends Widget
    implements java.io.Serializable
    PanelView that renders header and border around its content.
    Since:
    4.0
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PanelView()
      Default constructor.
      PanelView​(PanelView panelView)
      Copy constructor
      PanelView​(org.w3c.dom.Element panelViewElem)
      Constructor with XML element.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getToggleOrientation()
      Get toggle orientation: vertical or horizontal.
      boolean isClosable()
      Whether the panel is closable? When closed, the panel and its content will be removed from web page.
      boolean isCollapsed()
      Is the panel collapsed?
      boolean isToggleable()
      Whether the panel is toggleable? If toggleable, it is can be opened and closed.
      protected void parseElement​(org.w3c.dom.Element childElem)
      Parse the child element.
      void setClosable​(boolean closeable)
      Set whether the panel is closable.
      void setCollapsed​(boolean collapsed)
      Set whether the panel is collapsed.
      void setToggleable​(boolean toggable)
      Set whether the panel is toggleable? If toggleable, it is can be opened and closed.
      void setToggleOrientation​(java.lang.String toggleOrientation)
      Set toggle orientation: vertical or horizontal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PanelView

        public PanelView()
        Default constructor. toggleable, closable, not collapsed.
      • PanelView

        public PanelView​(PanelView panelView)
        Copy constructor
        Parameters:
        panelView - the PanelView to copy from
        Since:
        5.8
      • PanelView

        public PanelView​(org.w3c.dom.Element panelViewElem)
                  throws ParseException
        Constructor with XML element. Parse panelView element.
        
         
           <panelView>
           	 <toggleable>true</toggleable>
             <closable>true</closable>
             <toggleOrientation>vertical or horizontal</toggleOrientation>
           </panelView>
         
         
        Parameters:
        panelViewElem - panelView element
        Throws:
        ParseException - throw if a parsing error occurs
    • Method Detail

      • parseElement

        protected void parseElement​(org.w3c.dom.Element childElem)
                             throws ParseException
        Description copied from class: Widget
        Parse the child element.
        Overrides:
        parseElement in class Widget
        Parameters:
        childElem - a child element of widget element
        Throws:
        ParseException - throw if a parsing error occurs
      • isToggleable

        public boolean isToggleable()
        Whether the panel is toggleable? If toggleable, it is can be opened and closed.
        Returns:
        true if toggleable.
      • setToggleable

        public void setToggleable​(boolean toggable)
        Set whether the panel is toggleable? If toggleable, it is can be opened and closed.
        Parameters:
        toggable - true if toggleable
      • isClosable

        public boolean isClosable()
        Whether the panel is closable? When closed, the panel and its content will be removed from web page.
        Returns:
        true if the panel can be closed
      • setClosable

        public void setClosable​(boolean closeable)
        Set whether the panel is closable. When closed, the panel and its content will be removed from web page.
        Parameters:
        closeable - true if the panel can be closed
      • isCollapsed

        public boolean isCollapsed()
        Is the panel collapsed?
        Returns:
        true if collapsed
      • setCollapsed

        public void setCollapsed​(boolean collapsed)
        Set whether the panel is collapsed.
        Parameters:
        collapsed - true if collapsed
      • getToggleOrientation

        public java.lang.String getToggleOrientation()
        Get toggle orientation: vertical or horizontal.
        Returns:
        toggle orientation
      • setToggleOrientation

        public void setToggleOrientation​(java.lang.String toggleOrientation)
        Set toggle orientation: vertical or horizontal.
        Parameters:
        toggleOrientation - toggle orientation