Java Doc for EditControlField.java in  » IDE-Netbeans » uml » org » netbeans » modules » uml » ui » controls » editcontrol » 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 » IDE Netbeans » uml » org.netbeans.modules.uml.ui.controls.editcontrol 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.uml.ui.controls.editcontrol.EditControlField

EditControlField
public class EditControlField implements IEditControlField(Code)

author:
   sumitabhk



Constructor Summary
public  EditControlField()
    

Method Summary
public  booleancheckInertSeparator(int nChar, int absolutePosition)
    
public  longdump(String sPad)
    
public  booleangetDefault()
    
public  StringgetDefaultText()
     Returns the default text.
public  booleangetDeleted()
    
public  booleangetDeleted2()
    
public  StringgetDelimitor()
    
public  intgetEditKind()
     Retrieves this textfields edit kind, e.g.
public  booleangetEnabled()
     Is this field Enabled? An enabled field is not necessarily visible, depending on its visibility rules.
public  intgetFieldEndPos()
    
public  intgetFieldPos(int nStartPos)
    
public  intgetFieldStartPos()
    
public  FontgetFont()
     Returns the font used for rendering this textfield.
public  intgetLastTextStartPos()
    
public  StringgetLeadSeparator()
    
public  booleangetModified()
    
public  booleangetMultiplicity()
    
public  StringgetName()
    
public  ITranslatorgetOwnerTranslator()
     Returns the translator that contains this text field.
public  IPropertyDefinitiongetPropertyDefinition()
    
public  IPropertyElementgetPropertyElement()
    
public  booleangetRequired()
    
public  booleangetSelected()
     Is this field selected? If so it rendered in the current selected color scheme.
public  StringgetText()
     Returns the full text contained by this TextField.
public  ColorgetTextColor()
     The field's text color.
public  intgetTextEndPos()
    
public  intgetTextPos(int nStartPos)
     Returns the relative offsets of the beginning and end of the text represented by this textfield.
public  intgetTextStartPos()
    
public  StringgetToolTipText()
     The value of this text field's tooltip. pVal[out] Tooltip.
public  StringgetTrailSeparator()
    
public  ITranslatorgetTranslator()
     Returns the translator hosted by this text field.
public  VectorgetValidValues()
     Returns a list of valid values for a list or combo type edit kind.
public  StringgetVisibility()
    
public  booleangetVisible()
    
public  booleangetVisible2()
    
public  voidinit(String sText, Font font, Color textColor)
     A helper function to initialize a TextField with one function call.
public  booleanisDelimitor(int nChar)
     Is the character a delimitor for repeating fields?
Parameters:
  nChar - [in] The character to check.
Parameters:
  bIsDelimitor - [out,retval] TRUE if the field contains sub-fields and thecharacter is one of the delimitor characters.
public  booleanisLeadSeparator(int nChar)
     Determines if the character matches the leading separator, thereby becoming a "shortcut" to this field.
Parameters:
  nChar - [in] The character keycode.
Parameters:
  bIsSeparator - [out, retval] TRUE is the character is a separator.
public  booleanisTrailSeparator(int nChar)
     Determines if the character matches the trailing separator, thereby becoming a "shortcut" to this field.
Parameters:
  nChar - [in] The character keycode.
Parameters:
  bIsSeparator - [out, retval] TRUE is the character is a separator.
public  booleansave()
     Saves the textfield's value, if modified.
public  voidsetDefault(boolean newVal)
    
public  voidsetDefaultText(String newVal)
     Sets the default text.
public  longsetDefaultText()
     Fills the field's value with the default text.
public  voidsetDeleted(boolean value)
    
public  voidsetDelimitor(String newVal)
    
public  voidsetEnabled(boolean newVal)
     Is this field Enabled? An enabled field is not necessarily visible, depending on its visibility rules.
public  longsetFieldPos(int nStartPos)
     Sets the relative offsets for the beginning and end of the text represented by this textfield.
public  voidsetFont(Font newVal)
     Sets the font used for rendering this textfield.
public  voidsetLeadSeparator(String newVal)
    
public  voidsetModified(boolean bModified)
     Force's this field's modified status. bModified[in] The new modified value.
public  voidsetMultiplicity(boolean newVal)
    
public  voidsetOwnerTranslator(ITranslator pTranslator)
     Sets the translator that contains this text field.
public  voidsetPropertyDefinition(IPropertyDefinition pDef)
    
public  voidsetPropertyElement(IPropertyElement pEle)
    
public  voidsetPropertyElement2(IPropertyElement pEle)
    
public  voidsetRequired(boolean newVal)
    
public  voidsetSelected(boolean newVal)
     Is this field selected? If so it rendered in the current selected color scheme.
public  voidsetText(String newVal)
     Sets the text for this textfield.
public  voidsetTextColor(Color newVal)
     The field's text color.
public  longsetTextPos(int nStartPos)
     Sets the relative offsets for the beginning and end of the text represented by this textfield.
public  voidsetToolTipText(String newVal)
     The value of this text field's tooltip. pVal[in] Tooltip.
public  voidsetTrailSeparator(String newVal)
    
public  voidsetTranslator(ITranslator pTranslator)
     Sets the translator hosted by this text field.
public  voidsetVisibility(String newVal)
    
public  voidsetVisible(boolean bVisible)
     Forces the field to be visible.
public  voidsetVisible2(boolean bVisible)
     Forces the field to be visible AND sets its default text if the current field text is empty.
public  longupdate()
     Updates the field according to its visibility and validation rules.


Constructor Detail
EditControlField
public EditControlField()(Code)




Method Detail
checkInertSeparator
public boolean checkInertSeparator(int nChar, int absolutePosition)(Code)



dump
public long dump(String sPad)(Code)



getDefault
public boolean getDefault()(Code)



getDefaultText
public String getDefaultText()(Code)
Returns the default text. Default text is commonly used when no user-defined text has been entered, for example "un-named". The Default text is not displayed unless SetDefaultText() has been called. HRESULT



getDeleted
public boolean getDeleted()(Code)
Is this field deleted? HRESULT



getDeleted2
public boolean getDeleted2()(Code)
Is this field and all sub-fields deleted? HRESULT



getDelimitor
public String getDelimitor()(Code)



getEditKind
public int getEditKind()(Code)
Retrieves this textfields edit kind, e.g. default (stringified text), list (a list of values) or combo [out] The TextFieldEditKind HRESULT



getEnabled
public boolean getEnabled()(Code)
Is this field Enabled? An enabled field is not necessarily visible, depending on its visibility rules. However a disabled field is never visible. HRESULT



getFieldEndPos
public int getFieldEndPos()(Code)



getFieldPos
public int getFieldPos(int nStartPos)(Code)



getFieldStartPos
public int getFieldStartPos()(Code)



getFont
public Font getFont()(Code)
Returns the font used for rendering this textfield. HRESULT



getLastTextStartPos
public int getLastTextStartPos()(Code)



getLeadSeparator
public String getLeadSeparator()(Code)



getModified
public boolean getModified()(Code)
Has this field's text been modified? bModified[out] HRESULT



getMultiplicity
public boolean getMultiplicity()(Code)



getName
public String getName()(Code)



getOwnerTranslator
public ITranslator getOwnerTranslator()(Code)
Returns the translator that contains this text field. All text fields are owned by a translator, which provides navigation and other services to the edit control by manipulating its fields. HRESULT



getPropertyDefinition
public IPropertyDefinition getPropertyDefinition()(Code)



getPropertyElement
public IPropertyElement getPropertyElement()(Code)



getRequired
public boolean getRequired()(Code)



getSelected
public boolean getSelected()(Code)
Is this field selected? If so it rendered in the current selected color scheme. HRESULT



getText
public String getText()(Code)
Returns the full text contained by this TextField. HRESULT



getTextColor
public Color getTextColor()(Code)
The field's text color. HRESULT



getTextEndPos
public int getTextEndPos()(Code)



getTextPos
public int getTextPos(int nStartPos)(Code)
Returns the relative offsets of the beginning and end of the text represented by this textfield. The offsets are 0-base, relative to the 1st visible character in the edit control. If the field is not visible nEndPos == nStartPos. HRESULT



getTextStartPos
public int getTextStartPos()(Code)



getToolTipText
public String getToolTipText()(Code)
The value of this text field's tooltip. pVal[out] Tooltip. HRESULT



getTrailSeparator
public String getTrailSeparator()(Code)



getTranslator
public ITranslator getTranslator()(Code)
Returns the translator hosted by this text field. A text field normally wraps text, however in some cases it is desireable for the text field to contain a translator, which in turn hosts a number of "sub" text fields. HRESULT



getValidValues
public Vector getValidValues()(Code)
Returns a list of valid values for a list or combo type edit kind. The list must be released by the caller [out] A list of strings HRESULT



getVisibility
public String getVisibility()(Code)



getVisible
public boolean getVisible()(Code)
Is this field visible? DOES NOT SEARCH SUB_FIELDS! HRESULT



getVisible2
public boolean getVisible2()(Code)
Is this field both visible and NOT deleted? HRESULT



init
public void init(String sText, Font font, Color textColor)(Code)
A helper function to initialize a TextField with one function call. The modified flag is set to false. HRESULT



isDelimitor
public boolean isDelimitor(int nChar)(Code)
Is the character a delimitor for repeating fields?
Parameters:
  nChar - [in] The character to check.
Parameters:
  bIsDelimitor - [out,retval] TRUE if the field contains sub-fields and thecharacter is one of the delimitor characters. HRESULT



isLeadSeparator
public boolean isLeadSeparator(int nChar)(Code)
Determines if the character matches the leading separator, thereby becoming a "shortcut" to this field.
Parameters:
  nChar - [in] The character keycode.
Parameters:
  bIsSeparator - [out, retval] TRUE is the character is a separator. HRESULT



isTrailSeparator
public boolean isTrailSeparator(int nChar)(Code)
Determines if the character matches the trailing separator, thereby becoming a "shortcut" to this field.
Parameters:
  nChar - [in] The character keycode.
Parameters:
  bIsSeparator - [out, retval] TRUE is the character is a separator. HRESULT



save
public boolean save()(Code)
Saves the textfield's value, if modified.



setDefault
public void setDefault(boolean newVal)(Code)



setDefaultText
public void setDefaultText(String newVal)(Code)
Sets the default text. Default text is commonly used when no user-defined text has been entered, for example "un-named". The Default text is not displayed unless SetDefaultText() has been called. HRESULT



setDefaultText
public long setDefaultText()(Code)
Fills the field's value with the default text. Some fields may, if empty, upon activation be asked to fill themselves with their default value, for example "un-named". The application calls this method to cause the field to set its value to its default value. The field is not repositioned based on the new text length. HRESULT



setDeleted
public void setDeleted(boolean value)(Code)
Is this field deleted? HRESULT



setDelimitor
public void setDelimitor(String newVal)(Code)



setEnabled
public void setEnabled(boolean newVal)(Code)
Is this field Enabled? An enabled field is not necessarily visible, depending on its visibility rules. However a disabled field is never visible. HRESULT



setFieldPos
public long setFieldPos(int nStartPos)(Code)
Sets the relative offsets for the beginning and end of the text represented by this textfield. Call this function when re-ordering fields, or after characters have been added or removed from previous fields. If the field is not visible, the field's length is set to zero. HRESULT



setFont
public void setFont(Font newVal)(Code)
Sets the font used for rendering this textfield. HRESULT



setLeadSeparator
public void setLeadSeparator(String newVal)(Code)



setModified
public void setModified(boolean bModified)(Code)
Force's this field's modified status. bModified[in] The new modified value. HRESULT



setMultiplicity
public void setMultiplicity(boolean newVal)(Code)



setOwnerTranslator
public void setOwnerTranslator(ITranslator pTranslator)(Code)
Sets the translator that contains this text field. HRESULT



setPropertyDefinition
public void setPropertyDefinition(IPropertyDefinition pDef)(Code)



setPropertyElement
public void setPropertyElement(IPropertyElement pEle)(Code)



setPropertyElement2
public void setPropertyElement2(IPropertyElement pEle)(Code)



setRequired
public void setRequired(boolean newVal)(Code)



setSelected
public void setSelected(boolean newVal)(Code)
Is this field selected? If so it rendered in the current selected color scheme. HRESULT



setText
public void setText(String newVal)(Code)
Sets the text for this textfield. HRESULT



setTextColor
public void setTextColor(Color newVal)(Code)
The field's text color. HRESULT



setTextPos
public long setTextPos(int nStartPos)(Code)
Sets the relative offsets for the beginning and end of the text represented by this textfield. Call this function when re-ordering fields, or after characters have been added or removed from previous fields. If the field is not visible, the field's length is set to zero. HRESULT



setToolTipText
public void setToolTipText(String newVal)(Code)
The value of this text field's tooltip. pVal[in] Tooltip. HRESULT



setTrailSeparator
public void setTrailSeparator(String newVal)(Code)



setTranslator
public void setTranslator(ITranslator pTranslator)(Code)
Sets the translator hosted by this text field. A text field normally wraps text, however in some cases it is desireable for the text field to contain a translator, which in turn hosts a number of "sub" text fields. HRESULT



setVisibility
public void setVisibility(String newVal)(Code)



setVisible
public void setVisible(boolean bVisible)(Code)
Forces the field to be visible. HRESULT



setVisible2
public void setVisible2(boolean bVisible)(Code)
Forces the field to be visible AND sets its default text if the current field text is empty. HRESULT



update
public long update()(Code)
Updates the field according to its visibility and validation rules. HRESULT



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.