Java Doc for HtmlEditor.java in  » Ajax » gwtext-2.01 » com » gwtext » client » widgets » form » 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.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.gwtext.client.widgets.form.Field
   com.gwtext.client.widgets.form.HtmlEditor

HtmlEditor
public class HtmlEditor extends Field (Code)
Provides a lightweight HTML Editor component.

Note: The focus/blur and validation marking functionality inherited from Field is NOT supported by this editor.

An Editor is a sensitive component that can't be used in all spots standard fields can be used. Putting an Editor within any element that has display set to 'none' can cause problems in Safari and Firefox.

There can only be one HtmlEditor on a page at a time.




Constructor Summary
public  HtmlEditor(JavaScriptObject jsObj)
    
public  HtmlEditor()
    
public  HtmlEditor(String fieldLabel)
    
public  HtmlEditor(String fieldLabel, String name)
    
public  HtmlEditor(String fieldLabel, String name, int width)
    

Method Summary
native public  voidaddListener(HtmlEditorListener listener)
     Adds a HtmlEditor listener.
native protected  JavaScriptObjectcreate(JavaScriptObject jsObj)
    
native public  voidexecCmd(String cmd, String value)
     Executes a Midas editor command directly on the editor document.
protected  JavaScriptObjectgetConfigPrototype()
    
public  ToolbargetToolbar()
     Returns the editor's toolbar.
public  StringgetXType()
    
native public  voidinsertAtCursor(String text)
     Inserts the passed text at the current cursor position.
native public  voidrelayCmd(String cmd, String value)
     Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates.
public  voidsetCreateLinkText(String createLinkText)
     The default text for the create link prompt.
public  voidsetDefaultLinkValue(String defaultLinkValue)
     The default value for the create link prompt (defaults to http:/ /).
public  voidsetEnableAlignments(boolean enableAlignments)
     Enable the left, center, right alignment buttons (defaults to true).
public  voidsetEnableColors(boolean enableColors)
     Enable the fore/highlight color buttons (defaults to true).
public  voidsetEnableFont(boolean enableFont)
     Enable font selection.
public  voidsetEnableFontSize(boolean enableFontSize)
     Enable the increase/decrease font size buttons (defaults to true).
public  voidsetEnableLinks(boolean enableLinks)
     Enable the create link button.
public  voidsetEnableLists(boolean enableLists)
     Enable the bullet and numbered list buttons.
public  voidsetEnableSourceEdit(boolean enableSourceEdit)
     Enable the switch to source edit button.
public  voidsetFontFamilies(String[] fontFamilies)
     An array of available font families.
public  voidsetHeight(int height)
     Set the height of the HtmlEditor.
native public  voidtoggleSourceEdit(boolean sourceEdit)
     Toggles the editor between standard and source edit mode.


Constructor Detail
HtmlEditor
public HtmlEditor(JavaScriptObject jsObj)(Code)



HtmlEditor
public HtmlEditor()(Code)



HtmlEditor
public HtmlEditor(String fieldLabel)(Code)



HtmlEditor
public HtmlEditor(String fieldLabel, String name)(Code)



HtmlEditor
public HtmlEditor(String fieldLabel, String name, int width)(Code)




Method Detail
addListener
native public void addListener(HtmlEditorListener listener)(Code)
Adds a HtmlEditor listener.
Parameters:
  listener - the listener



create
native protected JavaScriptObject create(JavaScriptObject jsObj)(Code)



execCmd
native public void execCmd(String cmd, String value)(Code)
Executes a Midas editor command directly on the editor document. For visual commands, you should use relayCmd instead. This should only be called after the editor is initialized.
Parameters:
  cmd - the Midas command
Parameters:
  value - the value to pass to the command



getConfigPrototype
protected JavaScriptObject getConfigPrototype()(Code)



getToolbar
public Toolbar getToolbar()(Code)
Returns the editor's toolbar. This is only available after the editor has been rendered. toolbar



getXType
public String getXType()(Code)



insertAtCursor
native public void insertAtCursor(String text)(Code)
Inserts the passed text at the current cursor position. Note: the editor must be initialized and activated to insert text.
Parameters:
  text - the text to insert



relayCmd
native public void relayCmd(String cmd, String value)(Code)
Executes a Midas editor command on the editor document and performs necessary focus and toolbar updates. This should only be called after the editor is initialized.
Parameters:
  cmd - the Midas command
Parameters:
  value - the value to pass to the command



setCreateLinkText
public void setCreateLinkText(String createLinkText) throws IllegalStateException(Code)
The default text for the create link prompt.
Parameters:
  createLinkText - link text
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setDefaultLinkValue
public void setDefaultLinkValue(String defaultLinkValue) throws IllegalStateException(Code)
The default value for the create link prompt (defaults to http:/ /).
Parameters:
  defaultLinkValue - link value
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableAlignments
public void setEnableAlignments(boolean enableAlignments) throws IllegalStateException(Code)
Enable the left, center, right alignment buttons (defaults to true).
Parameters:
  enableAlignments - true to enable alignments
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableColors
public void setEnableColors(boolean enableColors) throws IllegalStateException(Code)
Enable the fore/highlight color buttons (defaults to true).
Parameters:
  enableColors - true to enable colors
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableFont
public void setEnableFont(boolean enableFont) throws IllegalStateException(Code)
Enable font selection. Not available in Safari. (defaults to true).
Parameters:
  enableFont - true to enable fonr selection
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableFontSize
public void setEnableFontSize(boolean enableFontSize) throws IllegalStateException(Code)
Enable the increase/decrease font size buttons (defaults to true).
Parameters:
  enableFontSize - true to enable font size buttons
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableLinks
public void setEnableLinks(boolean enableLinks) throws IllegalStateException(Code)
Enable the create link button. Not available in Safari. (defaults to true).
Parameters:
  enableLinks - true to enable links
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableLists
public void setEnableLists(boolean enableLists) throws IllegalStateException(Code)
Enable the bullet and numbered list buttons. Not available in Safari. (defaults to true).
Parameters:
  enableLists - true to enable lists
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setEnableSourceEdit
public void setEnableSourceEdit(boolean enableSourceEdit) throws IllegalStateException(Code)
Enable the switch to source edit button. Not available in Safari. (defaults to true)
Parameters:
  enableSourceEdit - true to enable source edit
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setFontFamilies
public void setFontFamilies(String[] fontFamilies) throws IllegalStateException(Code)
An array of available font families.
Parameters:
  fontFamilies - the font families
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



setHeight
public void setHeight(int height) throws IllegalStateException(Code)
Set the height of the HtmlEditor.
Parameters:
  height - the feild height
throws:
  IllegalStateException - this property cannot be changed after the Component has been rendered



toggleSourceEdit
native public void toggleSourceEdit(boolean sourceEdit)(Code)
Toggles the editor between standard and source edit mode.
Parameters:
  sourceEdit - true for source edit, false for standard



Methods inherited from com.gwtext.client.widgets.form.Field
native public void addListener(FieldListener listener)(Code)(Java Doc)
public void applyTo(String id)(Code)(Java Doc)
native public void applyTo(Element element)(Code)(Java Doc)
native public void clearInvalid()(Code)(Java Doc)
abstract protected JavaScriptObject create(JavaScriptObject config)(Code)(Java Doc)
public String getClearCls()(Code)(Java Doc)
public String getCls()(Code)(Java Doc)
public String getFocusClass()(Code)(Java Doc)
public String getInputType()(Code)(Java Doc)
public String getInvalidClass()(Code)(Java Doc)
public String getInvalidText()(Code)(Java Doc)
public String getLabelSeparator()(Code)(Java Doc)
public String getLabelStyle()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
native public String getRawValue()(Code)(Java Doc)
public int getTabindex()(Code)(Java Doc)
public int getValidationDelay()(Code)(Java Doc)
native public String getValueAsString()(Code)(Java Doc)
public String getXType()(Code)(Java Doc)
public boolean isAutoCreate()(Code)(Java Doc)
native public boolean isDirty()(Code)(Java Doc)
public boolean isHideLabel()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
native public boolean isValid()(Code)(Java Doc)
native public boolean isValid(boolean preventMark)(Code)(Java Doc)
public boolean isValidateOnBlur()(Code)(Java Doc)
native public void markInvalid(String message)(Code)(Java Doc)
native public void reset()(Code)(Java Doc)
public void setAutoCreate(boolean autoCreate) throws IllegalStateException(Code)(Java Doc)
public void setAutoCreate(DomConfig domConfig) throws IllegalStateException(Code)(Java Doc)
public void setClearCls(String clearCls) throws IllegalStateException(Code)(Java Doc)
public void setCls(String cls) throws IllegalStateException(Code)(Java Doc)
public void setDisabled(boolean disabled)(Code)(Java Doc)
public void setFieldClass(String fieldClass) throws IllegalStateException(Code)(Java Doc)
public void setFieldLabel(String fieldLabel)(Code)(Java Doc)
public void setFieldMsgTarget(String msgTarget) throws IllegalStateException(Code)(Java Doc)
public void setFocusClass(String focusClass)(Code)(Java Doc)
public void setHideLabel(boolean hideLabel) throws IllegalStateException(Code)(Java Doc)
public void setInputType(String inputType) throws IllegalStateException(Code)(Java Doc)
public void setInvalidClass(String invalidClass)(Code)(Java Doc)
public void setInvalidText(String invalidText)(Code)(Java Doc)
public void setLabel(String fieldLabel)(Code)(Java Doc)
public void setLabelSeparator(String labelSeparator) throws IllegalStateException(Code)(Java Doc)
public void setLabelStyle(String labelStyle) throws IllegalStateException(Code)(Java Doc)
public void setMsgFx(String msgFx)(Code)(Java Doc)
native public static void setMsgTarget(String msgTarget)(Code)(Java Doc)
public void setName(String name) throws IllegalStateException(Code)(Java Doc)
native public void setRawValue(String value)(Code)(Java Doc)
public void setReadOnly(boolean readOnly) throws IllegalStateException(Code)(Java Doc)
public void setTabIndex(int tabIndex) throws IllegalStateException(Code)(Java Doc)
public void setValidateOnBlur(boolean validateOnBlur)(Code)(Java Doc)
public void setValidationDelay(int validationDelay) throws IllegalStateException(Code)(Java Doc)
public void setValidationEvent(boolean validationEvent) throws IllegalStateException(Code)(Java Doc)
public void setValidationEvent(String validationEvent)(Code)(Java Doc)
public void setValue(String value)(Code)(Java Doc)
public void setWidth(int width) throws IllegalStateException(Code)(Java Doc)
public void setWidth(String width) throws IllegalStateException(Code)(Java Doc)
native public boolean validate()(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.