Java Doc for TextFieldWidget.java in  » Report » datavision-1.1.0 » jimm » datavision » gui » 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 » Report » datavision 1.1.0 » jimm.datavision.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jimm.datavision.gui.FieldWidget
      jimm.datavision.gui.TextFieldWidget

TextFieldWidget
public class TextFieldWidget extends FieldWidget (Code)
A text field widget is a field widget that is editable.
author:
   Jim Menard, jimm@io.com


Field Summary
protected  booleanchangingEditState
    
protected  intlineHeight
    
protected  intorigHeight
    
protected  TypingCommandtypingCommand
    

Constructor Summary
public  TextFieldWidget(SectionWidget sw, Field field)
     Constructor.

Method Summary
public  voidactionPerformed(ActionEvent e)
     Performs some action based on the action command string (the menu item text).
protected  voidaddCustomPopupItems()
    
protected  voidcursorForPosition(MouseEvent e)
     If this field is being edited, show text cursor.
protected  voiddoSelect(boolean makeSelected)
     Perform selection; if becoming deselected, ends editing.
protected  voidendEditing()
     Stores new value and bounds from self into field and makes text non-editable.
protected  StringgetPopupNameText()
    
public  voidkeyTyped(KeyEvent e)
     Handles return key by expanding height of editor and backspace and delete by shrinking height if newline is deleted.
public  voidmouseClicked(MouseEvent e)
     if this is a double-click, start editing; else handle the mouse event like a normal field widget.
public  voidstartEditing()
     Makes our text editable and starts editing.

Field Detail
changingEditState
protected boolean changingEditState(Code)



lineHeight
protected int lineHeight(Code)



origHeight
protected int origHeight(Code)



typingCommand
protected TypingCommand typingCommand(Code)




Constructor Detail
TextFieldWidget
public TextFieldWidget(SectionWidget sw, Field field)(Code)
Constructor.
Parameters:
  sw - section widget in which the field's new widget will reside
Parameters:
  field - a report field




Method Detail
actionPerformed
public void actionPerformed(ActionEvent e)(Code)
Performs some action based on the action command string (the menu item text).



addCustomPopupItems
protected void addCustomPopupItems()(Code)



cursorForPosition
protected void cursorForPosition(MouseEvent e)(Code)
If this field is being edited, show text cursor. Else call superclass method.
Parameters:
  e - a mouse event



doSelect
protected void doSelect(boolean makeSelected)(Code)
Perform selection; if becoming deselected, ends editing.
Parameters:
  makeSelected - new selection state



endEditing
protected void endEditing()(Code)
Stores new value and bounds from self into field and makes text non-editable.



getPopupNameText
protected String getPopupNameText()(Code)



keyTyped
public void keyTyped(KeyEvent e)(Code)
Handles return key by expanding height of editor and backspace and delete by shrinking height if newline is deleted.
Parameters:
  e - key event



mouseClicked
public void mouseClicked(MouseEvent e)(Code)
if this is a double-click, start editing; else handle the mouse event like a normal field widget.
Parameters:
  e - mouse event



startEditing
public void startEditing()(Code)
Makes our text editable and starts editing.



Fields inherited from jimm.datavision.gui.FieldWidget
final protected static int ACTION_INACTION(Code)(Java Doc)
final protected static int ACTION_MOVE(Code)(Java Doc)
final protected static int ACTION_POPPING_UP_MENU(Code)(Java Doc)
final protected static int ACTION_STRETCH_BOTTOM(Code)(Java Doc)
final protected static int ACTION_STRETCH_LEFT(Code)(Java Doc)
final protected static int ACTION_STRETCH_RIGHT(Code)(Java Doc)
final protected static int ACTION_STRETCH_TOP(Code)(Java Doc)
final protected static int GRAB_EDGE_WIDTH(Code)(Java Doc)
final protected static int MIN_SIZE(Code)(Java Doc)
final protected static Font POPUP_FONT(Code)(Java Doc)
protected int action(Code)(Java Doc)
protected boolean actionStartedYet(Code)(Java Doc)
protected JMenuItem aggregatesMenuItem(Code)(Java Doc)
protected JMenu alignSubmenu(Code)(Java Doc)
protected static HashMap componentMap(Code)(Java Doc)
protected JMenuItem formatMenuItem(Code)(Java Doc)
protected boolean mouseChangedSelectedState(Code)(Java Doc)
protected JMenuItem nameItem(Code)(Java Doc)
protected JPopupMenu popup(Code)(Java Doc)
protected PreMoveInfo preMoveInfo(Code)(Java Doc)
protected PreStretchInfo preStretchInfo(Code)(Java Doc)
protected SectionWidget sectionWidget(Code)(Java Doc)
protected boolean selected(Code)(Java Doc)
protected JMenuItem showOrHide(Code)(Java Doc)
protected JMenu sizeSubmenu(Code)(Java Doc)
protected AbstractSwingField swingField(Code)(Java Doc)

Methods inherited from jimm.datavision.gui.FieldWidget
protected int actionFromPosition(MouseEvent e)(Code)(Java Doc)
public void actionPerformed(ActionEvent e)(Code)(Java Doc)
protected void addCustomPopupItems()(Code)(Java Doc)
public void align(int which, Field prototype)(Code)(Java Doc)
protected void buildPopupMenu()(Code)(Java Doc)
protected void cursorForPosition(MouseEvent e)(Code)(Java Doc)
protected void delete()(Code)(Java Doc)
public void doDelete()(Code)(Java Doc)
void doDrag(int action, java.awt.Point mouseScreenPos)(Code)(Java Doc)
void doSelect(boolean makeSelected)(Code)(Java Doc)
public void doSetVisibility(boolean newVisibility)(Code)(Java Doc)
public void dragEnter(DropTargetDragEvent e)(Code)(Java Doc)
public void dragExit(DropTargetEvent e)(Code)(Java Doc)
public void dragOver(DropTargetDragEvent e)(Code)(Java Doc)
public void drop(DropTargetDropEvent e)(Code)(Java Doc)
public void dropActionChanged(DropTargetDragEvent e)(Code)(Java Doc)
protected void enableMenuItems()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
static FieldWidget findFieldWidgetOwning(Object c)(Code)(Java Doc)
Color getColor()(Code)(Java Doc)
public JComponent getComponent()(Code)(Java Doc)
public Field getField()(Code)(Java Doc)
protected String getPopupNameText()(Code)(Java Doc)
public PreMoveInfo getPreMoveInfo()(Code)(Java Doc)
public SectionWidget getSectionWidget()(Code)(Java Doc)
boolean isSelected()(Code)(Java Doc)
public void keyPressed(KeyEvent ke)(Code)(Java Doc)
public void keyReleased(KeyEvent ke)(Code)(Java Doc)
public void keyTyped(KeyEvent ke)(Code)(Java Doc)
public void mouseClicked(MouseEvent e)(Code)(Java Doc)
public void mouseDragged(MouseEvent e)(Code)(Java Doc)
public void mouseEntered(MouseEvent e)(Code)(Java Doc)
public void mouseExited(MouseEvent e)(Code)(Java Doc)
public void mouseMoved(MouseEvent e)(Code)(Java Doc)
protected boolean mousePressReleaseCommon(MouseEvent e)(Code)(Java Doc)
public void mousePressed(MouseEvent e)(Code)(Java Doc)
public void mouseReleased(MouseEvent e)(Code)(Java Doc)
public void moveToSection(SectionWidget sw)(Code)(Java Doc)
public void pickUp(java.awt.Point mouseScreenPos)(Code)(Java Doc)
public void putDown(SectionWidget sw)(Code)(Java Doc)
protected void resetCursor()(Code)(Java Doc)
void select(boolean deselectOthers)(Code)(Java Doc)
protected void setVisibilityLook()(Code)(Java Doc)
protected void showPopupMenu(MouseEvent e)(Code)(Java Doc)
public void size(int which, Field prototype)(Code)(Java Doc)
void snapBack()(Code)(Java Doc)
public void startStretching(java.awt.Point mouseScreenPos)(Code)(Java Doc)
public void stopStretching()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
void toggleVisibility()(Code)(Java Doc)
public void update(Observable obj, Object arg)(Code)(Java Doc)
public boolean usesFormat()(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.