Java Doc for TextComponent.java in  » Ajax » NextApp-Echo2 » nextapp » echo2 » app » text » 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 » NextApp Echo2 » nextapp.echo2.app.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   nextapp.echo2.app.Component
      nextapp.echo2.app.text.TextComponent

All known Subclasses:   nextapp.echo2.app.TextArea,  nextapp.echo2.app.TextField,
TextComponent
abstract public class TextComponent extends Component (Code)
Abstract base class for text-entry components.


Field Summary
final public static  StringACTION_LISTENERS_CHANGED_PROPERTY
    
final public static  StringDOCUMENT_CHANGED_PROPERTY
    
final public static  StringINPUT_ACTION
    
final public static  StringPROPERTY_ACTION_COMMAND
    
final public static  StringPROPERTY_ALIGNMENT
    
final public static  StringPROPERTY_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_BORDER
    
final public static  StringPROPERTY_DISABLED_BACKGROUND
    
final public static  StringPROPERTY_DISABLED_BACKGROUND_IMAGE
    
final public static  StringPROPERTY_DISABLED_BORDER
    
final public static  StringPROPERTY_DISABLED_FONT
    
final public static  StringPROPERTY_DISABLED_FOREGROUND
    
final public static  StringPROPERTY_HEIGHT
    
final public static  StringPROPERTY_HORIZONTAL_SCROLL
    
final public static  StringPROPERTY_INSETS
    
final public static  StringPROPERTY_MAXIMUM_LENGTH
    
final public static  StringPROPERTY_TOOL_TIP_TEXT
    
final public static  StringPROPERTY_VERTICAL_SCROLL
    
final public static  StringPROPERTY_WIDTH
    
final public static  StringTEXT_CHANGED_PROPERTY
    

Constructor Summary
public  TextComponent(Document document)
     Creates a new TextComponent with the specified Document as its model.

Method Summary
public  voidaddActionListener(ActionListener l)
     Adds an ActionListener to the TextField.
public  StringgetActionCommand()
     Returns the action command which will be provided in ActionEvents fired by this TextField.
public  AlignmentgetAlignment()
     Returns the alignment of the text component.
public  FillImagegetBackgroundImage()
     Returns the default background image of the text component.
public  BordergetBorder()
     Returns the border of the text component.
public  ColorgetDisabledBackground()
     Returns the background color displayed when the text component is disabled.
public  FillImagegetDisabledBackgroundImage()
     Returns the background image displayed when the text component is disabled.
public  BordergetDisabledBorder()
     Returns the border displayed when the text component is disabled.
public  FontgetDisabledFont()
     Returns the font displayed when the text component is disabled.
public  ColorgetDisabledForeground()
     Returns the foreground color displayed when the text component is disabled.
public  DocumentgetDocument()
     Returns the model associated with this TextComponent.
public  ExtentgetHeight()
     Returns the height of the text component.
public  ExtentgetHorizontalScroll()
     Returns the horizontal scroll bar position.
public  InsetsgetInsets()
     Returns the insets of the text component.
public  intgetMaximumLength()
     Returns the maximum length (in characters) of the text which may be entered into the component.
public  StringgetText()
     Returns the text contained in the Document model of this text component.
public  StringgetToolTipText()
     Returns the tool tip text (displayed when the mouse cursor is hovered over the component).
public  ExtentgetVerticalScroll()
     Returns the vertical scroll bar position.
public  ExtentgetWidth()
     Returns the width of the text component.
public  booleanhasActionListeners()
     Determines the any ActionListeners are registered.
public  booleanisValidChild(Component component)
     This component does not support children.
public  voidprocessInput(String inputName, Object inputValue)
    
public  voidremoveActionListener(ActionListener l)
     Removes an ActionListener from the TextField.
public  voidsetActionCommand(String newValue)
     Sets the action command which will be provided in ActionEvents fired by this TextField.
public  voidsetAlignment(Alignment newValue)
     Sets the alignment of the text component.
public  voidsetBackgroundImage(FillImage newValue)
     Sets the default background image of the text component.
public  voidsetBorder(Border newValue)
     Sets the border of the text component.
public  voidsetDisabledBackground(Color newValue)
     Sets the background color displayed when the component is disabled.
public  voidsetDisabledBackgroundImage(FillImage newValue)
     Sets the background image displayed when the component is disabled.
public  voidsetDisabledBorder(Border newValue)
     Sets the border displayed when the component is disabled.
public  voidsetDisabledFont(Font newValue)
     Sets the font displayed when the component is disabled.
public  voidsetDisabledForeground(Color newValue)
     Sets the foreground color displayed when the component is disabled.
public  voidsetDocument(Document newValue)
     Sets the model associated with this TextComponent.
public  voidsetHeight(Extent newValue)
     Sets the height of the text component.
public  voidsetHorizontalScroll(Extent newValue)
     Sets the horizontal scroll bar position.
public  voidsetInsets(Insets newValue)
     Sets the insets of the text component.
public  voidsetMaximumLength(int newValue)
     Sets the maximum length (in characters) of the text which may be entered into the component.
public  voidsetText(String newValue)
     Sets the text of document model of this text component.
public  voidsetToolTipText(String newValue)
     Sets the tool tip text (displayed when the mouse cursor is hovered over the component).
public  voidsetVerticalScroll(Extent newValue)
     Sets the vertical scroll bar position.
public  voidsetWidth(Extent newValue)
     Sets the width of the text component.

Field Detail
ACTION_LISTENERS_CHANGED_PROPERTY
final public static String ACTION_LISTENERS_CHANGED_PROPERTY(Code)



DOCUMENT_CHANGED_PROPERTY
final public static String DOCUMENT_CHANGED_PROPERTY(Code)



INPUT_ACTION
final public static String INPUT_ACTION(Code)



PROPERTY_ACTION_COMMAND
final public static String PROPERTY_ACTION_COMMAND(Code)



PROPERTY_ALIGNMENT
final public static String PROPERTY_ALIGNMENT(Code)



PROPERTY_BACKGROUND_IMAGE
final public static String PROPERTY_BACKGROUND_IMAGE(Code)



PROPERTY_BORDER
final public static String PROPERTY_BORDER(Code)



PROPERTY_DISABLED_BACKGROUND
final public static String PROPERTY_DISABLED_BACKGROUND(Code)



PROPERTY_DISABLED_BACKGROUND_IMAGE
final public static String PROPERTY_DISABLED_BACKGROUND_IMAGE(Code)



PROPERTY_DISABLED_BORDER
final public static String PROPERTY_DISABLED_BORDER(Code)



PROPERTY_DISABLED_FONT
final public static String PROPERTY_DISABLED_FONT(Code)



PROPERTY_DISABLED_FOREGROUND
final public static String PROPERTY_DISABLED_FOREGROUND(Code)



PROPERTY_HEIGHT
final public static String PROPERTY_HEIGHT(Code)



PROPERTY_HORIZONTAL_SCROLL
final public static String PROPERTY_HORIZONTAL_SCROLL(Code)



PROPERTY_INSETS
final public static String PROPERTY_INSETS(Code)



PROPERTY_MAXIMUM_LENGTH
final public static String PROPERTY_MAXIMUM_LENGTH(Code)



PROPERTY_TOOL_TIP_TEXT
final public static String PROPERTY_TOOL_TIP_TEXT(Code)



PROPERTY_VERTICAL_SCROLL
final public static String PROPERTY_VERTICAL_SCROLL(Code)



PROPERTY_WIDTH
final public static String PROPERTY_WIDTH(Code)



TEXT_CHANGED_PROPERTY
final public static String TEXT_CHANGED_PROPERTY(Code)




Constructor Detail
TextComponent
public TextComponent(Document document)(Code)
Creates a new TextComponent with the specified Document as its model.
Parameters:
  document - the desired model




Method Detail
addActionListener
public void addActionListener(ActionListener l)(Code)
Adds an ActionListener to the TextField. The ActionListener will be invoked when the user presses the ENTER key in the field.
Parameters:
  l - the ActionListener to add



getActionCommand
public String getActionCommand()(Code)
Returns the action command which will be provided in ActionEvents fired by this TextField. the action command



getAlignment
public Alignment getAlignment()(Code)
Returns the alignment of the text component. the alignment



getBackgroundImage
public FillImage getBackgroundImage()(Code)
Returns the default background image of the text component. the background image



getBorder
public Border getBorder()(Code)
Returns the border of the text component. the border



getDisabledBackground
public Color getDisabledBackground()(Code)
Returns the background color displayed when the text component is disabled. the color



getDisabledBackgroundImage
public FillImage getDisabledBackgroundImage()(Code)
Returns the background image displayed when the text component is disabled. the background image



getDisabledBorder
public Border getDisabledBorder()(Code)
Returns the border displayed when the text component is disabled. the border



getDisabledFont
public Font getDisabledFont()(Code)
Returns the font displayed when the text component is disabled. the font



getDisabledForeground
public Color getDisabledForeground()(Code)
Returns the foreground color displayed when the text component is disabled. the color



getDocument
public Document getDocument()(Code)
Returns the model associated with this TextComponent. the model



getHeight
public Extent getHeight()(Code)
Returns the height of the text component. This property only supports Extents with fixed (i.e., not percent) units. the height



getHorizontalScroll
public Extent getHorizontalScroll()(Code)
Returns the horizontal scroll bar position. the scroll bar position



getInsets
public Insets getInsets()(Code)
Returns the insets of the text component. the insets



getMaximumLength
public int getMaximumLength()(Code)
Returns the maximum length (in characters) of the text which may be entered into the component. the maximum length, or -1 if no value is specified



getText
public String getText()(Code)
Returns the text contained in the Document model of this text component. the text contained in the document



getToolTipText
public String getToolTipText()(Code)
Returns the tool tip text (displayed when the mouse cursor is hovered over the component). the tool tip text



getVerticalScroll
public Extent getVerticalScroll()(Code)
Returns the vertical scroll bar position. the scroll bar position



getWidth
public Extent getWidth()(Code)
Returns the width of the text component. This property supports Extents with either fixed or percentage-based units. the width



hasActionListeners
public boolean hasActionListeners()(Code)
Determines the any ActionListeners are registered. true if any action listeners are registered



isValidChild
public boolean isValidChild(Component component)(Code)
This component does not support children.
See Also:   nextapp.echo2.app.Component.isValidChild(nextapp.echo2.app.Component)



processInput
public void processInput(String inputName, Object inputValue)(Code)

See Also:   nextapp.echo2.app.Component.processInput(java.lang.Stringjava.lang.Object)



removeActionListener
public void removeActionListener(ActionListener l)(Code)
Removes an ActionListener from the TextField.
Parameters:
  l - the ActionListener to remove



setActionCommand
public void setActionCommand(String newValue)(Code)
Sets the action command which will be provided in ActionEvents fired by this TextField.
Parameters:
  newValue - the new action command



setAlignment
public void setAlignment(Alignment newValue)(Code)
Sets the alignment of the text component.
Parameters:
  newValue - the new alignment



setBackgroundImage
public void setBackgroundImage(FillImage newValue)(Code)
Sets the default background image of the text component.
Parameters:
  newValue - the new background image



setBorder
public void setBorder(Border newValue)(Code)
Sets the border of the text component.
Parameters:
  newValue - the new border



setDisabledBackground
public void setDisabledBackground(Color newValue)(Code)
Sets the background color displayed when the component is disabled.
Parameters:
  newValue - the new Color



setDisabledBackgroundImage
public void setDisabledBackgroundImage(FillImage newValue)(Code)
Sets the background image displayed when the component is disabled.
Parameters:
  newValue - the new background image



setDisabledBorder
public void setDisabledBorder(Border newValue)(Code)
Sets the border displayed when the component is disabled.
Parameters:
  newValue - the new border



setDisabledFont
public void setDisabledFont(Font newValue)(Code)
Sets the font displayed when the component is disabled.
Parameters:
  newValue - the new Font



setDisabledForeground
public void setDisabledForeground(Color newValue)(Code)
Sets the foreground color displayed when the component is disabled.
Parameters:
  newValue - the new Color



setDocument
public void setDocument(Document newValue)(Code)
Sets the model associated with this TextComponent.
Parameters:
  newValue - the new model (may not be null)



setHeight
public void setHeight(Extent newValue)(Code)
Sets the height of the text component. This property only supports Extents with fixed (i.e., not percent) units.
Parameters:
  newValue - the new height



setHorizontalScroll
public void setHorizontalScroll(Extent newValue)(Code)
Sets the horizontal scroll bar position. The provided Extent value must be in pixel units.
Parameters:
  newValue - the new scroll bar position



setInsets
public void setInsets(Insets newValue)(Code)
Sets the insets of the text component.
Parameters:
  newValue - the new insets



setMaximumLength
public void setMaximumLength(int newValue)(Code)
Sets the maximum length (in characters) of the text which may be entered into the component.
Parameters:
  newValue - the new maximum length, or -1 if to specify an unlimited length



setText
public void setText(String newValue)(Code)
Sets the text of document model of this text component.
Parameters:
  newValue - the new text



setToolTipText
public void setToolTipText(String newValue)(Code)
Sets the tool tip text (displayed when the mouse cursor is hovered over the component).
Parameters:
  newValue - the new tool tip text



setVerticalScroll
public void setVerticalScroll(Extent newValue)(Code)
Sets the vertical scroll bar position. The provided Extent value must be in pixel units.
Parameters:
  newValue - the new scroll bar position



setWidth
public void setWidth(Extent newValue)(Code)
Sets the width of the text component. This property supports Extents with either fixed or percentage-based units.
Parameters:
  newValue - the new width



Fields inherited from nextapp.echo2.app.Component
final public static String CHILDREN_CHANGED_PROPERTY(Code)(Java Doc)
final public static String ENABLED_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY(Code)(Java Doc)
final public static String FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LAYOUT_DIRECTION_CHANGED_PROPERTY(Code)(Java Doc)
final public static String LOCALE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String PROPERTY_BACKGROUND(Code)(Java Doc)
final public static String PROPERTY_FONT(Code)(Java Doc)
final public static String PROPERTY_FOREGROUND(Code)(Java Doc)
final public static String PROPERTY_LAYOUT_DATA(Code)(Java Doc)
final public static String STYLE_CHANGED_PROPERTY(Code)(Java Doc)
final public static String STYLE_NAME_CHANGED_PROPERTY(Code)(Java Doc)
final public static String VISIBLE_CHANGED_PROPERTY(Code)(Java Doc)

Methods inherited from nextapp.echo2.app.Component
public void add(Component c)(Code)(Java Doc)
public void add(Component c, int n) throws IllegalChildException(Code)(Java Doc)
public void addPropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void dispose()(Code)(Java Doc)
protected void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code)(Java Doc)
public ApplicationInstance getApplicationInstance()(Code)(Java Doc)
public Color getBackground()(Code)(Java Doc)
final public Component getComponent(int n)(Code)(Java Doc)
final public Component getComponent(String id)(Code)(Java Doc)
final public int getComponentCount()(Code)(Java Doc)
final public Component[] getComponents()(Code)(Java Doc)
protected EventListenerList getEventListenerList()(Code)(Java Doc)
final public int getFocusTraversalIndex()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public Color getForeground()(Code)(Java Doc)
public String getId()(Code)(Java Doc)
final public Object getIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
public LayoutData getLayoutData()(Code)(Java Doc)
public LayoutDirection getLayoutDirection()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
final public Component getParent()(Code)(Java Doc)
final public Object getProperty(String propertyName)(Code)(Java Doc)
public String getRenderId()(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex)(Code)(Java Doc)
final public Object getRenderIndexedProperty(String propertyName, int propertyIndex, Object defaultValue)(Code)(Java Doc)
final public LayoutDirection getRenderLayoutDirection()(Code)(Java Doc)
final public Locale getRenderLocale()(Code)(Java Doc)
final public Object getRenderProperty(String propertyName)(Code)(Java Doc)
final public Object getRenderProperty(String propertyName, Object defaultValue)(Code)(Java Doc)
final public Style getStyle()(Code)(Java Doc)
final public String getStyleName()(Code)(Java Doc)
final public Component getVisibleComponent(int n)(Code)(Java Doc)
final public int getVisibleComponentCount()(Code)(Java Doc)
final public Component[] getVisibleComponents()(Code)(Java Doc)
protected boolean hasEventListenerList()(Code)(Java Doc)
final public int indexOf(Component c)(Code)(Java Doc)
public void init()(Code)(Java Doc)
final public boolean isAncestorOf(Component c)(Code)(Java Doc)
final public boolean isEnabled()(Code)(Java Doc)
public boolean isFocusTraversalParticipant()(Code)(Java Doc)
final public boolean isRegistered()(Code)(Java Doc)
final public boolean isRenderEnabled()(Code)(Java Doc)
final public boolean isRenderVisible()(Code)(Java Doc)
public boolean isValidChild(Component child)(Code)(Java Doc)
public boolean isValidParent(Component parent)(Code)(Java Doc)
final public boolean isVisible()(Code)(Java Doc)
public void processInput(String inputName, Object inputValue)(Code)(Java Doc)
public void remove(Component c)(Code)(Java Doc)
public void remove(int n)(Code)(Java Doc)
public void removeAll()(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener l)(Code)(Java Doc)
public void setBackground(Color newValue)(Code)(Java Doc)
public void setEnabled(boolean newValue)(Code)(Java Doc)
public void setFocusTraversalIndex(int newValue)(Code)(Java Doc)
public void setFocusTraversalParticipant(boolean newValue)(Code)(Java Doc)
public void setFont(Font newValue)(Code)(Java Doc)
public void setForeground(Color newValue)(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setIndexedProperty(String propertyName, int propertyIndex, Object newValue)(Code)(Java Doc)
public void setLayoutData(LayoutData newValue)(Code)(Java Doc)
public void setLayoutDirection(LayoutDirection newValue)(Code)(Java Doc)
public void setLocale(Locale newValue)(Code)(Java Doc)
public void setProperty(String propertyName, Object newValue)(Code)(Java Doc)
public void setRenderId(String renderId)(Code)(Java Doc)
public void setStyle(Style newValue)(Code)(Java Doc)
public void setStyleName(String newValue)(Code)(Java Doc)
public void setVisible(boolean newValue)(Code)(Java Doc)
public void validate()(Code)(Java Doc)
public boolean verifyInput(String inputName, Object inputValue)(Code)(Java Doc)
final public int visibleIndexOf(Component c)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.