Java Doc for MouseOverGridView.java in  » Portal » Open-Portal » graphical » 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 » Portal » Open Portal » graphical 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


graphical.MouseOverGridView

All known Subclasses:   graphical.DragIGREView,  components.RDPropertyGridView,
MouseOverGridView
public class MouseOverGridView extends IGridRowEditView implements Target(Code)
MouseOverGridView extends IGridRowSelectView to implement: popup help for any cell "URL cell support, ie.e display as a "link"



Constructor Summary
public  MouseOverGridView(int x, int y, int w, int h)
     MouseOverGridView constructor, creates grid and initializes popup system.

Method Summary
public  voiddrawPopup()
     drawPopup - Get cell coordinates and check that the mouse is really over the cell.
public  voidhidePopup()
     hidePopup - Stop any timers.
public  inticonColumn()
     iconColumn - Return the current Icon column.
public  booleanmouseDown(MouseEvent mouseEvent)
    
public  voidmouseMoved(MouseEvent mouseEvent)
     mouseMoved - Mouse move event handler, if mouse is over a new cell the popup function is called, otherwise the event is just passed on.
public  ImagenormalIcon()
     normalIcon - Return the normal Icon.
public  voidonMouseOverCell(int cellRow, int cellColumn, int mouseRow, int mouseColumn)
     onMouseOverCell - Mouse is over a grid cell.
public  voidonPressCell(int r, int c)
     onPressCell override - Invokes the browser with the contents of a URL link cell.
public  voidpaintCellBackground(Graphics g, int r, int c, Rect rect)
     paintCellBackground override - Fixes drag refresh not painting selected row background in the correct color.
public  voidpaintCellForeground(Graphics g, int r, int c, Rect rect)
     paintCellForeground override - Underlines URL link.
public  voidperformCommand(String command, Object arg)
     performCommand - Message handling for popup and popdown timers.
public  intpopdownDelay()
     popdownDelay - Return the current popupdown delay, in milliseconds.
public  booleanpopupAlways()
     popupAlways - Return the current state of the always popup flag.
public  ColorpopupBackgroundColor()
     popupBackgroundColor - Return the current bacjground color.
public  intpopupDelay()
     popupDelay - Return the current popup delay, in milliseconds.
public  FontpopupFont()
     popupFont - Return the current font.
public  ColorpopupTextColor()
     popupTextColor - Return the current text color.
public  ImageselectedIcon()
     selectedIcon - Return the selected Icon.
public  voidsetDragRow(int r)
     setDragRow - Set the current Drag over row.
public  voidsetIconColumn(int c)
     setIconColumn - Set the current Icon column.
public  voidsetNormalIcon(Image icon)
     setNormalIcon - Set the normal (unselected) Icon.
public  voidsetPopdownDelay(int delay)
     setPopdownDelay - Set the current popdown delay value, in milliseconds.
public  voidsetPopupAlways(boolean flag)
     setPopupAlways - Set the current state of the always popup flag.
public  voidsetPopupBackgroundColor(Color color)
     setPopupBackgroundColor - Set the current background color.
public  voidsetPopupDelay(int delay)
     setPopupDelay - Set the popup delay value, in milliseconds.
public  voidsetPopupFont(Font font)
     setPopupFont - Set the current font.
public  voidsetPopupTextColor(Color color)
     setPopupTextColor - Set the current text color.
public  voidsetSelectedIcon(Image icon)
     setSelectedIcon - Set the selected Icon.
public  voidsetUrlColor(Color color)
     setUrlColor - Set the current URL color.
public  voidsetUrlColumn(int c)
     setUrlColumn - Set the current URL column.
public  voidsetUrlRow(int r)
     setUrlRow - Set the current URL row.
public  voidsetUrlRowColumn(int r, int c)
     setUrlRowColumn - Set the current URL row/column.
public  ColortextColor(int r, int c)
     textColor override - Returns URL link color, if URL column.
public  ColorurlColor()
     urlColor - Return the current URL Color.
public  inturlColumn()
     urlColumn - Return the current URL Column.
public  inturlRow()
     urlRow - Return the current URL Row.


Constructor Detail
MouseOverGridView
public MouseOverGridView(int x, int y, int w, int h)(Code)
MouseOverGridView constructor, creates grid and initializes popup system.




Method Detail
drawPopup
public void drawPopup()(Code)
drawPopup - Get cell coordinates and check that the mouse is really over the cell. This is necessary as the grid locate functions return the last cell when the mouse is off the bottom of the grid. Stop the popup timer, if any. Get the contents of the cell and size it in the current font. Check that size exceeds cell size or that always popup is on. Size popup window and view for string and show the popup window. Start the popdown timer, if any.



hidePopup
public void hidePopup()(Code)
hidePopup - Stop any timers. Hide the window. Reset current cell and row so that the mouse move handler detects a new cell.



iconColumn
public int iconColumn()(Code)
iconColumn - Return the current Icon column.



mouseDown
public boolean mouseDown(MouseEvent mouseEvent)(Code)
mouseDown - Mouse down event handler, destroy any popup window



mouseMoved
public void mouseMoved(MouseEvent mouseEvent)(Code)
mouseMoved - Mouse move event handler, if mouse is over a new cell the popup function is called, otherwise the event is just passed on.



normalIcon
public Image normalIcon()(Code)
normalIcon - Return the normal Icon.



onMouseOverCell
public void onMouseOverCell(int cellRow, int cellColumn, int mouseRow, int mouseColumn)(Code)
onMouseOverCell - Mouse is over a grid cell. The current popup, if any, is removed. If there is no popup delay, the popup is displayed. Otherwise a timer is started.



onPressCell
public void onPressCell(int r, int c)(Code)
onPressCell override - Invokes the browser with the contents of a URL link cell.



paintCellBackground
public void paintCellBackground(Graphics g, int r, int c, Rect rect)(Code)
paintCellBackground override - Fixes drag refresh not painting selected row background in the correct color.



paintCellForeground
public void paintCellForeground(Graphics g, int r, int c, Rect rect)(Code)
paintCellForeground override - Underlines URL link.



performCommand
public void performCommand(String command, Object arg)(Code)
performCommand - Message handling for popup and popdown timers.



popdownDelay
public int popdownDelay()(Code)
popdownDelay - Return the current popupdown delay, in milliseconds.



popupAlways
public boolean popupAlways()(Code)
popupAlways - Return the current state of the always popup flag.



popupBackgroundColor
public Color popupBackgroundColor()(Code)
popupBackgroundColor - Return the current bacjground color.



popupDelay
public int popupDelay()(Code)
popupDelay - Return the current popup delay, in milliseconds.



popupFont
public Font popupFont()(Code)
popupFont - Return the current font.



popupTextColor
public Color popupTextColor()(Code)
popupTextColor - Return the current text color.



selectedIcon
public Image selectedIcon()(Code)
selectedIcon - Return the selected Icon.



setDragRow
public void setDragRow(int r)(Code)
setDragRow - Set the current Drag over row. This is used for drag feedback.



setIconColumn
public void setIconColumn(int c)(Code)
setIconColumn - Set the current Icon column.



setNormalIcon
public void setNormalIcon(Image icon)(Code)
setNormalIcon - Set the normal (unselected) Icon.



setPopdownDelay
public void setPopdownDelay(int delay)(Code)
setPopdownDelay - Set the current popdown delay value, in milliseconds.



setPopupAlways
public void setPopupAlways(boolean flag)(Code)
setPopupAlways - Set the current state of the always popup flag.



setPopupBackgroundColor
public void setPopupBackgroundColor(Color color)(Code)
setPopupBackgroundColor - Set the current background color.



setPopupDelay
public void setPopupDelay(int delay)(Code)
setPopupDelay - Set the popup delay value, in milliseconds.



setPopupFont
public void setPopupFont(Font font)(Code)
setPopupFont - Set the current font.



setPopupTextColor
public void setPopupTextColor(Color color)(Code)
setPopupTextColor - Set the current text color.



setSelectedIcon
public void setSelectedIcon(Image icon)(Code)
setSelectedIcon - Set the selected Icon.



setUrlColor
public void setUrlColor(Color color)(Code)
setUrlColor - Set the current URL color.



setUrlColumn
public void setUrlColumn(int c)(Code)
setUrlColumn - Set the current URL column.



setUrlRow
public void setUrlRow(int r)(Code)
setUrlRow - Set the current URL row.



setUrlRowColumn
public void setUrlRowColumn(int r, int c)(Code)
setUrlRowColumn - Set the current URL row/column.



textColor
public Color textColor(int r, int c)(Code)
textColor override - Returns URL link color, if URL column.



urlColor
public Color urlColor()(Code)
urlColor - Return the current URL Color.



urlColumn
public int urlColumn()(Code)
urlColumn - Return the current URL Column.



urlRow
public int urlRow()(Code)
urlRow - Return the current URL Row.



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