Java Doc for Property.java in  » IDE-Netbeans » visualweb.api.designer » org » netbeans » modules » visualweb » gravy » properties » 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 » visualweb.api.designer » org.netbeans.modules.visualweb.gravy.properties 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.visualweb.gravy.properties.Property

All known Subclasses:   org.netbeans.modules.visualweb.gravy.properties.CheckBoxProperty,  org.netbeans.modules.visualweb.gravy.properties.ComboBoxProperty,  org.netbeans.modules.visualweb.gravy.properties.TextFieldProperty,
Property
public class Property (Code)
Handles properties in IDE property sheets. Properties are grouped in property sheet. Their are identified by their display names. Once you have created a Property instance you can get value, set a new text value, set a new value by index of possible options or open custom editor.

Usage:

 PropertySheetOperator pso = new PropertySheetOperator("Properties of MyClass");
 Property p = new Property(pso, "Name");
 System.out.println("\nProperty name="+p.getName());
 System.out.println("\nProperty value="+p.getValue());
 p.setValue("ANewValue");
 // set a new value by index where it is applicable
 //p.setValue(2);
 // open custom editor where it is applicable
 //p.openEditor();
 

See Also:   PropertySheetOperator


Field Summary
final public static  StringCHECKBOX_RENDERER
     Class name of check box renderer.
final public static  StringCOMBOBOX_RENDERER
     Class name of combo box renderer.
final public static  StringRADIOBUTTON_RENDERER
     Class name of radio button renderer.
final public static  StringSET_RENDERER
     Class name of set renderer.
final public static  StringSTRING_RENDERER
     Class name of string renderer.
protected  ContainerOperatorcontOper
    
protected  Node.Propertyproperty
     Instance of Node.Property.
protected  PropertySheetOperatorpropertySheetOper
     Property sheet where this property resides.

Constructor Summary
public  Property(PropertySheetOperator propertySheetOper, String name)
     Waits for property with given name in specified property sheet.
public  Property(PropertySheetOperator propertySheetOper, int index)
     Waits for index-th property in specified property sheet.
Parameters:
  propertySheetOper - PropertySheetOperator where to find property.
Parameters:
  index - index (row number) of property inside property sheet(starts at 0).
public  Property(ContainerOperator contOper, String name)
     Waits for property with given name in specified container.
Parameters:
  contOper - ContainerOperator where to find property.
public  Property(ContainerOperator contOper, int index)
     Waits for index-th property in specified container.
Parameters:
  contOper - ContainerOperator whete to find property.

Method Summary
public  booleancanEditAsText()
     Returns true if this property can be edited as text by inplace text field.
public  StringgetName()
     Gets display name of this property.
public  StringgetRendererName()
     Returns class name of renderer used to render this property.
public  StringgetShortDescription()
     Gets short description for this property.
public  StringgetValue()
     Gets string representation of property value.
public  booleanisEditable()
     Returns true if this property is in editable state (it is being edited).
public  booleanisEnabled()
     Returns true if this property is enabled in property sheet, that means it is possible to change its value by inplace editor.
public  SheetButtonOperatornameButtonOperator()
     Gets SheetButtonOperator instance of property's name button.
public  voidopenEditor()
     Opens custom property editor for the property by click on "..." button.
public  voidsetDefaultValue()
     Sets default value for this property.
public  voidsetValue(String textValue)
     Sets value of this property to specified text.
public  voidsetValue(int index)
     Sets value of this property by given index.
public  voidstartEditing()
     If this property is not editable, it scrolls to property and clicks on name button.
public  voidstopEditing()
     If this property is editable, it scrolls to property if needed and clicks on name button.
public  booleansupportsCustomEditor()
     Checks whether this property supports custom editor.
public  SheetButtonOperatorvalueButtonOperator()
     Gets SheetButtonOperator instance of property's value button.

Field Detail
CHECKBOX_RENDERER
final public static String CHECKBOX_RENDERER(Code)
Class name of check box renderer.



COMBOBOX_RENDERER
final public static String COMBOBOX_RENDERER(Code)
Class name of combo box renderer.



RADIOBUTTON_RENDERER
final public static String RADIOBUTTON_RENDERER(Code)
Class name of radio button renderer.



SET_RENDERER
final public static String SET_RENDERER(Code)
Class name of set renderer.



STRING_RENDERER
final public static String STRING_RENDERER(Code)
Class name of string renderer.



contOper
protected ContainerOperator contOper(Code)
Container to find property in



property
protected Node.Property property(Code)
Instance of Node.Property.



propertySheetOper
protected PropertySheetOperator propertySheetOper(Code)
Property sheet where this property resides.




Constructor Detail
Property
public Property(PropertySheetOperator propertySheetOper, String name)(Code)
Waits for property with given name in specified property sheet.
Parameters:
  propertySheetOper - PropertySheetOperator where to find property.
Parameters:
  name - property display name



Property
public Property(PropertySheetOperator propertySheetOper, int index)(Code)
Waits for index-th property in specified property sheet.
Parameters:
  propertySheetOper - PropertySheetOperator where to find property.
Parameters:
  index - index (row number) of property inside property sheet(starts at 0). If there categories shown in property sheet,rows occupied by their names must by added to index.



Property
public Property(ContainerOperator contOper, String name)(Code)
Waits for property with given name in specified container.
Parameters:
  contOper - ContainerOperator where to find property. It isrecommended to use PropertySheetOperator.
Parameters:
  name - property nameProperty.Property(PropertySheetOperator,String)



Property
public Property(ContainerOperator contOper, int index)(Code)
Waits for index-th property in specified container.
Parameters:
  contOper - ContainerOperator whete to find property. It isrecommended to use PropertySheetOperator.
Parameters:
  index - index (row number) of property inside property sheet(starts at 0)Property.Property(PropertySheetOperator,int)




Method Detail
canEditAsText
public boolean canEditAsText()(Code)
Returns true if this property can be edited as text by inplace text field. It can be both for string renderer or combo box renderer. true if this property can be edited, false otherwise



getName
public String getName()(Code)
Gets display name of this property. It can differ from name given in constructor when only substring of property name is used there. display name of property



getRendererName
public String getRendererName()(Code)
Returns class name of renderer used to render this property. It can be used to determine whether correct renderer is used. Possible values are defined in constants Property.STRING_RENDERER , Property.CHECKBOX_RENDERER , Property.COMBOBOX_RENDERER , Property.RADIOBUTTON_RENDERER , Property.SET_RENDERER . class name of renderer used to render this property:
  • org.openide.explorer.propertysheet.RendererFactory$StringRenderer
  • org.openide.explorer.propertysheet.RendererFactory$CheckboxRenderer
  • org.openide.explorer.propertysheet.RendererFactory$ComboboxRenderer
  • org.openide.explorer.propertysheet.RendererFactory$RadioButtonRenderer
  • org.openide.explorer.propertysheet.RendererFactory$SetRenderer

See Also:   Property.STRING_RENDERER
See Also:   Property.CHECKBOX_RENDERER
See Also:   Property.COMBOBOX_RENDERER
See Also:   Property.RADIOBUTTON_RENDERER
See Also:   Property.SET_RENDERER



getShortDescription
public String getShortDescription()(Code)
Gets short description for this property. Short description is also used in tooltip. short description for this property.



getValue
public String getValue()(Code)
Gets string representation of property value. value of property



isEditable
public boolean isEditable()(Code)
Returns true if this property is in editable state (it is being edited). It is detected by presence of PropertySheetButton which stands for property value in non editable state. true - this property is being edited; false otherwiseProperty.setValue



isEnabled
public boolean isEnabled()(Code)
Returns true if this property is enabled in property sheet, that means it is possible to change its value by inplace editor. true if this property is enabled, false otherwise



nameButtonOperator
public SheetButtonOperator nameButtonOperator()(Code)
Gets SheetButtonOperator instance of property's name button. It returns valid button even if properties were reordered. SheetButtonOperator instance of name button



openEditor
public void openEditor()(Code)
Opens custom property editor for the property by click on "..." button. It checks whether this property supports custom editor by method Property.supportsCustomEditor .



setDefaultValue
public void setDefaultValue()(Code)
Sets default value for this property. If default value is not available, it does nothing.



setValue
public void setValue(String textValue)(Code)
Sets value of this property to specified text. If a new value is not accepted, an information or error dialog is displayed by IDE. If property is not writable JemmyException is thrown.
Parameters:
  textValue - text to be set in property (e.g. "a new value","a new item from list", "false", "TRUE")



setValue
public void setValue(int index)(Code)
Sets value of this property by given index. It is applicable for properties which can be changed by combo box. If property doesn't support changing value by index JemmyException is thrown.
Parameters:
  index - index of item to be selected from possible options



startEditing
public void startEditing()(Code)
If this property is not editable, it scrolls to property and clicks on name button. Otherwise does nothing. Property.setValue



stopEditing
public void stopEditing()(Code)
If this property is editable, it scrolls to property if needed and clicks on name button. It cancels editing and sets original value back. Property.setValue



supportsCustomEditor
public boolean supportsCustomEditor()(Code)
Checks whether this property supports custom editor. true is property supports custom editor, false otherwise



valueButtonOperator
public SheetButtonOperator valueButtonOperator()(Code)
Gets SheetButtonOperator instance of property's value button. It returns valid button even if properties were reordered. SheetButtonOperator instance of value button



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.