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


org.netbeans.modules.uml.ui.controls.editcontrol.ITranslator

All known Subclasses:   org.netbeans.modules.uml.ui.controls.editcontrol.TranslatorImpl,
ITranslator
public interface ITranslator (Code)




Method Summary
public  voidaddField(IPropertyElement pData, boolean bNoUpdate)
     Inserts a new text field that is described by a property element.
public  IEditControlFieldaddFieldDefinition(IPropertyDefinition pDefinition, IEditControlField pInsertField)
     Inserts a new text field that is described by a property definition.
public  voidcopyToClipboard()
     Copies the selected text into the Clipboard.
public  voidcutToClipboard()
     Cuts the selected text from the edit control to the Clipboard.
public  voiddump(String sPad)
    
public  voidenableFields(boolean EnableFields)
     Causes enabled field to be displayed, or hidden.
public  StringgetCurrent()
    
public  IEditControlFieldgetCurrentField()
     Returns the text field that the caret is currently in.
public  booleangetDeleted()
    
public  IEditControlgetEditControl()
     Sets/Returns the AxEdit control (if setting, re-initializes the translator).
public  IElementgetElement()
    
public  intgetFieldEndPos()
    
public  intgetFieldStartPos()
     Returns the starting add ending positions within the edit control of the text contained by this translator.
public  intgetLastTextStartPos()
    
public  booleangetModified()
    
public  IEditControlFieldgetNextField(IEditControlField pPreviousField)
     Returns the next text field following pPreviousField, or the first field if pPreviousField is 0.
public  IEditControlFieldgetParentField()
     Get/Set the textfield that contains this translator, if applicable.
public  intgetPosition()
     Get/Sets the caret position.
public  IEditControlFieldgetPreviousField(IEditControlField pNextField)
     Returns the previous text field preceeding pNextField, or the last field if pNextField is 0.
public  StringgetSimple()
    
public  intgetTextEndPos()
    
public  VectorgetTextFields()
     Gets a TextFields collection breaking down the translated string into its constituents.
public  intgetTextStartPos()
     Updates the starting and ending positions within the edit control of the editable text contained by this translator.
public  StringgetTooltipLeftText()
     Returns the tooltip text for translators that contain multiple fields.
public  StringgetTooltipRightText()
    
public  StringgetTooltipSubjectText()
    
public  StringgetTooltipText()
    
public  booleanhandleAccelerator(int nChar)
     Called when an accelerator is pressed.
public  booleanhandleChar(String nChangedChar)
     Processes character keypress notifications from the edit control.
public  booleanhandleDelete(boolean deleteRightwards)
    
public  booleanhandleDelimitor(int nChar, int m_nCurrentPos)
     For translators with repeating fields, add a new, empty field.
public  voidhandleHint()
     Responds to hint window being clicked.
public  IEditControlFieldhandleHintText(String sText)
     Responds to hint list window being closed.
public  booleanhandleKeyDown(int nKey)
     Processes KeyDown notifications from the edit control.
public  booleanhandleKeyUp(int nKey)
     Processes KeyUp notifications from the edit control.
public  booleanhandleLButtonDblClk(int nPosition)
     Processes a left mouse button double click event.
public  booleanhandleLButtonDown(int nPosition)
     Processes a left mouse button down event.
public  booleanhandleLButtonTripleClk(int nPosition)
     Processes a left mouse button triple click event.
public  ETPairT<Boolean, Boolean>handleSeparator(int nChar, int nCurrentPos)
     If the keychar is a separator, performs the appropriate action.
public  booleanhandleTopLevelSeparators(int nChar)
     If the keychar is a separator, performs the appropriate action.
public  voidinitTextFields()
     Reads and formats the internal components of the model element for editing.
public  voidonMouseMove(int x, int y)
     Called by the edit control on mouse moves.
public  voidonSetFocus()
    
public  voidpasteFromClipboard()
     Pastes the Clipboard contents in the the text field at the current position.
public  voidregisterAccelerators()
     Tells the translator to register its accelerators with the edit control.
public  voidsaveFields()
     Helper to save this element's fields.
public  voidsaveModelElement()
     Commits this translator's modelelement.
public  voidsetCurrentPosition(int nPos)
     Sets the internal position pointer without updating the edit control.
public  voidsetDeleted(boolean value)
    
public  voidsetEditControl(IEditControl value)
     Sets/Returns the AxEdit control (if setting, re-initializes the translator).
public  voidsetEditControl2(IEditControl value)
     Sets the AxEdit control, does not re-initialize.
public  voidsetElement(IElement value)
    
public  voidsetFieldPos(int nStartPosition)
     Returns the starting position within the edit control of the text contained by this translator.
public  voidsetModified(boolean value)
    
public  voidsetParentField(IEditControlField value)
     Get/Set the textfield that contains this translator, if applicable.
public  voidsetPosition(int value)
     Get/Sets the caret position.
public  voidsetPosition(int nStartPos, int nEndPos)
     Sets the current selection.
public  voidupdateField(IEditControlField pField)
     Informs the field that editing is complete and it should re-format itself depending on its rules.
public  voidupdateFieldPositions(IEditControlField pCurrent)
     Recalculates field positions rightward from the current field.
public  voidupdateFields(Vector pElements)
     Attaches a collection of property elements to their respective fields.
public  voidupdateHints()
    
public  voidupdateToolTip()
     Reload the tooltip's data.
public  voidupdateVisibleFields(IEditControlField pField)
     Hides fields with no data, call after manually updating fields to affect the display.



Method Detail
addField
public void addField(IPropertyElement pData, boolean bNoUpdate)(Code)
Inserts a new text field that is described by a property element.



addFieldDefinition
public IEditControlField addFieldDefinition(IPropertyDefinition pDefinition, IEditControlField pInsertField)(Code)
Inserts a new text field that is described by a property definition.



copyToClipboard
public void copyToClipboard()(Code)
Copies the selected text into the Clipboard.



cutToClipboard
public void cutToClipboard()(Code)
Cuts the selected text from the edit control to the Clipboard.



dump
public void dump(String sPad)(Code)
Temporary



enableFields
public void enableFields(boolean EnableFields)(Code)
Causes enabled field to be displayed, or hidden.



getCurrent
public String getCurrent()(Code)
Returns the current formatted string value for this translator (after editing)



getCurrentField
public IEditControlField getCurrentField()(Code)
Returns the text field that the caret is currently in.



getDeleted
public boolean getDeleted()(Code)
Is this translator deleted?



getEditControl
public IEditControl getEditControl()(Code)
Sets/Returns the AxEdit control (if setting, re-initializes the translator).



getElement
public IElement getElement()(Code)
Gets/Sets the Model Element



getFieldEndPos
public int getFieldEndPos()(Code)



getFieldStartPos
public int getFieldStartPos()(Code)
Returns the starting add ending positions within the edit control of the text contained by this translator.



getLastTextStartPos
public int getLastTextStartPos()(Code)
gets the text position of last visible text field



getModified
public boolean getModified()(Code)
Is this translator modified?



getNextField
public IEditControlField getNextField(IEditControlField pPreviousField)(Code)
Returns the next text field following pPreviousField, or the first field if pPreviousField is 0.



getParentField
public IEditControlField getParentField()(Code)
Get/Set the textfield that contains this translator, if applicable.



getPosition
public int getPosition()(Code)
Get/Sets the caret position.



getPreviousField
public IEditControlField getPreviousField(IEditControlField pNextField)(Code)
Returns the previous text field preceeding pNextField, or the last field if pNextField is 0.



getSimple
public String getSimple()(Code)
Returns the formatted string value for this translator's Model Element



getTextEndPos
public int getTextEndPos()(Code)



getTextFields
public Vector getTextFields()(Code)
Gets a TextFields collection breaking down the translated string into its constituents.



getTextStartPos
public int getTextStartPos()(Code)
Updates the starting and ending positions within the edit control of the editable text contained by this translator.



getTooltipLeftText
public String getTooltipLeftText()(Code)
Returns the tooltip text for translators that contain multiple fields.



getTooltipRightText
public String getTooltipRightText()(Code)



getTooltipSubjectText
public String getTooltipSubjectText()(Code)



getTooltipText
public String getTooltipText()(Code)



handleAccelerator
public boolean handleAccelerator(int nChar)(Code)
Called when an accelerator is pressed.



handleChar
public boolean handleChar(String nChangedChar)(Code)
Processes character keypress notifications from the edit control.



handleDelete
public boolean handleDelete(boolean deleteRightwards)(Code)



handleDelimitor
public boolean handleDelimitor(int nChar, int m_nCurrentPos)(Code)
For translators with repeating fields, add a new, empty field.



handleHint
public void handleHint()(Code)
Responds to hint window being clicked.



handleHintText
public IEditControlField handleHintText(String sText)(Code)
Responds to hint list window being closed.



handleKeyDown
public boolean handleKeyDown(int nKey)(Code)
Processes KeyDown notifications from the edit control.



handleKeyUp
public boolean handleKeyUp(int nKey)(Code)
Processes KeyUp notifications from the edit control.



handleLButtonDblClk
public boolean handleLButtonDblClk(int nPosition)(Code)
Processes a left mouse button double click event.



handleLButtonDown
public boolean handleLButtonDown(int nPosition)(Code)
Processes a left mouse button down event.



handleLButtonTripleClk
public boolean handleLButtonTripleClk(int nPosition)(Code)
Processes a left mouse button triple click event.



handleSeparator
public ETPairT<Boolean, Boolean> handleSeparator(int nChar, int nCurrentPos)(Code)
If the keychar is a separator, performs the appropriate action.



handleTopLevelSeparators
public boolean handleTopLevelSeparators(int nChar)(Code)
If the keychar is a separator, performs the appropriate action.



initTextFields
public void initTextFields()(Code)
Reads and formats the internal components of the model element for editing.



onMouseMove
public void onMouseMove(int x, int y)(Code)
Called by the edit control on mouse moves.



onSetFocus
public void onSetFocus()(Code)
Called by the edit control with it initially gains focus (except via the mouse)



pasteFromClipboard
public void pasteFromClipboard()(Code)
Pastes the Clipboard contents in the the text field at the current position.



registerAccelerators
public void registerAccelerators()(Code)
Tells the translator to register its accelerators with the edit control.



saveFields
public void saveFields()(Code)
Helper to save this element's fields. Called by SaveModelElement().



saveModelElement
public void saveModelElement()(Code)
Commits this translator's modelelement.



setCurrentPosition
public void setCurrentPosition(int nPos)(Code)
Sets the internal position pointer without updating the edit control.



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



setEditControl
public void setEditControl(IEditControl value)(Code)
Sets/Returns the AxEdit control (if setting, re-initializes the translator).



setEditControl2
public void setEditControl2(IEditControl value)(Code)
Sets the AxEdit control, does not re-initialize.



setElement
public void setElement(IElement value)(Code)
Gets/Sets the Model Element



setFieldPos
public void setFieldPos(int nStartPosition)(Code)
Returns the starting position within the edit control of the text contained by this translator.



setModified
public void setModified(boolean value)(Code)
Is this translator modified?



setParentField
public void setParentField(IEditControlField value)(Code)
Get/Set the textfield that contains this translator, if applicable.



setPosition
public void setPosition(int value)(Code)
Get/Sets the caret position.



setPosition
public void setPosition(int nStartPos, int nEndPos)(Code)
Sets the current selection.



updateField
public void updateField(IEditControlField pField)(Code)
Informs the field that editing is complete and it should re-format itself depending on its rules.



updateFieldPositions
public void updateFieldPositions(IEditControlField pCurrent)(Code)
Recalculates field positions rightward from the current field.



updateFields
public void updateFields(Vector pElements)(Code)
Attaches a collection of property elements to their respective fields. The fields' data is not reloaded.



updateHints
public void updateHints()(Code)



updateToolTip
public void updateToolTip()(Code)
Reload the tooltip's data.



updateVisibleFields
public void updateVisibleFields(IEditControlField pField)(Code)
Hides fields with no data, call after manually updating fields to affect the display.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.