Java Doc for ImageButton.java in  » Web-Server » Jigsaw » org » w3c » tools » widgets » 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 » Web Server » Jigsaw » org.w3c.tools.widgets 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.awt.Canvas
   org.w3c.tools.widgets.ImageButton

ImageButton
public class ImageButton extends Canvas (Code)


Field Summary
transient  ActionListeneractionListener
    
protected  ImagecurrentImg
    
protected  Imageimg1
    
protected  Imageimg2
    
protected  booleanswitchable
    

Constructor Summary
public  ImageButton(Image img1, Image img2, String command)
    
public  ImageButton(Image img1, Image img2)
    
public  ImageButton(Image img, String command)
    
public  ImageButton(Image img)
    

Method Summary
public synchronized  voidaddActionListener(ActionListener al)
    
protected  voidfireActionEvent()
    
public  StringgetActionCommand()
    
public  DimensiongetMinimumSize()
    
public  DimensiongetPreferredSize()
    
public  booleanimageUpdate(Image img, int flaginfo, int x, int y, int width, int height)
     called when more informations about the image are available.
protected  voidinitSize()
    
 intmax(int a, int b)
    
public  voidpaint(Graphics g)
    
protected  voidpaintShadow(boolean raised)
    
public synchronized  voidremoveActionListener(ActionListener al)
    
public  voidsetActionCommand(String command)
    
public  voidswitchImage()
    

Field Detail
actionListener
transient ActionListener actionListener(Code)



currentImg
protected Image currentImg(Code)



img1
protected Image img1(Code)



img2
protected Image img2(Code)



switchable
protected boolean switchable(Code)




Constructor Detail
ImageButton
public ImageButton(Image img1, Image img2, String command)(Code)
Construct an ImageButton with the specified action command
Parameters:
  img1 - The image of this ImageButton
Parameters:
  img2 - The image of this ImageButton
Parameters:
  command - The action command String



ImageButton
public ImageButton(Image img1, Image img2)(Code)
Construct an ImageButton with the specified action command
Parameters:
  img1 - The image of this ImageButton
Parameters:
  realesed - The image of this ImageButton



ImageButton
public ImageButton(Image img, String command)(Code)
Construct an ImageButton with the specified action command
Parameters:
  img - The image of this ImageButton
Parameters:
  command - The action command String



ImageButton
public ImageButton(Image img)(Code)
Construct an ImageButton with no action command
Parameters:
  img - The image of this ImageButton




Method Detail
addActionListener
public synchronized void addActionListener(ActionListener al)(Code)
Adds an action listener to this ImageButton
Parameters:
  al - The ActionListener



fireActionEvent
protected void fireActionEvent()(Code)
fire a new ActionEvent and process it, if some listeners are listening



getActionCommand
public String getActionCommand()(Code)
Returns the action command String



getMinimumSize
public Dimension getMinimumSize()(Code)
Returns the minimum size of the ImageButton



getPreferredSize
public Dimension getPreferredSize()(Code)
Returns the preferred size of the ImageButton



imageUpdate
public boolean imageUpdate(Image img, int flaginfo, int x, int y, int width, int height)(Code)
called when more informations about the image are available. When the size is available, the ImageButton notifies its container that the size may have changed.
See Also:   java.awt.image.ImageObserver



initSize
protected void initSize()(Code)
Gets the size of the Image to calculate the minimum size of the Button



max
int max(int a, int b)(Code)



paint
public void paint(Graphics g)(Code)
paint the ImageButton in its initial shape
Parameters:
  g - A Graphics



paintShadow
protected void paintShadow(boolean raised)(Code)
paints the ImageButton using double buffering
Parameters:
  raised - A boolean which shows the state of the button



removeActionListener
public synchronized void removeActionListener(ActionListener al)(Code)
Removes an action listener to this ImageButton
Parameters:
  al - The ActionListener



setActionCommand
public void setActionCommand(String command)(Code)
Sets the action command String used when an ActionEvent is fired
Parameters:
  command - The command String



switchImage
public void switchImage()(Code)



Methods inherited from java.awt.Canvas
public void addNotify()(Code)(Java Doc)
public void createBufferStrategy(int numBuffers)(Code)(Java Doc)
public void createBufferStrategy(int numBuffers, BufferCapabilities caps) throws AWTException(Code)(Java Doc)
public AccessibleContext getAccessibleContext()(Code)(Java Doc)
public BufferStrategy getBufferStrategy()(Code)(Java Doc)
public void paint(Graphics g)(Code)(Java Doc)
public void update(Graphics g)(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.