Java Doc for ColorEditor.java in  » IDE-Netbeans » library » org » netbeans » beaninfo » editors » 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 » library » org.netbeans.beaninfo.editors 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.beaninfo.editors.ColorEditor

ColorEditor
final public class ColorEditor implements PropertyEditor,XMLPropertyEditor(Code)
A property editor for Color class. (Final only for performance, can be unfinaled if desired).
author:
   Jan Jancura, Ian Formanek

Inner Class :static class SuperColor extends Color

Field Summary
final static  booleanAQUA
    
final public static  StringATTR_BLUE
     Name of blue attribute.
final public static  StringATTR_GREEN
     Name of green attribute.
final public static  StringATTR_ID
     Name of id attribute.
final public static  StringATTR_PALETTE
     Name of palette attribute.
final public static  StringATTR_RED
     Name of red attribute.
final public static  StringATTR_TYPE
     Name of type attribute.
final public static  intAWT_PALETTE
     AWT Palette mode.
final static  booleanGTK
    
final public static  intSWING_PALETTE
     Swing Palette mode.
final public static  intSYSTEM_PALETTE
     System Palette mode.
final public static  StringVALUE_NULL
     Null value.
final public static  StringVALUE_PALETTE
     Value of palette.
final public static  StringVALUE_RGB
     Value of rgb.
final public static  StringXML_COLOR
     Name of color element.
static  StringawtColorNames
     Localized names of AWT colors.

Constructor Summary
public  ColorEditor()
     Creates color editor.

Method Summary
public  voidaddPropertyChangeListener(PropertyChangeListener propertyChangeListener)
     Adds property change listener.
public  StringgetAsText()
     Gets value as text.
public  ComponentgetCustomEditor()
     Gets custom editor.
public  StringgetJavaInitializationString()
     Gets java inititalization string.
public static  JColorChoosergetStaticChooser(ColorEditor ce)
     Gets staticChooser instance.
public  String[]getTags()
     Get tags possible for choosing value.
public  ObjectgetValue()
     Gets value.
final public static  booleangtkShouldAntialias()
    
public  booleanisPaintable()
     Insicates whether this editor is paintable.
public  voidpaintValue(Graphics g, Rectangle rectangle)
     Paints the current value.
public  voidreadFromXML(org.w3c.dom.Node element)
     Called to load property value from specified XML subtree.
public  voidremovePropertyChangeListener(PropertyChangeListener propertyChangeListener)
     Removes property change listner.
public  voidsetAsText(String text)
     Sets value ad text.
public  voidsetValue(Object object)
     Sets value.
public  org.w3c.dom.NodestoreToXML(org.w3c.dom.Document doc)
     Called to store current property value into XML subtree.
public  booleansupportsCustomEditor()
     Indicates whether this editor supports custom editing.

Field Detail
AQUA
final static boolean AQUA(Code)



ATTR_BLUE
final public static String ATTR_BLUE(Code)
Name of blue attribute.



ATTR_GREEN
final public static String ATTR_GREEN(Code)
Name of green attribute.



ATTR_ID
final public static String ATTR_ID(Code)
Name of id attribute.



ATTR_PALETTE
final public static String ATTR_PALETTE(Code)
Name of palette attribute.



ATTR_RED
final public static String ATTR_RED(Code)
Name of red attribute.



ATTR_TYPE
final public static String ATTR_TYPE(Code)
Name of type attribute.



AWT_PALETTE
final public static int AWT_PALETTE(Code)
AWT Palette mode.



GTK
final static boolean GTK(Code)



SWING_PALETTE
final public static int SWING_PALETTE(Code)
Swing Palette mode.



SYSTEM_PALETTE
final public static int SYSTEM_PALETTE(Code)
System Palette mode.



VALUE_NULL
final public static String VALUE_NULL(Code)
Null value.



VALUE_PALETTE
final public static String VALUE_PALETTE(Code)
Value of palette.



VALUE_RGB
final public static String VALUE_RGB(Code)
Value of rgb.



XML_COLOR
final public static String XML_COLOR(Code)
Name of color element.



awtColorNames
static String awtColorNames(Code)
Localized names of AWT colors.




Constructor Detail
ColorEditor
public ColorEditor()(Code)
Creates color editor.




Method Detail
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)(Code)
Adds property change listener.



getAsText
public String getAsText()(Code)
Gets value as text. Implements PropertyEditor interface.



getCustomEditor
public Component getCustomEditor()(Code)
Gets custom editor. Implements PropertyEditor interface. return NbColorChooser instance



getJavaInitializationString
public String getJavaInitializationString()(Code)
Gets java inititalization string. Implements PropertyEditor interface.



getStaticChooser
public static JColorChooser getStaticChooser(ColorEditor ce)(Code)
Gets staticChooser instance.



getTags
public String[] getTags()(Code)
Get tags possible for choosing value. Implements PropertyEditor interface.



getValue
public Object getValue()(Code)
Gets value. Implements PropertyEditor interface. Color value or null



gtkShouldAntialias
final public static boolean gtkShouldAntialias()(Code)



isPaintable
public boolean isPaintable()(Code)
Insicates whether this editor is paintable. Implements PropertyEditor interface. true



paintValue
public void paintValue(Graphics g, Rectangle rectangle)(Code)
Paints the current value. Implements ProepertyEditor interface.



readFromXML
public void readFromXML(org.w3c.dom.Node element) throws java.io.IOException(Code)
Called to load property value from specified XML subtree. If succesfully loaded, Implements XMLPropertyEditor interface. the value should be available via the getValue method. An IOException should be thrown when the value cannot be restored from the specified XML element
Parameters:
  element - the XML DOM element representing a subtree of XML from which the value should be loaded
exception:
  IOException - thrown when the value cannot be restored from the specified XML element



removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)(Code)
Removes property change listner.



setAsText
public void setAsText(String text) throws IllegalArgumentException(Code)
Sets value ad text. Implements PropertyEditor interface.



setValue
public void setValue(Object object)(Code)
Sets value. Implements PropertyEditor interface.
Parameters:
  object - object to set, accepts Color or SuperColor types



storeToXML
public org.w3c.dom.Node storeToXML(org.w3c.dom.Document doc)(Code)
Called to store current property value into XML subtree. The property value should be set using the Implemtns XMLPropertyEdtitor interface. setValue method prior to calling this method.
Parameters:
  doc - The XML document to store the XML in - should be used for creating nodes only the XML DOM element representing a subtree of XML from which the value should be loaded



supportsCustomEditor
public boolean supportsCustomEditor()(Code)
Indicates whether this editor supports custom editing. Implements PropertyEditor interface. true



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.