Java Doc for Shell.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.Shell

All known Subclasses:   net.mygwt.ui.client.widget.Dialog,
Shell
public class Shell extends Component implements HasText(Code)
A Shell is a window with a header and content area. If the shell locations is not set either by calling Shell.setPagePosition or #setBounds it will be centered when opened.

Shells must have a pixel width. If a width is not set the default width will be used. Default width is 250. If a height is not specified it will be determined by the size of the content.

Styles:
CLOSE, RESIZE, MODAL, AUTO_HIDE

Events:
Activate : (widget)
Fires after a shell is activated (receives focus).
  • widget : this
Deactivate : (widget)
Fires after a shell is deactivated.
  • widget : this
BeforeClose : (widget)
Fires before a shell is closed. Listeners can set the doit field to false to cancel the operation.
  • widget : this
Close : (widget)
Fires after a shell is closed.
  • widget : this
BeforeShow : (widget)
Fires before the shell is opened. Listeners can set the doit field to false to cancel the operation.
  • widget : this
Show : (widget)
Fires after the shell is opened.
  • widget : this
KeyPress : (widget, event)
Fires after a key is pressed.
  • widget : this
  • event : event
CSS Styles:
.my-shell { the shell itself }
.my-shell-hdr { header }
.my-shell-hdr-text { header text }
.my-shell-body { body }
.my-shell-plain { add for plain content area }


Field Summary
protected  ElementbodyWrapperbodyWrapperInnerbodyElemcontentElemfooterElem
    
protected  WidgetContainercontent
    
protected  Shadowshadow
    

Constructor Summary
public  Shell()
     Creates a new window that is initialy invisible.
public  Shell(int style)
     Creates a new shell instance.

Method Summary
protected  voidactivateShell(Event event)
    
public  voidaddShellListener(ShellListener listener)
     Adds a listener interface to receive shell events.
protected  voidafterHide()
    
protected  voidafterShow()
    
public  voidcenter()
     Centers the shell.
public  voidclose()
     Closes the shell.
protected  voidcreateContent(WidgetContainer container)
     Subclasses should override and add content to container.
protected  voiddoAttachChildren()
    
protected  voiddoDetachChildren()
    
public  booleangetAnimate()
     Returns true if animations are enabled.
public  intgetAnimateDuration()
     Returns the animation duration.
public  booleangetAutoHide()
     Returns true if auto hide is enabled.
public  booleangetBlinkModal()
     Returns the blink modal state.
public  WidgetContainergetContent()
     Returns the content panel of the shell.
public  DraggablegetDraggable()
     Returns the shell's draggable instance.
public  ItemgetHeader()
     Returns the shell's header.
public  booleangetKeepLastBounds()
     Returns true if the shell will remember its last postion.
public  intgetMinimumHeight()
     Returns the minimum height.
public  intgetMinimumWidth()
     Returns the minimum width.
public  intgetShadowPosition()
     Returns the shadow position.
public  StringgetText()
     Returns the shell's header text.
public  voidhide()
    
public  booleanisDragEnabled()
     Returns true if dragging is enabled.
public  voidonBrowserEvent(Event event)
    
protected  voidonKeyPress(Event event)
    
protected  voidonRender()
    
protected  voidonResize(int width, int height)
    
public  voidopen()
     Opens the shell.
public  voidremoveShellListener(ShellListener listener)
     Removes a previously added listener interface.
public  voidsetAnimate(boolean animate)
     Specifies if the the open and closing of the shell should be animated.
public  voidsetAnimateDuration(int animateDuration)
     Specifies the length of the fade effect.
public  voidsetAutoHide(boolean autoHide)
     Sets the auto hide state.
public  voidsetBlinkModal(boolean blinkModal)
     Specifies if the shell should blink when clicks occur outside it's boundaries.
public  voidsetDragEnabled(boolean enabled)
     Enables and disables shell dragging.
public  voidsetIconStyle(String style)
     Sets the shell's header icon.
public  voidsetKeepLastBounds(boolean keepLastBounds)
     Specifies if the shell should be returned to the same size and location when it was last closed.
public  voidsetMinimumHeight(int minimumHeight)
     Specifies the minimum height.
public  voidsetMinimumSize(int width, int height)
     Sets the shell's minimum size to the size specified by the arguments.
public  voidsetMinimumWidth(int minimumWidth)
     Specifies the minimum width.
public  voidsetPagePosition(int x, int y)
     Sets the shell's location based on page coordinates.
public  voidsetResizeEnabled(boolean enabled)
     Enables and disables shell resizing.
public  voidsetShadowPosition(int shadowPosition)
     Specifies the shadow position.
public  voidsetStyle(int style)
     Sets the shell's style.
public  voidsetText(String text)
     Sets the shell's header text.
public  FramesetURL(String url)
     Sets a url for the content area of the shell.
public  voidshow()
    

Field Detail
bodyWrapperbodyWrapperInnerbodyElemcontentElemfooterElem
protected Element bodyWrapperbodyWrapperInnerbodyElemcontentElemfooterElem(Code)



content
protected WidgetContainer content(Code)



shadow
protected Shadow shadow(Code)




Constructor Detail
Shell
public Shell()(Code)
Creates a new window that is initialy invisible. A new shell is created with default style settings.

Default styles: CLOSE, RESIZE.




Shell
public Shell(int style)(Code)
Creates a new shell instance.
Parameters:
  style - the style information




Method Detail
activateShell
protected void activateShell(Event event)(Code)



addShellListener
public void addShellListener(ShellListener listener)(Code)
Adds a listener interface to receive shell events.
Parameters:
  listener - the listener to be added



afterHide
protected void afterHide()(Code)



afterShow
protected void afterShow()(Code)



center
public void center()(Code)
Centers the shell.



close
public void close()(Code)
Closes the shell.



createContent
protected void createContent(WidgetContainer container)(Code)
Subclasses should override and add content to container.
Parameters:
  container - the content container



doAttachChildren
protected void doAttachChildren()(Code)



doDetachChildren
protected void doDetachChildren()(Code)



getAnimate
public boolean getAnimate()(Code)
Returns true if animations are enabled. the animate state



getAnimateDuration
public int getAnimateDuration()(Code)
Returns the animation duration. the duration in milliseconds



getAutoHide
public boolean getAutoHide()(Code)
Returns true if auto hide is enabled. the auto hide state



getBlinkModal
public boolean getBlinkModal()(Code)
Returns the blink modal state. true if blinking is enabled



getContent
public WidgetContainer getContent()(Code)
Returns the content panel of the shell. the panel



getDraggable
public Draggable getDraggable()(Code)
Returns the shell's draggable instance. This method will cause the shell to be rendered. the draggable instance



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



getKeepLastBounds
public boolean getKeepLastBounds()(Code)
Returns true if the shell will remember its last postion. the keep last bounds state



getMinimumHeight
public int getMinimumHeight()(Code)
Returns the minimum height. the minimu height



getMinimumWidth
public int getMinimumWidth()(Code)
Returns the minimum width. the minimum width



getShadowPosition
public int getShadowPosition()(Code)
Returns the shadow position. the shadow position



getText
public String getText()(Code)
Returns the shell's header text. the text



hide
public void hide()(Code)



isDragEnabled
public boolean isDragEnabled()(Code)
Returns true if dragging is enabled. the drag enabled state



onBrowserEvent
public void onBrowserEvent(Event event)(Code)



onKeyPress
protected void onKeyPress(Event event)(Code)



onRender
protected void onRender()(Code)



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



open
public void open()(Code)
Opens the shell.



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



setAnimate
public void setAnimate(boolean animate)(Code)
Specifies if the the open and closing of the shell should be animated. Default value is false.
Parameters:
  animate - true to enable animations



setAnimateDuration
public void setAnimateDuration(int animateDuration)(Code)
Specifies the length of the fade effect. Default value is 300;
Parameters:
  animateDuration - the duration in milliseconds



setAutoHide
public void setAutoHide(boolean autoHide)(Code)
Sets the auto hide state. Has no effect if called after the
Parameters:
  autoHide - true to auto hide



setBlinkModal
public void setBlinkModal(boolean blinkModal)(Code)
Specifies if the shell should blink when clicks occur outside it's boundaries. When true, close() should not be called within any button listeners. Default value is true.
Parameters:
  blinkModal - true to enable blinking



setDragEnabled
public void setDragEnabled(boolean enabled)(Code)
Enables and disables shell dragging.
Parameters:
  enabled - the drag enabled state



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



setKeepLastBounds
public void setKeepLastBounds(boolean keepLastBounds)(Code)
Specifies if the shell should be returned to the same size and location when it was last closed. Default value is true.
Parameters:
  keepLastBounds - true to enable



setMinimumHeight
public void setMinimumHeight(int minimumHeight)(Code)
Specifies the minimum height. Default value is 100;
Parameters:
  minimumHeight - the minimum height



setMinimumSize
public void setMinimumSize(int width, int height)(Code)
Sets the shell's minimum size to the size specified by the arguments.
Parameters:
  width - the minimum width
Parameters:
  height - the minimum height



setMinimumWidth
public void setMinimumWidth(int minimumWidth)(Code)
Specifies the minimum width. Default value is 200.
Parameters:
  minimumWidth - the minium width



setPagePosition
public void setPagePosition(int x, int y)(Code)
Sets the shell's location based on page coordinates.
Parameters:
  x - the x coordinate
Parameters:
  y - the y coordinate



setResizeEnabled
public void setResizeEnabled(boolean enabled)(Code)
Enables and disables shell resizing. Only applies to shell's with a RESIZE style. Does nothing if called before shell is rendered.
Parameters:
  enabled - the resize enabled state



setShadowPosition
public void setShadowPosition(int shadowPosition)(Code)
Specifies the shadow position. Valid values are NONE, DROP, SIDES, FRAME. Default values is SIDES.
Parameters:
  shadowPosition - the shadow position



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



setText
public void setText(String text)(Code)
Sets the shell's header text.
Parameters:
  text - the text



setURL
public Frame setURL(String url)(Code)
Sets a url for the content area of the shell.
Parameters:
  url - the url the frame widget



show
public void show()(Code)



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.