Package com.znize.platform.model.view
Class PanelView
- java.lang.Object
-
- com.znize.platform.model.view.Widget
-
- com.znize.platform.model.view.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetToggleOrientation()Get toggle orientation: vertical or horizontal.booleanisClosable()Whether the panel is closable? When closed, the panel and its content will be removed from web page.booleanisCollapsed()Is the panel collapsed?booleanisToggleable()Whether the panel is toggleable? If toggleable, it is can be opened and closed.protected voidparseElement(org.w3c.dom.Element childElem)Parse the child element.voidsetClosable(boolean closeable)Set whether the panel is closable.voidsetCollapsed(boolean collapsed)Set whether the panel is collapsed.voidsetToggleable(boolean toggable)Set whether the panel is toggleable? If toggleable, it is can be opened and closed.voidsetToggleOrientation(java.lang.String toggleOrientation)Set toggle orientation: vertical or horizontal.
-
-
-
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 ParseExceptionConstructor 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 ParseExceptionDescription copied from class:WidgetParse the child element.- Overrides:
parseElementin classWidget- 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
-
-