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

Popup
public class Popup extends Component implements EventPreview(Code)
A shadow panel that can "pop up" over other widgets. It overlays the browser's client area (and any previously-created popups).
Events:
BeforeOpen : (widget)
Fires before the popup is displayed. Listeners can set the doit field to false to cancel the action.
  • widget : this
Open : (widget)
Fires after a popup is opened.
  • widget : this
BeforeClose : (widget)
Fires before the popup is closed. Listeners can set the doit field to false to cancel the action.
  • widget : this
Close : (widget)
Fires after a popup is closed.
  • widget : this
CSS:
.my-popup (the popup itself)



Constructor Summary
public  Popup()
     Creates a new popup panel.
public  Popup(boolean autoHide)
     Creates an new popup panel.

Method Summary
protected  voidafterHide()
    
protected  voidafterShow()
    
public  voidcenter()
     Centers the panel within the viewport.
public  booleangetAnimate()
     Returns true if animations are enabled.
public  booleangetAutoFocus()
     Returns true if auto focus is enabled.
public  booleangetAutoHide()
     Returns true if auto hide is enabled.
public  booleangetConstrainViewport()
     Returns true if the popup will be constrained to the viewport.
public  intgetDuration()
     Returns the animation duration.
public  booleangetEventPreview()
     Returns true if event preview is enabled.
public  ListgetIgnoreList()
     Any elements added to this list will be ignored when auto close is enabled.
public  booleangetShadow()
     Returns true if the shadow is enabled.
public  intgetXOffset()
     Returns the x offset.
public  intgetYOffset()
     Returns the y offset.
public  voidhide()
     Hides the popup.
public  booleanisVisible()
    
protected  booleanonAutoHide(Event event)
     Subclasses may override to cancel the close from an auto hide.
public  booleanonEventPreview(Event event)
    
protected  voidonKeyPress(BaseEvent be)
    
protected  voidonRender()
    
protected  voidonShowPopup()
    
public  voidsetAnimate(boolean animate)
     Specifies if the hiding and showing of the panel should be animated.
public  voidsetAutoFocus(boolean autoFocus)
     Specifies if focus should be set on the popup when displayed.
public  voidsetAutoHide(boolean autoHide)
     Sets the auto hide state.
public  voidsetConstrainViewport(boolean constrainViewport)
     Specifies if the popup location should be forced to the viewport area.
public  voidsetDuration(int duration)
     Sets the length of the fade effect in milliseconds.
public  voidsetEventPreview(boolean eventPreview)
     Sets whether event preview should be enabled when opening the popup.
public  voidsetShadow(boolean show)
     Sets whether the shadow should be displayed.
public  voidsetWidget(Widget widget)
     Sets the popup's content.
public  voidsetXOffset(int xOffset)
     Sets the x offset.
public  voidsetYOffset(int yOffset)
     Sets the y offset.
public  voidshow()
     Displays the popup.
public  voidshow(Element elem, String pos)
     Displays the popup.
public  voidshow(Element elem, String pos, int[] offsets)
     Displays the popup.
public  voidshow(int x, int y)
     Shows the popup at the specified location.
public  voidshow(Widget widget)
     Displays the popup aligned to the bottom left of the widget.


Constructor Detail
Popup
public Popup()(Code)
Creates a new popup panel.



Popup
public Popup(boolean autoHide)(Code)
Creates an new popup panel.
Parameters:
  autoHide - true to hide if "click" occurs outside ofthe popup




Method Detail
afterHide
protected void afterHide()(Code)



afterShow
protected void afterShow()(Code)



center
public void center()(Code)
Centers the panel within the viewport.



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



getAutoFocus
public boolean getAutoFocus()(Code)
Returns true if auto focus is enabled. the auto focus state



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



getConstrainViewport
public boolean getConstrainViewport()(Code)
Returns true if the popup will be constrained to the viewport. the constrain viewport state



getDuration
public int getDuration()(Code)
Returns the animation duration. the duration



getEventPreview
public boolean getEventPreview()(Code)
Returns true if event preview is enabled. the event preview state



getIgnoreList
public List getIgnoreList()(Code)
Any elements added to this list will be ignored when auto close is enabled. the list of ignored elements



getShadow
public boolean getShadow()(Code)
Returns true if the shadow is enabled. the show shadow state



getXOffset
public int getXOffset()(Code)
Returns the x offset. the x offset



getYOffset
public int getYOffset()(Code)
Returns the y offset. the offset



hide
public void hide()(Code)
Hides the popup. This has no effect if it is not currently visible.



isVisible
public boolean isVisible()(Code)



onAutoHide
protected boolean onAutoHide(Event event)(Code)
Subclasses may override to cancel the close from an auto hide.
Parameters:
  event - the current event true to allow close, false to cancel



onEventPreview
public boolean onEventPreview(Event event)(Code)



onKeyPress
protected void onKeyPress(BaseEvent be)(Code)



onRender
protected void onRender()(Code)



onShowPopup
protected void onShowPopup()(Code)



setAnimate
public void setAnimate(boolean animate)(Code)
Specifies if the hiding and showing of the panel should be animated. Default value is true.
Parameters:
  animate - true to enable animations



setAutoFocus
public void setAutoFocus(boolean autoFocus)(Code)
Specifies if focus should be set on the popup when displayed. Default value is true.
Parameters:
  autoFocus - true to enable auto focus



setAutoHide
public void setAutoHide(boolean autoHide)(Code)
Sets the auto hide state. When auto hide is enabled, the popup is closed when a click occurs outside the popup's bounds.
Parameters:
  autoHide - true to enable auto hide



setConstrainViewport
public void setConstrainViewport(boolean constrainViewport)(Code)
Specifies if the popup location should be forced to the viewport area. Default value is true.
Parameters:
  constrainViewport - true to enable



setDuration
public void setDuration(int duration)(Code)
Sets the length of the fade effect in milliseconds. Default value is 200.
Parameters:
  duration - the duration in millisecond



setEventPreview
public void setEventPreview(boolean eventPreview)(Code)
Sets whether event preview should be enabled when opening the popup. Default value is true.
Parameters:
  eventPreview - the event preview state



setShadow
public void setShadow(boolean show)(Code)
Sets whether the shadow should be displayed. Defualt value is false.
Parameters:
  show - true to show the shadow



setWidget
public void setWidget(Widget widget)(Code)
Sets the popup's content.
Parameters:
  widget - the content widget



setXOffset
public void setXOffset(int xOffset)(Code)
Sets the x offset. Only applies when constrainViewerport is true. Default value is 10.
Parameters:
  xOffset - the x offset



setYOffset
public void setYOffset(int yOffset)(Code)
Sets the y offset. Only applies when constrainViewerport is true. Default value is 15.
Parameters:
  yOffset - the y offset



show
public void show()(Code)
Displays the popup. It must have a child widget before this method is called.



show
public void show(Element elem, String pos)(Code)
Displays the popup.
Parameters:
  elem - the element to align to
Parameters:
  pos - the position



show
public void show(Element elem, String pos, int[] offsets)(Code)
Displays the popup.
Parameters:
  elem - the element to align to
Parameters:
  pos - the postion
Parameters:
  offsets - the offsets



show
public void show(int x, int y)(Code)
Shows the popup at the specified location.
Parameters:
  x - the x coordinate
Parameters:
  y - the y coordinate



show
public void show(Widget widget)(Code)
Displays the popup aligned to the bottom left of the widget. For exact control of popup position see MyDOM.alignTo .
Parameters:
  widget - the widget to use for alignment



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.