Java Doc for Panel.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » gwtext 2.01 » com.gwtext.client.widgets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.widgets.Component
   com.gwtext.client.widgets.BoxComponent
      com.gwtext.client.widgets.Container
         com.gwtext.client.widgets.Panel

All known Subclasses:   com.gwtext.client.widgets.Tip,  com.gwtext.client.widgets.Window,  com.gwtext.sample.showcase2.client.ShowcaseView,  com.gwtext.client.widgets.form.FieldSet,  com.gwtext.client.widgets.HTMLPanel,  com.gwtext.client.widgets.TabPanel,  com.gwtext.client.widgets.tree.TreePanel,  com.gwtext.client.widgets.form.MultiFieldPanel,  com.gwtext.sample.showcase2.client.ShowcasePanel,  com.gwtext.client.widgets.grid.GridPanel,  com.gwtext.client.widgets.form.FormPanel,  com.gwtext.client.widgets.PaddedPanel,
Panel
public class Panel extends Container (Code)
Panel is a container that has specific functionality and structural components that make it the perfect building block for application-oriented user interfaces. The Panel contains bottom and top toolbars, along with separate header, footer and body sections. It 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, and the layout and rendering pipeline is completely managed by the framework.



Constructor Summary
public  Panel()
     Create a new Panel.
public  Panel(String title)
     Construct a new Panel with the given title.
public  Panel(String title, String html)
    
public  Panel(String title, int width, int height)
    
protected  Panel(JavaScriptObject jsObj)
    
public  Panel(Element element)
     Applys the Panel to an existing element.

Method Summary
public  voidaddButton(Button button)
     Adds a button to this panel.
native public  voidaddListener(PanelListener listener)
     Add a Panel listener.
public  voidaddTool(Tool tool)
     The tool to be added to the header tool area.
public  voidcollapse()
     Collapses the panel body so that it becomes hidden.
public  voidcollapse(boolean animate)
     Collapses the panel body so that it becomes hidden.
native protected  JavaScriptObjectcreate(JavaScriptObject config)
    
public  voidexpand()
     Expands the panel body so that it becomes visible.
public  voidexpand(boolean animate)
     Expands the panel body so that it becomes visible.
public  StringgetBaseCls()
     The base CSS class to apply to this panel's element. the base CSS class to apply to this panel's element.
native public  ExtElementgetBody()
     The Panel's body Element which may be used to contain HTML content.
public  StringgetBodyStyle()
    
native public  ExtElementgetBodyWrap()
     The wrapper element for the body of the Panel.
native public  ToolbargetBottomToolbar()
     Returns the toolbar from the bottom section of the panel.
public  booleangetCollapseFirst()
     True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the panel's title bar, false to render it last.
public  StringgetCollapsedCls()
     A CSS class to add to the panel's element after it has been collapsed.
protected  JavaScriptObjectgetConfigPrototype()
    
public  booleangetFloating()
     True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered.
native public  ExtElementgetFooter()
     The Panel's footer Element.
native public  intgetFrameHeight()
     Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and header and footer elements, but not including the body height).
native public  intgetFrameWidth()
     Returns the width in pixels of the framing elements of this panel (not including the body width).
native public  ExtElementgetHeader()
     The Panel's header Element.
public  StringgetHtml()
     An HTML fragment, or a DomHelper specification to use as the panel's body content.
public  StringgetIconCls()
    
native public  intgetInnerHeight()
     Returns the height in pixels of the body element (not including the height of any framing elements).
native public  intgetInnerWidth()
     Returns the width in pixels of the body element (not including the width of any framing elements).
public  intgetMinButtonWidth()
     Minimum width in pixels of all buttons in this panel.
public  intgetShadowOffset()
     The number of pixels to offset the shadow if displayed.
public  StringgetTitle()
     The title text to display in the panel header.
native public  ToolbargetTopToolbar()
     Returns the toolbar from the top section of the panel.
native public  UpdateManagergetUpdateManager()
     Get the UpdateManager for this panel.
public  StringgetXType()
    
public  booleanisAnimCollapse()
     True to animate the transition when the panel is collapsed, false to skip the animation.
public  booleanisAutoScroll()
     True to use overflow:'auto' on the panel's body element and show scroll bars automatically when necessary, false to clip any overflowing content.
public  booleanisBodyBorder()
    
public  booleanisBorder()
     True to display the borders of the panel's body element, false to hide them.
public  booleanisClosable()
     Whether the Panel is closable.
public  booleanisCollapsed()
     True if panel collapsed, false if expanded.
public  booleanisCollapsible()
     True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button.
public  booleanisFrame()
    
public  booleanisHeader()
     True to create the header element explicitly, false to skip creating it.
public  booleanisHeaderAsText()
    
public  booleanisHideCollapseTool()
     True to hide the expand/collapse toggle button when collapsible = true, false to display it.
public  booleanisMaskDisabled()
    
public  booleanisShadow()
     True to display a shadow behind the panel, false to display no shadow (defaults to 'sides').
public  booleanisShim()
     False to disable the iframe shim in browsers which need one.
public  booleanisTitleCollapse()
    
public  voidload(String url)
     Loads this content panel immediately with content returned from an XHR call.
public  voidload(String url, UrlParam[] params, UrlLoadCallback callback, boolean loadScripts)
     Loads this content panel immediately with content returned from an XHR call.
public  voidsetAnimCollapse(boolean animCollapse)
     True to animate the transition when the panel is collapsed, false to skip the animation.
public  voidsetAutoLoad(String url)
     If set, the panel will attempt to load its contents from the specified URL immediately upon render.
public  voidsetAutoLoad(String url, UrlLoadConfig loadConfig)
     If set, the panel will attempt to load its contents from the specified URL immediately upon render.
public  voidsetAutoScroll(boolean autoScroll)
     True to use overflow:'auto' on the panel's body element and show scroll bars automatically when necessary, false to clip any overflowing content.
public  voidsetBaseCls(String baseCls)
     The base CSS class to apply to this panel's element.
public  voidsetBodyBorder(boolean bodyBorder)
     True to display an interior border on the body element of the panel, false to hide it. This only applies when border == true.
public  voidsetBodyStyle(String bodyStyle)
    
public  voidsetBorder(boolean border)
     True to display the borders of the panel's body element, false to hide them.
public  voidsetBottomToolbar(Toolbar toolbar)
     The bottom toolbar of the panel.
public  voidsetBottomToolbar(Button button)
     The bottom toolbar of the panel.
public  voidsetBottomToolbar(Button[] buttons)
     The bottom toolbar of the panel.
public  voidsetButtonAlign(Position buttonAlign)
     The alignment of any buttons added to this panel.
public  voidsetButtons(Button[] buttons)
     Used to add buttons to the footer of this panel.
public  voidsetClosable(boolean closable)
     Whether the Panel is closable.
public  voidsetCollapseFirst(boolean collapseFirst)
     True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the panel's title bar, false to render it last.
public  voidsetCollapsed(boolean collapsed)
    
public  voidsetCollapsedCls(String collapsedCls)
     A CSS class to add to the panel's element after it has been collapsed.
public  voidsetCollapsible(boolean collapsible)
     True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button.
public  voidsetContentEl(Element contentEl)
    
public  voidsetDraggable(boolean draggable)
     True to enable dragging of this Panel (defaults to false).
public  voidsetFloating(boolean floating)
     True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered.
public  voidsetFooter(boolean footer)
     True to create the footer element explicitly, false to skip creating it.
public  voidsetFrame(boolean frame)
     True to render the panel with custom rounded borders, false to render with plain 1px square borders.
public  voidsetHeader(boolean header)
     True to create the header element explicitly, false to skip creating it.
public  voidsetHeaderAsText(boolean headerAsText)
     True to display the panel title in the header, false to hide it

Note: This property cannot be changed after the Component has been rendered.
public  voidsetHideCollapseTool(boolean hideCollapseTool)
     True to hide the expand/collapse toggle button when collapsible = true, false to display it.
public  voidsetHtml(String html)
     An HTML fragment, or a DomHelper specification to use as the panel's body content.
public  voidsetIconCls(String iconCls)
    
public  voidsetMargins(int margin)
     Set padding on all sides.
public  voidsetMargins(int top, int left, int right, int bottom)
     Set paddings to Panel.
public  voidsetMaskDisabled(boolean maskDisabled)
     True to mask the panel when it is disabled, false to not mask it.
public  voidsetMinButtonWidth(int minButtonWidth)
     Minimum width in pixels of all buttons in this panel.
public  voidsetPaddings(int padding)
     Set padding on all sides.
public  voidsetPaddings(int top, int left, int right, int bottom)
     Set paddings to Panel.
public  voidsetShadow(boolean shadow)
     True to display a shadow behind the panel, false to display no shadow (defaults to 'sides').
public  voidsetShadow(Shadow.Type shadow)
     Set the shadow behind the Panel.
public  voidsetShadowOffset(int shadowOffset)
     The number of pixels to offset the shadow if displayed.
public  voidsetShim(boolean shim)
     False to disable the iframe shim in browsers which need one.
public  voidsetStyleName(String style)
    
public  voidsetTitle(String title, String iconCls)
     Sets the title text for the panel and optioanlly the icon class.
public  voidsetTitle(String title)
     The title text to display in the panel header.
public  voidsetTitleCollapse(boolean titleCollapse)
    
public  voidsetTools(Tool[] tools)
     The tools to be added to the header tool area.
public  voidsetTopToolbar(Toolbar toolbar)
     The top toolbar of the panel.
public  voidsetTopToolbar(Button button)
     The top toolbar of the panel.
public  voidsetTopToolbar(Button[] buttons)
     The top toolbar of the panel.
native public  voidtoggleCollapse()
     Shortcut for performing an expand or collapse based on the current state of the panel.
native public  voidtoggleCollapse(boolean animate)
     Shortcut for performing an expand or collapse based on the current state of the panel.


Constructor Detail
Panel
public Panel()(Code)
Create a new Panel.



Panel
public Panel(String title)(Code)
Construct a new Panel with the given title.
Parameters:
  title - the title



Panel
public Panel(String title, String html)(Code)



Panel
public Panel(String title, int width, int height)(Code)



Panel
protected Panel(JavaScriptObject jsObj)(Code)



Panel
public Panel(Element element)(Code)
Applys the Panel to an existing element.
Parameters:
  element - the element




Method Detail
addButton
public void addButton(Button button)(Code)
Adds a button to this panel. Note that this method must be called prior to rendering. The preferred approach is to add buttons via the buttons config.
Parameters:
  button - the button to add



addListener
native public void addListener(PanelListener listener)(Code)
Add a Panel listener.
Parameters:
  listener - the listener



addTool
public void addTool(Tool tool) throws IllegalStateException(Code)
The tool to be added to the header tool area.
Parameters:
  tool - the tool to add
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



collapse
public void collapse()(Code)
Collapses the panel body so that it becomes hidden. Fires the beforecollapse event which will cancel the collapse action if it returns false.



collapse
public void collapse(boolean animate)(Code)
Collapses the panel body so that it becomes hidden. Fires the beforecollapse event which will cancel the collapse action if it returns false.
Parameters:
  animate - True to animate the transition, else false (defaults to the value of the animCollapse panel config)



create
native protected JavaScriptObject create(JavaScriptObject config)(Code)



expand
public void expand()(Code)
Expands the panel body so that it becomes visible. Fires the beforeexpand event which will cancel the expand action if it returns false.



expand
public void expand(boolean animate)(Code)
Expands the panel body so that it becomes visible. Fires the beforeexpand event which will cancel the expand action if it returns false.
Parameters:
  animate - True to animate the transition, else false (defaults to the value of the animCollapse panel config)



getBaseCls
public String getBaseCls()(Code)
The base CSS class to apply to this panel's element. the base CSS class to apply to this panel's element. Defaults to 'x-panel'



getBody
native public ExtElement getBody()(Code)
The Panel's body Element which may be used to contain HTML content. The content may be specified in the html config, or it may be loaded using the autoLoad config, or through the Panel's Updater.
If this is used to load visible HTML elements in either way, then the Panel may not be used as a Layout for hosting nested Panels.
If this Panel is intended to be used as the host of a Layout (See layout then the body Element must not be loaded or changed - it is under the control of the Panel's Layout. the body element



getBodyStyle
public String getBodyStyle()(Code)
Custom CSS styles to be applied to the body element in the format expected by ExtElement.applyStyles(String) the custom CSS styles to be applied to the body element



getBodyWrap
native public ExtElement getBodyWrap()(Code)
The wrapper element for the body of the Panel. the wrapper element for the body of the Panel



getBottomToolbar
native public Toolbar getBottomToolbar()(Code)
Returns the toolbar from the bottom section of the panel. the bottom toolbar



getCollapseFirst
public boolean getCollapseFirst()(Code)
True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the panel's title bar, false to render it last. true to make sure the collapse/expand toggle button always renders first



getCollapsedCls
public String getCollapsedCls()(Code)
A CSS class to add to the panel's element after it has been collapsed. the CSS class to add to the panel's element after it has been collapsed.



getConfigPrototype
protected JavaScriptObject getConfigPrototype()(Code)



getFloating
public boolean getFloating()(Code)
True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered. Note that by default, setting floating to true will cause the panel to display at negative offsets so that it is hidden -- because the panel is absolute positioned, the position must be set explicitly after render (e.g., myPanel.setPosition(100,100);). Also, when floating a panel you should always assign a fixed width, otherwise it will be auto width and will expand to fill to the right edge of the viewport. true to float panel, false to display it inline where it is rendered



getFooter
native public ExtElement getFooter()(Code)
The Panel's footer Element. This Element is used to house the Panel's buttons. the footer element



getFrameHeight
native public int getFrameHeight()(Code)
Returns the height in pixels of the framing elements of this panel (including any top and bottom bars and header and footer elements, but not including the body height). To retrieve the body height see Panel.getInnerHeight() . the frame hieght



getFrameWidth
native public int getFrameWidth()(Code)
Returns the width in pixels of the framing elements of this panel (not including the body width). To retrieve the body width see Panel.getInnerWidth() . the frame width



getHeader
native public ExtElement getHeader()(Code)
The Panel's header Element. This Element is used to house the title and tools the header element



getHtml
public String getHtml()(Code)
An HTML fragment, or a DomHelper specification to use as the panel's body content. the HTML fragment, or a DomHelper specification to use as the panel's body content.



getIconCls
public String getIconCls()(Code)
the CSS class that will provide a background image to be used as the panel header icon



getInnerHeight
native public int getInnerHeight()(Code)
Returns the height in pixels of the body element (not including the height of any framing elements). For the frame height see Panel.getFrameHeight() . the inner height



getInnerWidth
native public int getInnerWidth()(Code)
Returns the width in pixels of the body element (not including the width of any framing elements). For the frame width see Panel.getFrameWidth() . the inner width



getMinButtonWidth
public int getMinButtonWidth() throws IllegalStateException(Code)
Minimum width in pixels of all buttons in this panel. the minimum width in pixels of all buttons in this panel.
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



getShadowOffset
public int getShadowOffset()(Code)
The number of pixels to offset the shadow if displayed. Note that this option only applies when floating = true. the number of pixels to offset the shadow if displayed. Note that this option only applies when floating = true.



getTitle
public String getTitle()(Code)
The title text to display in the panel header. the title text to display in the panel header.



getTopToolbar
native public Toolbar getTopToolbar()(Code)
Returns the toolbar from the top section of the panel. the top toolbar



getUpdateManager
native public UpdateManager getUpdateManager()(Code)
Get the UpdateManager for this panel. Enables you to perform Ajax updates of this panel's body. the UpdateManager



getXType
public String getXType()(Code)



isAnimCollapse
public boolean isAnimCollapse()(Code)
True to animate the transition when the panel is collapsed, false to skip the animation. true to animate the transition when the panel is collapsed, false to skip the animation



isAutoScroll
public boolean isAutoScroll()(Code)
True to use overflow:'auto' on the panel's body element and show scroll bars automatically when necessary, false to clip any overflowing content. true to autoscroll



isBodyBorder
public boolean isBodyBorder()(Code)
true to display an interior border on the body element of the panel, false to hide it.



isBorder
public boolean isBorder()(Code)
True to display the borders of the panel's body element, false to hide them. By default, the border is a 2px wide inset border, but this can be further altered by setting bodyBorder to false. true to display the borders of the panel's body element, false to hide them.



isClosable
public boolean isClosable()(Code)
Whether the Panel is closable. This is applicable when a Panel is added to a TabPanel. true if the Panel is closable



isCollapsed
public boolean isCollapsed()(Code)
True if panel collapsed, false if expanded. true to render the panel expanded, false to render it collapsed



isCollapsible
public boolean isCollapsible()(Code)
True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button. true to make the panel collapsible and have the expand/collapse toggle button automatically rendered intothe header tool button area, false to keep the panel statically sized with no button



isFrame
public boolean isFrame()(Code)
true to render the panel with custom rounded borders



isHeader
public boolean isHeader()(Code)
True to create the header element explicitly, false to skip creating it. By default, when header is not specified, if a title is set the header will be created automatically, otherwise it will not. If a title is set but header is explicitly set to false, the header will not be rendered. true to create header



isHeaderAsText
public boolean isHeaderAsText()(Code)
true to display the panel title in the header, false to hide it



isHideCollapseTool
public boolean isHideCollapseTool()(Code)
True to hide the expand/collapse toggle button when collapsible = true, false to display it. true to hide the expand/collapse toggle button when collapsible = true, false to display it.



isMaskDisabled
public boolean isMaskDisabled()(Code)
true to mask the panel when it is disabled, false to not mask it.



isShadow
public boolean isShadow()(Code)
True to display a shadow behind the panel, false to display no shadow (defaults to 'sides'). true to display a shadow behind the panel, false to display no shadow (defaults to 'sides').



isShim
public boolean isShim()(Code)
False to disable the iframe shim in browsers which need one. Note that this option only applies when floating = true. false to disable the iframe shim in browsers which need one.



isTitleCollapse
public boolean isTitleCollapse()(Code)
true to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar,false to allow it only by clicking to tool button



load
public void load(String url)(Code)
Loads this content panel immediately with content returned from an XHR call.
Parameters:
  url - the url to load the content from



load
public void load(String url, UrlParam[] params, UrlLoadCallback callback, boolean loadScripts)(Code)
Loads this content panel immediately with content returned from an XHR call.
Parameters:
  url - the url to load the content from
Parameters:
  params - the request URL params
Parameters:
  callback - callback function
Parameters:
  loadScripts - whether to execute scripts from the laoded content.



setAnimCollapse
public void setAnimCollapse(boolean animCollapse)(Code)
True to animate the transition when the panel is collapsed, false to skip the animation.
Parameters:
  animCollapse - Defaults to true if the Fx class is available, otherwise false



setAutoLoad
public void setAutoLoad(String url)(Code)
If set, the panel will attempt to load its contents from the specified URL immediately upon render.

The URL will become the default URL for this panel's body element, so it may be refreshed at any time.
Parameters:
  url - the URL to load the panel's content



setAutoLoad
public void setAutoLoad(String url, UrlLoadConfig loadConfig) throws IllegalStateException(Code)
If set, the panel will attempt to load its contents from the specified URL immediately upon render.

The URL will become the default URL for this panel's body element, so it may be refreshed at any time.
Parameters:
  url - the URL to load the panel's content
Parameters:
  loadConfig - the URL load configuration
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setAutoScroll
public void setAutoScroll(boolean autoScroll) throws IllegalStateException(Code)
True to use overflow:'auto' on the panel's body element and show scroll bars automatically when necessary, false to clip any overflowing content.
Parameters:
  autoScroll - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBaseCls
public void setBaseCls(String baseCls) throws IllegalStateException(Code)
The base CSS class to apply to this panel's element.
Parameters:
  baseCls - Defaults to 'x-panel'
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBodyBorder
public void setBodyBorder(boolean bodyBorder) throws IllegalStateException(Code)
True to display an interior border on the body element of the panel, false to hide it. This only applies when border == true. If border == true and bodyBorder == false, the border will display as a 1px wide inset border, giving the entire body element an inset appearance.
Parameters:
  bodyBorder - Defaults to true
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBodyStyle
public void setBodyStyle(String bodyStyle) throws IllegalStateException(Code)
Custom CSS styles to be applied to the body element in the format expected by ExtElement.applyStyles(String)
Parameters:
  bodyStyle - Defaults to null
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBorder
public void setBorder(boolean border) throws IllegalStateException(Code)
True to display the borders of the panel's body element, false to hide them. By default, the border is a 2px wide inset border, but this can be further altered by setting bodyBorder to false.
Parameters:
  border - Defaults to true
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBottomToolbar
public void setBottomToolbar(Toolbar toolbar)(Code)
The bottom toolbar of the panel. Note that this is not available as a property after render. To access the bottom toolbar after render, use @link #getBottomToolbar.
Parameters:
  toolbar - the toolbar



setBottomToolbar
public void setBottomToolbar(Button button) throws IllegalStateException(Code)
The bottom toolbar of the panel. Note that this is not available as a property after render. To access the bottom toolbar after render, use @link #getBottomToolbar.

Note: This property cannot be changed after the Component has been rendered. To add buttons after the Panel has been rendered, call Panel.getBottomToolbar() and then add Bottons directly to the toolbar.
Parameters:
  button - the button
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setBottomToolbar
public void setBottomToolbar(Button[] buttons) throws IllegalStateException(Code)
The bottom toolbar of the panel. Note that this is not available as a property after render. To access the bottom toolbar after render, use @link #getBottomToolbar.

Note: This property cannot be changed after the Component has been rendered. To add buttons after the Panel has been rendered, call Panel.getBottomToolbar() and then add Bottons directly to the toolbar.
Parameters:
  buttons - the buttons
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setButtonAlign
public void setButtonAlign(Position buttonAlign) throws IllegalStateException(Code)
The alignment of any buttons added to this panel. Valid values are Position.RIGHT , Position.LEFT , Position.CENTER .
Parameters:
  buttonAlign - Defaults to Position.RIGHT
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setButtons
public void setButtons(Button[] buttons) throws IllegalStateException(Code)
Used to add buttons to the footer of this panel.
Parameters:
  buttons - Array of Button
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setClosable
public void setClosable(boolean closable) throws IllegalStateException(Code)
Whether the Panel is closable. This is applicable when a Panel is added to a TabPanel.
Parameters:
  closable - true if closable
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setCollapseFirst
public void setCollapseFirst(boolean collapseFirst) throws IllegalStateException(Code)
True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the panel's title bar, false to render it last.
Parameters:
  collapseFirst - Defaults to true
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setCollapsed
public void setCollapsed(boolean collapsed)(Code)
True if panel collapsed, false if expanded
Parameters:
  collapsed - Defaults to false



setCollapsedCls
public void setCollapsedCls(String collapsedCls) throws IllegalStateException(Code)
A CSS class to add to the panel's element after it has been collapsed.
Parameters:
  collapsedCls - Defaults to 'x-panel-collapsed'
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setCollapsible
public void setCollapsible(boolean collapsible) throws IllegalStateException(Code)
True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button.
Parameters:
  collapsible - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setContentEl
public void setContentEl(Element contentEl) throws IllegalStateException(Code)
The id of an existing HTML node to use as the panel's body content
Parameters:
  contentEl - Defaults to null
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDraggable
public void setDraggable(boolean draggable) throws IllegalStateException(Code)
True to enable dragging of this Panel (defaults to false).
Parameters:
  draggable - true to enable dragging of this panel
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setFloating
public void setFloating(boolean floating) throws IllegalStateException(Code)
True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered. Note that by default, setting floating to true will cause the panel to display at negative offsets so that it is hidden -- because the panel is absolute positioned, the position must be set explicitly after render (e.g., myPanel.setPosition(100,100);). Also, when floating a panel you should always assign a fixed width, otherwise it will be auto width and will expand to fill to the right edge of the viewport.
Parameters:
  floating - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setFooter
public void setFooter(boolean footer) throws IllegalStateException(Code)
True to create the footer element explicitly, false to skip creating it. By default, when footer is not specified, if one or more buttons have been added to the panel the footer will be created automatically, otherwise it will not.
Parameters:
  footer - true to create footer
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setFrame
public void setFrame(boolean frame) throws IllegalStateException(Code)
True to render the panel with custom rounded borders, false to render with plain 1px square borders.
Parameters:
  frame - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHeader
public void setHeader(boolean header) throws IllegalStateException(Code)
True to create the header element explicitly, false to skip creating it. By default, when header is not specified, if a title is set the header will be created automatically, otherwise it will not. If a title is set but header is explicitly set to false, the header will not be rendered.
Parameters:
  header - true to create header
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHeaderAsText
public void setHeaderAsText(boolean headerAsText)(Code)
True to display the panel title in the header, false to hide it

Note: This property cannot be changed after the Component has been rendered.
Parameters:
  headerAsText - Defaults to true



setHideCollapseTool
public void setHideCollapseTool(boolean hideCollapseTool) throws IllegalStateException(Code)
True to hide the expand/collapse toggle button when collapsible = true, false to display it.
Parameters:
  hideCollapseTool - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHtml
public void setHtml(String html)(Code)
An HTML fragment, or a DomHelper specification to use as the panel's body content.
Parameters:
  html - Defaults to ""



setIconCls
public void setIconCls(String iconCls)(Code)
A CSS class that will provide a background image to be used as the panel header icon
Parameters:
  iconCls - Defaults to ""



setMargins
public void setMargins(int margin) throws IllegalStateException(Code)
Set padding on all sides.
Parameters:
  margin - the padding value in pixels
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMargins
public void setMargins(int top, int left, int right, int bottom) throws IllegalStateException(Code)
Set paddings to Panel.
Parameters:
  top - the top padding
Parameters:
  left - left padding
Parameters:
  right - right padding
Parameters:
  bottom - bottom padding
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMaskDisabled
public void setMaskDisabled(boolean maskDisabled) throws IllegalStateException(Code)
True to mask the panel when it is disabled, false to not mask it. Either way, the panel will always tell its contained elements to disable themselves when it is disabled, but masking the panel can provide an additional visual cue that the panel is disabled.
Parameters:
  maskDisabled - Defaults to true
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setMinButtonWidth
public void setMinButtonWidth(int minButtonWidth) throws IllegalStateException(Code)
Minimum width in pixels of all buttons in this panel.
Parameters:
  minButtonWidth - Defaults to 75
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setPaddings
public void setPaddings(int padding) throws IllegalStateException(Code)
Set padding on all sides.
Parameters:
  padding - the padding value in pixels
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setPaddings
public void setPaddings(int top, int left, int right, int bottom) throws IllegalStateException(Code)
Set paddings to Panel.
Parameters:
  top - the top padding
Parameters:
  left - left padding
Parameters:
  right - right padding
Parameters:
  bottom - bottom padding
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setShadow
public void setShadow(boolean shadow)(Code)
True to display a shadow behind the panel, false to display no shadow (defaults to 'sides'). Note that this option only applies when floating = true.
Parameters:
  shadow - true to display shadow



setShadow
public void setShadow(Shadow.Type shadow)(Code)
Set the shadow behind the Panel. Note that this option only applies when floating = true.
Parameters:
  shadow - true to display shadow
See Also:   com.gwtext.client.widgets.Shadow.SIDES
See Also:   com.gwtext.client.widgets.Shadow.FRAME
See Also:   com.gwtext.client.widgets.Shadow.DROP



setShadowOffset
public void setShadowOffset(int shadowOffset) throws IllegalStateException(Code)
The number of pixels to offset the shadow if displayed. Note that this option only applies when floating = true.
Parameters:
  shadowOffset - Defaults to 4
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setShim
public void setShim(boolean shim) throws IllegalStateException(Code)
False to disable the iframe shim in browsers which need one. Note that this option only applies when floating = true.
Parameters:
  shim - Defaults to true
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setStyleName
public void setStyleName(String style)(Code)



setTitle
public void setTitle(String title, String iconCls)(Code)
Sets the title text for the panel and optioanlly the icon class.
Parameters:
  title - the title
Parameters:
  iconCls - A CSS class that provides the icon image for this panel



setTitle
public void setTitle(String title)(Code)
The title text to display in the panel header. When a title is specified the header element will automatically be created and displayed unless header is explicitly set to false. If you don't want to specify a title at config time, but you may want one later, you must either specify a non-empty title (a blank space " " will do) or call setHeader(true) so that the container element will get created.
Parameters:
  title - Defaults to ""



setTitleCollapse
public void setTitleCollapse(boolean titleCollapse) throws IllegalStateException(Code)
True to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, false to allow it only by clicking to tool button
Parameters:
  titleCollapse - Defaults to false
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTools
public void setTools(Tool[] tools) throws IllegalStateException(Code)
The tools to be added to the header tool area.
Parameters:
  tools - the tools to add
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTopToolbar
public void setTopToolbar(Toolbar toolbar) throws IllegalStateException(Code)
The top toolbar of the panel. Note that this is not available as a property after render. To access the top toolbar after render, use getTopToolbar.
Parameters:
  toolbar - the toolbar
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTopToolbar
public void setTopToolbar(Button button) throws IllegalStateException(Code)
The top toolbar of the panel. Note that this is not available as a property after render. To access the top toolbar after render, use getTopToolbar.
Parameters:
  button - the button
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setTopToolbar
public void setTopToolbar(Button[] buttons) throws IllegalStateException(Code)
The top toolbar of the panel. Note that this is not available as a property after render. To access the top toolbar after render, use getTopToolbar.

Note: This property cannot be changed after the Component has been rendered. To add buttons after the Panel has been rendered, call Panel.getTopToolbar() and then add Bottons directly to the toolbar.
Parameters:
  buttons - the buttons
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



toggleCollapse
native public void toggleCollapse()(Code)
Shortcut for performing an expand or collapse based on the current state of the panel.



toggleCollapse
native public void toggleCollapse(boolean animate)(Code)
Shortcut for performing an expand or collapse based on the current state of the panel.
Parameters:
  animate - true to animate



Methods inherited from com.gwtext.client.widgets.Container
public void add(Component component, LayoutData layoutData)(Code)(Java Doc)
public void add(Widget widget)(Code)(Java Doc)
public void add(Widget widget, LayoutData layoutData)(Code)(Java Doc)
public void add(Component component)(Code)(Java Doc)
native public void addListener(ContainerListener listener)(Code)(Java Doc)
native public void bubble(ComponentTraversalCallback cb)(Code)(Java Doc)
native public void cascade(ComponentTraversalCallback cb)(Code)(Java Doc)
public void clear()(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
native public void doLayout()(Code)(Java Doc)
native public Component[] findBy(ComponentTraversalCallback cb)(Code)(Java Doc)
native public Component findByID(String id)(Code)(Java Doc)
native public Component[] findByType(String xtype)(Code)(Java Doc)
public int getActiveItem()(Code)(Java Doc)
public String getActiveItemID()(Code)(Java Doc)
public boolean getAutoDestroy()(Code)(Java Doc)
public boolean getBufferResize()(Code)(Java Doc)
native public Component getComponent(String id)(Code)(Java Doc)
native public Component getComponent(int index)(Code)(Java Doc)
native public Component[] getComponents()(Code)(Java Doc)
protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public boolean getHideBorders()(Code)(Java Doc)
public Component[] getItems()(Code)(Java Doc)
public ContainerLayout getLayout()(Code)(Java Doc)
public boolean getMonitorResize()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public void insert(int index, Component component)(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
native public void remove(String id)(Code)(Java Doc)
public boolean remove(Widget w)(Code)(Java Doc)
native public void remove(Component component, boolean autoDestroy)(Code)(Java Doc)
native public void remove(String id, boolean autoDestroy)(Code)(Java Doc)
native public void removeAll()(Code)(Java Doc)
native public void removeAll(boolean autoDestroy)(Code)(Java Doc)
public void setActiveItem(int activeItem)(Code)(Java Doc)
public void setActiveItemID(String activeItem)(Code)(Java Doc)
public void setAutoDestroy(boolean autoDestroy)(Code)(Java Doc)
public void setBufferResize(boolean bufferResize)(Code)(Java Doc)
public void setDefaults(DefaultsHandler defaultsHandler)(Code)(Java Doc)
public void setHideBorders(boolean hideBorders)(Code)(Java Doc)
public void setLayout(ContainerLayout layout) throws IllegalStateException(Code)(Java Doc)
public void setMonitorResize(boolean monitorResize) throws IllegalStateException(Code)(Java Doc)

Methods inherited from com.gwtext.client.widgets.BoxComponent
native protected void addListener(BoxComponentListener listener)(Code)(Java Doc)
native protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
public void doOnRender(Function function)(Code)(Java Doc)
public void doOnRender(Function function, int delayMillis)(Code)(Java Doc)
public boolean getAutoHeight()(Code)(Java Doc)
public boolean getAutoWidth()(Code)(Java Doc)
native public Box getBox()(Code)(Java Doc)
native public Box getBox(boolean local)(Code)(Java Doc)
protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
native public int[] getPosition()(Code)(Java Doc)
native public int[] getPosition(boolean local)(Code)(Java Doc)
native public Size getSize()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public void setAutoHeight(boolean autoHeight) throws IllegalStateException(Code)(Java Doc)
public void setAutoWidth(boolean autoWidth) throws IllegalStateException(Code)(Java Doc)
public void setHeight(int height)(Code)(Java Doc)
public void setHeight(String height)(Code)(Java Doc)
native public void setPagePosition(int x, int y)(Code)(Java Doc)
native public void setPosition(int left, int top)(Code)(Java Doc)
public void setWidth(int width)(Code)(Java Doc)
public void setWidth(String width)(Code)(Java Doc)
native public void syncSize()(Code)(Java Doc)
native public void updateBox(Box box)(Code)(Java Doc)

Fields inherited from com.gwtext.client.widgets.Component
protected JavaScriptObject config(Code)(Java Doc)
protected String id(Code)(Java Doc)

Methods inherited from com.gwtext.client.widgets.Component
public void addClass(String cls)(Code)(Java Doc)
native public void addClassCreated(String cls)(Code)(Java Doc)
native public void addEvent(String events)(Code)(Java Doc)
public void addEvents(String[] events)(Code)(Java Doc)
protected void addListener(String event, JavaScriptObject fn)(Code)(Java Doc)
native public void addListener(String event, Function funtion)(Code)(Java Doc)
native protected void addListener(ComponentListener listener)(Code)(Java Doc)
protected void afterRender()(Code)(Java Doc)
protected void beforeDestroy()(Code)(Java Doc)
protected void check() throws IllegalStateException(Code)(Java Doc)
public Component cloneComponent()(Code)(Java Doc)
public Component cloneComponent(Component overrides)(Code)(Java Doc)
native protected JavaScriptObject cloneConfig(JavaScriptObject config)(Code)(Java Doc)
abstract protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
native public void destroy()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void error(String message) throws IllegalStateException(Code)(Java Doc)
public void focus()(Code)(Java Doc)
native public void focus(boolean selectText)(Code)(Java Doc)
native public void focus(boolean selectText, int delay)(Code)(Java Doc)
public Element getApplyTo()(Code)(Java Doc)
protected String getAttribute(String attribute)(Code)(Java Doc)
protected boolean getAttributeAsBoolean(String attribute)(Code)(Java Doc)
protected float getAttributeAsFloat(String attribute)(Code)(Java Doc)
protected int getAttributeAsInt(String attribute)(Code)(Java Doc)
protected JavaScriptObject getAttributeAsJavaScriptObject(String attribute)(Code)(Java Doc)
public boolean getAutoShow()(Code)(Java Doc)
public String getCls()(Code)(Java Doc)
native protected static JavaScriptObject getComponentJS(String id)(Code)(Java Doc)
public JavaScriptObject getConfig()(Code)(Java Doc)
abstract protected JavaScriptObject getConfigPrototype()(Code)(Java Doc)
public String getCtCls()(Code)(Java Doc)
public String getDisabledClass()(Code)(Java Doc)
native public ExtElement getEl()(Code)(Java Doc)
native protected Element getElement(JavaScriptObject jsObj)(Code)(Java Doc)
public Element getElement()(Code)(Java Doc)
public String getHideMode()(Code)(Java Doc)
public boolean getHideParent()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
native public String getItemId()(Code)(Java Doc)
public JavaScriptObject getJsObj()(Code)(Java Doc)
public int getOffsetHeight()(Code)(Java Doc)
public int getOffsetWidth()(Code)(Java Doc)
public JavaScriptObject getOrCreateJsObj()(Code)(Java Doc)
native public Container getOwnerContainer()(Code)(Java Doc)
public Element getRenderTo()(Code)(Java Doc)
public String[] getStateEvents()(Code)(Java Doc)
public String getStateId()(Code)(Java Doc)
public String getStyle()(Code)(Java Doc)
protected Element getStyleElement()(Code)(Java Doc)
public String getTitle()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
native public String getXTypes()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void hide()(Code)(Java Doc)
protected void initComponent()(Code)(Java Doc)
public boolean isCreated()(Code)(Java Doc)
public boolean isDisabled()(Code)(Java Doc)
public boolean isHidden()(Code)(Java Doc)
native public boolean isRendered()(Code)(Java Doc)
native public boolean isVisible()(Code)(Java Doc)
native public boolean isXType(String xtype)(Code)(Java Doc)
native public boolean isXType(String xtype, boolean shallow)(Code)(Java Doc)
protected void onDestroy()(Code)(Java Doc)
native public void removeClass(String cls)(Code)(Java Doc)
native public void render(String id)(Code)(Java Doc)
native public void render(String id, String position)(Code)(Java Doc)
native public void render(String id, int position)(Code)(Java Doc)
native public void render(Element element)(Code)(Java Doc)
native public void render(Element element, String position)(Code)(Java Doc)
native public void render(Element element, int position)(Code)(Java Doc)
public void setApplyTo(Element element) throws IllegalStateException(Code)(Java Doc)
protected void setAttribute(String attribute, String value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, String value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc)
protected void setAttribute(String attribute, int[] value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, int[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc)
protected void setAttribute(String attribute, long value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, double value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, int value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, int value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc)
protected void setAttribute(String attribute, Date value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, JavaScriptObject value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc)
protected void setAttribute(String attribute, String[] value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, String[] value, boolean allowPostCreate, boolean allowPostRender)(Code)(Java Doc)
protected void setAttribute(String attribute, boolean value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, boolean value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc)
protected void setAttribute(String attribute, Element value, boolean allowPostCreate)(Code)(Java Doc)
protected void setAttribute(String attribute, Element value, boolean allowPostCreate, boolean allowPostRendered)(Code)(Java Doc)
public void setAutoEl(String autoEl)(Code)(Java Doc)
public void setAutoShow(boolean autoShow) throws IllegalStateException(Code)(Java Doc)
public void setCls(String cls)(Code)(Java Doc)
public void setCtCls(String ctCls) throws IllegalStateException(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setDisabledClass(String disabledClass)(Code)(Java Doc)
public void setEl(Element el) throws IllegalStateException(Code)(Java Doc)
public void setEl(String elementID) throws IllegalStateException(Code)(Java Doc)
public void setHeight(String height)(Code)(Java Doc)
public void setHideMode(String hideMode)(Code)(Java Doc)
public void setHideParent(boolean hideParent) throws IllegalStateException(Code)(Java Doc)
final public void setId(String id) throws IllegalStateException(Code)(Java Doc)
public void setRenderTo(Element elem) throws IllegalStateException(Code)(Java Doc)
public void setStateEvents(String[] stateEvents) throws IllegalStateException(Code)(Java Doc)
public void setStateId(String stateId) throws IllegalStateException(Code)(Java Doc)
public void setStyle(String style) throws IllegalStateException(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public void setWidth(String width)(Code)(Java Doc)
public void show()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.