org.sgx.j2s.aui
Class Panel
java.lang.Object
org.sgx.j2s.js.NativeWrapper
org.sgx.j2s.yui3.yui.YUINativeWrapper
org.sgx.j2s.yui3.yui.event.EventTarget
org.sgx.j2s.yui3.yui.Attribute
org.sgx.j2s.yui3.yui.Base
org.sgx.j2s.yui3.yui.widget.Widget
org.sgx.j2s.aui.Component
org.sgx.j2s.aui.Panel
- Direct Known Subclasses:
- Dialog
public class Panel
- extends Component
The Panel Utility - Panel is a container that has specific functionality and structural components that make it the good for building block for application-oriented user interfaces. Panel also provides built-in expandable and collapsible behavior, along with a variety of prebuilt tool buttons that can be wired up to provide other customized behavior. Panels can be easily dropped into any Container or layout.
A base class for Panel, providing:
Widget Lifecycle (initializer, renderUI, bindUI, syncUI, destructor)
Built-in expandable and collapsible behavior
Prebuilt tool buttons that can be wired up to provide other customized behavior
Good for building block for application-oriented user interfaces
Can be easily dropped into any Container or layout
Quick Example:
var instance = new A.Panel({
collapsible: true,
collapsed: true,
headerContent: 'Panel 1',
bodyContent: 'Content'
}).render();
Constructor Summary |
Panel()
|
Method Summary |
void |
collapse()
Collapse the panel setting the collapsed attribute to true. |
void |
expand()
Expand the panel setting the collapsed attribute to false. |
Node |
getBodyNode()
|
java.lang.Object[] |
getIcons()
|
java.lang.String |
getTitle()
The title to be displayed on the Panel or null if this panel has no title |
boolean |
isCollapsed()
|
boolean |
isSetCollapsible()
|
void |
setCollapsed(boolean collapsed)
|
void |
setIcons(java.lang.Object[] icons)
|
void |
setSetCollapsible(boolean collapsible)
|
void |
setTitle(java.lang.String title)
The title to be displayed on the Panel. |
void |
toggle()
Toggle the visibility of the Panel toggling the value of the visible attribute. |
void |
toggleCollapse()
Toggle the collapsed value. |
Methods inherited from class org.sgx.j2s.yui3.yui.widget.Widget |
blur, disable, enable, focus, getByNode, getClassName, getDefaultLocale, getSkinName, getString, getStrings, hide, render, show |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Panel
public Panel()
getIcons
public java.lang.Object[] getIcons()
setIcons
public void setIcons(java.lang.Object[] icons)
getTitle
public java.lang.String getTitle()
- The title to be displayed on the Panel or null if this panel has no title
setTitle
public void setTitle(java.lang.String title)
- The title to be displayed on the Panel.
isSetCollapsible
public boolean isSetCollapsible()
setSetCollapsible
public void setSetCollapsible(boolean collapsible)
isCollapsed
public boolean isCollapsed()
setCollapsed
public void setCollapsed(boolean collapsed)
collapse
public void collapse()
- Collapse the panel setting the collapsed attribute to true.
expand
public void expand()
- Expand the panel setting the collapsed attribute to false.
toggle
public void toggle()
- Toggle the visibility of the Panel toggling the value of the visible attribute.
- Overrides:
toggle
in class Component
toggleCollapse
public void toggleCollapse()
- Toggle the collapsed value. Expanding and collapsing the Panel.
getBodyNode
public Node getBodyNode()