Java Doc for ContentPanel.java in  » Ajax » MyGWT » net » mygwt » ui » client » widget » 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 » MyGWT » net.mygwt.ui.client.widget 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.mygwt.ui.client.widget.Component
   net.mygwt.ui.client.widget.Container
      net.mygwt.ui.client.widget.ScrollContainer
         net.mygwt.ui.client.widget.WidgetContainer
            net.mygwt.ui.client.widget.ContentPanel

ContentPanel
public class ContentPanel extends WidgetContainer implements SourcesMouseEvents(Code)
A Container with an optional header that can be expanded and collapsed.
Styles:
COLLAPSE, HEADER, CLOSE
Events:
BeforeExpand : (widget)
Fires before the panel is expanded. Listeners can set the doit field to false to cancel the expand.
  • widget : this
Expand : (widget)
Fires after the panel is expanded
  • widget : this
BeforeCollapse : (widget)
Fires before the panel is collpased. Listeners can set the doit field false to cancel the collapse.
  • widget : this
Collapse : (widget)
Fires after the panel is collapsed.
  • widget : this
BeforeClose : (widget)
Fires before a content panel is closed. Listeners can set the doit field to false to cancel the operation.
  • widget : this
Close : (widget)
Fires after a content panel is closed.
  • widget : this
CSS:
.my-cpanel ( the panel panel)
.my-cpanel .my-cpanel-hdr-text (the header text)
.my-cpanel-small ( smaller header section )
.my-cpanel-small .my-cpanel-hdr-text (the header text)


Field Summary
protected  SimplePanelbody
    
protected  Itemheader
    

Constructor Summary
public  ContentPanel()
     Creates a new content panel with a header.
public  ContentPanel(int style)
     Creates a new content panel.
public  ContentPanel(int style, String baseStyle)
     Creates a new content panel.

Method Summary
public  voidaddMouseListener(MouseListener listener)
     Adds a listener interface to receive mouse events.
protected  voidafterCollapse()
    
protected  voidafterExpand()
    
protected  voidafterRender()
    
protected  voiddoAttachChildren()
    
protected  voiddoDetachChildren()
    
public  booleangetAnimateCollapse()
     Returns true if animations are enabled.
public  booleangetCollapse()
     Returns true if the panel can be collapsed.
public  booleangetFrame()
    
public  ItemgetHeader()
     Returns the panel's header widget.
public  ElementgetLayoutTarget()
    
public  StringgetText()
     Returns the panel's title text.
public  booleangetTitleCollapse()
     Returns true if clicks on the header will expand and collapse the panel.
public  ToolBargetToolBar()
     Returns the panel's tool bar.
public  booleanisExpanded()
     Returns true if the panel is expanded.
public  voidonBaseEvent(BaseEvent be)
    
protected  voidonCollapse()
    
protected  voidonExpand()
    
protected  voidonRender()
    
protected  voidonResize(int width, int height)
    
public  voidremoveMouseListener(MouseListener listener)
     Removes a previously added listener interface.
public  voidsetAnimateCollapse(boolean animateCollapse)
     Sets the animation state.
public  voidsetCollapse(boolean collapse)
     Sets whether the panel can be collapsed.
public  voidsetExpanded(boolean expanded)
     Sets the panel's expand state.
public  voidsetFrame(boolean frame)
     Sets whether the panel is framed.
public  voidsetIconStyle(String style)
     Sets the panel's icon style.
public  voidsetPadding(int padding)
     Sets the padding of the content element.
public  voidsetStyle(int style)
     Sets the panel's style.
public  voidsetText(String text)
     Sets the header's text.
public  voidsetTitleCollapse(boolean enabled)
     Sets the title collapse state.
public  voidsetToolBar(ToolBar toolBar)
     Sets the panel's tool bar.

Field Detail
body
protected SimplePanel body(Code)



header
protected Item header(Code)




Constructor Detail
ContentPanel
public ContentPanel()(Code)
Creates a new content panel with a header.



ContentPanel
public ContentPanel(int style)(Code)
Creates a new content panel.
Parameters:
  style - the style information



ContentPanel
public ContentPanel(int style, String baseStyle)(Code)
Creates a new content panel.
Parameters:
  style - the style information
Parameters:
  baseStyle - an alternate base style.




Method Detail
addMouseListener
public void addMouseListener(MouseListener listener)(Code)
Adds a listener interface to receive mouse events.
Parameters:
  listener - the listener interface to add



afterCollapse
protected void afterCollapse()(Code)



afterExpand
protected void afterExpand()(Code)



afterRender
protected void afterRender()(Code)



doAttachChildren
protected void doAttachChildren()(Code)



doDetachChildren
protected void doDetachChildren()(Code)



getAnimateCollapse
public boolean getAnimateCollapse()(Code)
Returns true if animations are enabled. the animation state



getCollapse
public boolean getCollapse()(Code)
Returns true if the panel can be collapsed. the collapse state



getFrame
public boolean getFrame()(Code)
true if the panel is framed.



getHeader
public Item getHeader()(Code)
Returns the panel's header widget. the header



getLayoutTarget
public Element getLayoutTarget()(Code)



getText
public String getText()(Code)
Returns the panel's title text. the text



getTitleCollapse
public boolean getTitleCollapse()(Code)
Returns true if clicks on the header will expand and collapse the panel. the title collpase state



getToolBar
public ToolBar getToolBar()(Code)
Returns the panel's tool bar. the tool bar or null



isExpanded
public boolean isExpanded()(Code)
Returns true if the panel is expanded. the expand state



onBaseEvent
public void onBaseEvent(BaseEvent be)(Code)



onCollapse
protected void onCollapse()(Code)



onExpand
protected void onExpand()(Code)



onRender
protected void onRender()(Code)



onResize
protected void onResize(int width, int height)(Code)



removeMouseListener
public void removeMouseListener(MouseListener listener)(Code)
Removes a previously added listener interface.
Parameters:
  listener - the listener interface to remove



setAnimateCollapse
public void setAnimateCollapse(boolean animateCollapse)(Code)
Sets the animation state. When true, the expanding and collpasing of the panel will be animated. Default value is true.
Parameters:
  animateCollapse - true if enabled



setCollapse
public void setCollapse(boolean collapse)(Code)
Sets whether the panel can be collapsed. Default value is true. Has no effect if called after the panel is rendered.
Parameters:
  collapse - true to enable collapsing



setExpanded
public void setExpanded(boolean expanded)(Code)
Sets the panel's expand state.
Parameters:
  expanded - true true to expand



setFrame
public void setFrame(boolean frame)(Code)
Sets whether the panel is framed. Default value is false. Has no effect if called after the panel is rendered.
Parameters:
  frame - the frame state



setIconStyle
public void setIconStyle(String style)(Code)
Sets the panel's icon style.
Parameters:
  style - the icon style



setPadding
public void setPadding(int padding)(Code)
Sets the padding of the content element.
Parameters:
  padding - the new padding



setStyle
public void setStyle(int style)(Code)
Sets the panel's style. Has no effect if called after the panel is rendered.
Parameters:
  style - the style



setText
public void setText(String text)(Code)
Sets the header's text. Does nothing if the header is not visible.
Parameters:
  text - the new header text



setTitleCollapse
public void setTitleCollapse(boolean enabled)(Code)
Sets the title collapse state. When true, the panel will be expanded and collapsed when clicking on the header. Defualt value is false.
Parameters:
  enabled - true to enable title collapsing



setToolBar
public void setToolBar(ToolBar toolBar)(Code)
Sets the panel's tool bar.
Parameters:
  toolBar - the toolbar



Fields inherited from net.mygwt.ui.client.widget.WidgetContainer
protected boolean disableLayout(Code)(Java Doc)
protected Size lastSize(Code)(Java Doc)
protected Layout layout(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.WidgetContainer
public void add(Widget widget)(Code)(Java Doc)
public void add(Widget widget, Object layoutData)(Code)(Java Doc)
public void addText(String text)(Code)(Java Doc)
public Layout getLayout()(Code)(Java Doc)
public Object getLayoutData(Widget widget)(Code)(Java Doc)
public boolean getLayoutOnChange()(Code)(Java Doc)
public Element getLayoutTarget()(Code)(Java Doc)
public boolean getMonitorResize()(Code)(Java Doc)
public int indexOf(Widget widget)(Code)(Java Doc)
public void insert(Widget widget, int index)(Code)(Java Doc)
public void insert(Widget widget, int index, Object layoutData)(Code)(Java Doc)
public void layout()(Code)(Java Doc)
public void layout(boolean force)(Code)(Java Doc)
protected void onAttach()(Code)(Java Doc)
protected void onLayout()(Code)(Java Doc)
protected void onRender()(Code)(Java Doc)
protected void onResize(int width, int height)(Code)(Java Doc)
public boolean remove(Widget widget)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public void removeLayoutData(Widget widget)(Code)(Java Doc)
public void setLayout(Layout layout)(Code)(Java Doc)
public void setLayoutData(Widget widget, Object layoutData)(Code)(Java Doc)
public void setLayoutOnChange(boolean layoutOnChange)(Code)(Java Doc)
public void setMonitorResize(boolean monitorResize)(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.ScrollContainer
public void addScrollListener(ScrollListener listener)(Code)(Java Doc)
protected void afterRender()(Code)(Java Doc)
public void ensureVisible(Widget child)(Code)(Java Doc)
public int getHScrollPosition()(Code)(Java Doc)
protected Element getLayoutTarget()(Code)(Java Doc)
public boolean getScrollEnabled()(Code)(Java Doc)
public int getVScrollPosition()(Code)(Java Doc)
public void removeScrollListener(ScrollListener listener)(Code)(Java Doc)
public void setAlwaysShowScrollBars(boolean alwaysShow)(Code)(Java Doc)
public void setHScrollPosition(int position)(Code)(Java Doc)
public void setScrollEnabled(boolean scroll)(Code)(Java Doc)
public void setVScrollPosition(int position)(Code)(Java Doc)

Fields inherited from net.mygwt.ui.client.widget.Container
protected boolean attachChildren(Code)(Java Doc)
protected List items(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.Container
final protected void adopt(Widget child)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void doAttachChildren()(Code)(Java Doc)
protected void doDetachChildren()(Code)(Java Doc)
public Widget findWidget(Element elem)(Code)(Java Doc)
public boolean getAutoDispose()(Code)(Java Doc)
public Widget getWidget(int index)(Code)(Java Doc)
public int getWidgetCount()(Code)(Java Doc)
public Iterator iterator()(Code)(Java Doc)
final protected void orphan(Widget child)(Code)(Java Doc)
public boolean remove(Widget widget)(Code)(Java Doc)
public void setAutoDispose(boolean autoDispose)(Code)(Java Doc)

Fields inherited from net.mygwt.ui.client.widget.Component
protected Rectangle attachBounds(Code)(Java Doc)
protected String baseStyle(Code)(Java Doc)
protected Menu contextMenu(Code)(Java Doc)
protected String disabledStyle(Code)(Java Doc)
protected Element focusElem(Code)(Java Doc)
protected boolean rendereddisposed(Code)(Java Doc)
protected int style(Code)(Java Doc)

Methods inherited from net.mygwt.ui.client.widget.Component
public void addListener(int eventType, Listener listener)(Code)(Java Doc)
public void addStyleName(String style)(Code)(Java Doc)
public void addWidgetListener(WidgetListener listener)(Code)(Java Doc)
protected void afterRender()(Code)(Java Doc)
protected Component blur()(Code)(Java Doc)
public void disable()(Code)(Java Doc)
protected void disableContextMenu(boolean disable)(Code)(Java Doc)
public void disableTextSelection(boolean disable)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
public void enable()(Code)(Java Doc)
public void enableEvents(boolean enable)(Code)(Java Doc)
public boolean fireEvent(int type)(Code)(Java Doc)
public boolean fireEvent(int type, BaseEvent be)(Code)(Java Doc)
public boolean fireEvent(int eventType, Widget widget, Widget item)(Code)(Java Doc)
public boolean fireEvent(int eventType, Widget widget, Widget item, int index)(Code)(Java Doc)
public Component focus()(Code)(Java Doc)
public Rectangle getBounds()(Code)(Java Doc)
public Rectangle getBounds(boolean content)(Code)(Java Doc)
protected Menu getContextMenu()(Code)(Java Doc)
public Object getData()(Code)(Java Doc)
public Object getData(String key)(Code)(Java Doc)
public String getDisabledStyle()(Code)(Java Doc)
public Element getElement()(Code)(Java Doc)
protected Element getFocusElement()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public int getHeight(boolean content)(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public ToolTip getToolTip()(Code)(Java Doc)
public int getWidth()(Code)(Java Doc)
public int getWidth(boolean content)(Code)(Java Doc)
public void hide()(Code)(Java Doc)
public boolean isDisposed()(Code)(Java Doc)
public boolean isEnabled()(Code)(Java Doc)
public boolean isRendered()(Code)(Java Doc)
public boolean isVisible()(Code)(Java Doc)
protected void onAttach()(Code)(Java Doc)
public void onBaseEvent(BaseEvent be)(Code)(Java Doc)
public void onBrowserEvent(Event event)(Code)(Java Doc)
protected void onDestroy()(Code)(Java Doc)
protected void onDetach()(Code)(Java Doc)
protected void onDisable()(Code)(Java Doc)
protected void onEnable()(Code)(Java Doc)
protected void onHide()(Code)(Java Doc)
protected void onHideContextMenu()(Code)(Java Doc)
protected void onLoad()(Code)(Java Doc)
protected void onRender()(Code)(Java Doc)
protected void onResize(int width, int height)(Code)(Java Doc)
protected void onRightClick(BaseEvent be)(Code)(Java Doc)
protected void onShow()(Code)(Java Doc)
protected void onShowContextMenu(int x, int y)(Code)(Java Doc)
public void recalculate()(Code)(Java Doc)
public void removeAllListeners()(Code)(Java Doc)
public void removeFromParent()(Code)(Java Doc)
public void removeListener(int eventType, Listener listener)(Code)(Java Doc)
public void removeStyleName(String style)(Code)(Java Doc)
public void removeWidgetListener(WidgetListener listener)(Code)(Java Doc)
protected void render()(Code)(Java Doc)
public void setBorders(boolean show)(Code)(Java Doc)
public void setBounds(int x, int y, int width, int height)(Code)(Java Doc)
public void setBounds(Rectangle rect)(Code)(Java Doc)
protected void setContextMenu(Menu menu)(Code)(Java Doc)
public void setData(Object data)(Code)(Java Doc)
public void setData(String key, Object data)(Code)(Java Doc)
public void setDisabledStyle(String style)(Code)(Java Doc)
public void setElement(Element elem)(Code)(Java Doc)
public void setEnabled(boolean enabled)(Code)(Java Doc)
public void setHeight(int height)(Code)(Java Doc)
public void setHeight(String height)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setIntStyleAttribute(String attr, int value)(Code)(Java Doc)
public void setPagePosition(int x, int y)(Code)(Java Doc)
public void setPixelSize(int width, int height)(Code)(Java Doc)
public void setSize(int width, int height)(Code)(Java Doc)
public void setSize(String width, String height)(Code)(Java Doc)
public void setStyleAttribute(String attr, String value)(Code)(Java Doc)
public void setStyleName(String style)(Code)(Java Doc)
public void setTitle(String title)(Code)(Java Doc)
public void setToolTip(String text)(Code)(Java Doc)
public void setToolTip(String title, String text)(Code)(Java Doc)
public void setVisible(boolean visible)(Code)(Java Doc)
public void setWidth(int width)(Code)(Java Doc)
public void setWidth(String width)(Code)(Java Doc)
public void show()(Code)(Java Doc)
public void unhook(int type, EventListener listener)(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.