org.sgx.j2s.aui
Class Panel

Package class diagram package Panel
java.lang.Object
  extended by org.sgx.j2s.js.NativeWrapper
      extended by org.sgx.j2s.yui3.yui.YUINativeWrapper
          extended by org.sgx.j2s.yui3.yui.event.EventTarget
              extended by org.sgx.j2s.yui3.yui.Attribute
                  extended by org.sgx.j2s.yui3.yui.Base
                      extended by org.sgx.j2s.yui3.yui.widget.Widget
                          extended by org.sgx.j2s.aui.Component
                              extended by 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();


Field Summary
 
Fields inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
Y
 
Fields inherited from class org.sgx.j2s.js.NativeWrapper
_data, _EMPTYPARAMS
 
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.aui.Component
clone
 
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 org.sgx.j2s.yui3.yui.Attribute
addAttr, addAttrs, attrAdded, get, getAttrs, modifyAttr, removeAttr, reset, set, setAttrs
 
Methods inherited from class org.sgx.j2s.yui3.yui.event.EventTarget
after, before, detach, detachAll, fire, getEvent, on, once, publish
 
Methods inherited from class org.sgx.j2s.yui3.yui.YUINativeWrapper
_load
 
Methods inherited from class org.sgx.j2s.js.NativeWrapper
_call, _get, _getData, create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Panel

public Panel()
Method Detail

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()