Java Doc for PropertyHelper.java in  » XML-UI » XUI » net » xoetrope » builder » editor » components » 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 » XML UI » XUI » net.xoetrope.builder.editor.components 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.xoetrope.builder.editor.components.PropertyHelper

All known Subclasses:   net.xoetrope.builder.editor.components.swing.XCheckBoxHelper,  net.xoetrope.builder.editor.components.swing.XTabPanelHelper,  net.xoetrope.builder.editor.components.swing.XImageMapHelper,  net.xoetrope.builder.editor.components.swing.XUnknownHelper,  net.xoetrope.builder.editor.components.swing.XHotspotImageHelper,  net.xoetrope.builder.editor.components.swing.XPanelHelper,  net.xoetrope.builder.editor.components.swing.XEditHelper,  net.xoetrope.builder.editor.components.swing.XScrollPaneHelper,  net.xoetrope.builder.editor.components.swing.XLabelHelper,  net.xoetrope.builder.editor.components.swing.XButtonHelper,  net.xoetrope.builder.editor.components.swing.XTextAreaHelper,  net.xoetrope.builder.editor.components.swing.XMenuBarHelper,  net.xoetrope.builder.editor.components.swing.XPageHelper,  net.xoetrope.builder.editor.components.XUnknownHelper,  net.xoetrope.builder.editor.components.swing.XMetaContentHelper,  net.xoetrope.builder.editor.components.swing.XComboBoxHelper,  net.xoetrope.builder.editor.components.swing.XImageHelper,  net.xoetrope.builder.editor.components.MultipleSelectionHelper,  net.xoetrope.builder.editor.components.swing.XMenuItemHelper,  net.xoetrope.builder.editor.components.swing.XMenuHelper,  net.xoetrope.builder.editor.components.swing.XRadioButtonHelper,  net.xoetrope.builder.editor.components.swing.XDialogHelper,  net.xoetrope.builder.editor.components.swing.XTableHelper,  net.xoetrope.builder.editor.components.swing.XScrollableMetaContentHelper,  net.xoetrope.builder.editor.components.swing.XListHelper,  net.xoetrope.builder.editor.components.swing.XSplitPaneHelper,
PropertyHelper
abstract public class PropertyHelper (Code)
A helper class to describe the properties of an individual component

Copyright (c) Xoetrope Ltd., 2002-2003

$Revision: 1.19 $



Field Summary
final public static  intBOOLEAN_PROPERTY
    
final public static  intDATA_PROPERTY
    
final public static  intDOUBLE_PROPERTY
    
final public static  intEVENT_HANDLER_PROPERTY
    
final public static  intIMAGE_NAME_PROPERTY
    
final public static  intINTEGER_PROPERTY
    
final public static  intLIST_PROPERTY
    
final public static  intPLAIN_PROPERTY
    
final public static  intPROP_NAME
    
final public static  intSTYLE_PROPERTY
    
final public static  intVALIDATION_PROPERTY
    
protected  booleanallowsChildren
    
final protected static  StringbooleanOptions
    
protected  StringclassName
    
protected  StringcomponentType
    
protected  StringdefExt
    
protected  String[]extensions
    
protected  StringextraPropertyNames
    
protected  StringfileTypeDesc
    
protected  booleanisSwing
    
final protected static  intnumBasicProperties
    
protected  HashtableoptionSets
    
final protected static  StringpropertyName
    
protected static  HashtablepropertyTypeseventMasks
    
protected  EventSetDescriptorreflectedEvents
    
protected  PropertyDescriptorreflectedProperties
    
protected  booleanrestrictsSize
    
protected  booleanusesContentFile
    

Constructor Summary
public  PropertyHelper()
    

Method Summary
public  booleanaddPropertyType(String name, Object type)
    
public  booleanallowsChildren()
     Check if this component allows children to be added. true to allow addition of children.
public  StringgetClassName()
     Gets the className of the soure component.
public  StringgetComponentType()
    
public  StringgetData(XPageResource pageResource, Component comp, int i)
    
public  StringgetDefaultExtension()
    
public  longgetEventMask(int i)
    
public  StringgetFileDescription()
    
public  String[]getFileExtensions()
    
public  String[]getListItems(int i)
    
protected  StringgetListPropertyValue(Component comp, int i)
    
public  intgetNumBasicProperties()
    
public  intgetNumProperties()
    
public  StringgetPropertyName(XPageResource pageResource, Component comp, int i)
    
public  intgetPropertyType(int i)
    
public  StringgetPropertyValue(XPageResource pageResource, Component comp, int i)
    
public  StringgetValidation(Component comp)
    
public  booleanisReadOnly(Object obj)
    
public  booleanisSwing()
    
public  booleanrestrictsSize()
    
public  voidsetComponent(Component comp)
    
public  voidsetCopiedProperties(XPageResource page, Component srcComp, Component targetComp)
     Calls the relevant component helper to set the attributes of a new component when a paste operation has been invoked from the main menu.
public  voidsetData(XPageResource pageResource, Component comp, String propertyName, String value)
    
public  voidsetData(XPageResource pageResource, Component comp, XDataBinding binding)
    
public  voidsetFileExtensions(String desc, String defaultExt, String[] newExtensions)
    
public  voidsetImageName(XPageResource pageResource, Component comp, int propertyIdx, String imageName)
     Set the image name property.
public  voidsetListOptions(String name, String property, String[] options, int[] ids)
    
public  voidsetListPropertyValue(Component comp, int i, int selIdx)
    
public  voidsetPropertyValue(XPageResource pageResource, Component comp, int i, String value)
    
public  voidsetSwing(boolean iss)
    
public  voidsetValidation(Component comp, String ruleName)
    
public  voidsetViaReflection(String methodName, Component comp, Object value, boolean isBoolean)
     Set a property using refelction instead of the property helper.
public  voidsetViaReflection(String methodName, Component comp, Object value, Class objectClass)
     Set a property using refelction instead of the property helper.

Field Detail
BOOLEAN_PROPERTY
final public static int BOOLEAN_PROPERTY(Code)



DATA_PROPERTY
final public static int DATA_PROPERTY(Code)



DOUBLE_PROPERTY
final public static int DOUBLE_PROPERTY(Code)



EVENT_HANDLER_PROPERTY
final public static int EVENT_HANDLER_PROPERTY(Code)



IMAGE_NAME_PROPERTY
final public static int IMAGE_NAME_PROPERTY(Code)



INTEGER_PROPERTY
final public static int INTEGER_PROPERTY(Code)



LIST_PROPERTY
final public static int LIST_PROPERTY(Code)



PLAIN_PROPERTY
final public static int PLAIN_PROPERTY(Code)



PROP_NAME
final public static int PROP_NAME(Code)



STYLE_PROPERTY
final public static int STYLE_PROPERTY(Code)



VALIDATION_PROPERTY
final public static int VALIDATION_PROPERTY(Code)



allowsChildren
protected boolean allowsChildren(Code)



booleanOptions
final protected static String booleanOptions(Code)



className
protected String className(Code)



componentType
protected String componentType(Code)



defExt
protected String defExt(Code)



extensions
protected String[] extensions(Code)



extraPropertyNames
protected String extraPropertyNames(Code)



fileTypeDesc
protected String fileTypeDesc(Code)



isSwing
protected boolean isSwing(Code)



numBasicProperties
final protected static int numBasicProperties(Code)



optionSets
protected Hashtable optionSets(Code)



propertyName
final protected static String propertyName(Code)



propertyTypeseventMasks
protected static Hashtable propertyTypeseventMasks(Code)



reflectedEvents
protected EventSetDescriptor reflectedEvents(Code)



reflectedProperties
protected PropertyDescriptor reflectedProperties(Code)



restrictsSize
protected boolean restrictsSize(Code)



usesContentFile
protected boolean usesContentFile(Code)




Constructor Detail
PropertyHelper
public PropertyHelper()(Code)




Method Detail
addPropertyType
public boolean addPropertyType(String name, Object type)(Code)
Add a property type if it is not already present
Parameters:
  name - the name of the new property
Parameters:
  type - the property type true if successfully added, otherwise false (if it already exists)



allowsChildren
public boolean allowsChildren()(Code)
Check if this component allows children to be added. true to allow addition of children. By default false is returnedas most components do not intend to allow addition of children



getClassName
public String getClassName()(Code)
Gets the className of the soure component. If the name has not been explicitly set the class name of this helper is used and the name is truncated to remove the 'Helper' part. the class name of the source component



getComponentType
public String getComponentType()(Code)



getData
public String getData(XPageResource pageResource, Component comp, int i)(Code)



getDefaultExtension
public String getDefaultExtension()(Code)



getEventMask
public long getEventMask(int i)(Code)
Get the event mask attribute
Parameters:
  i - the component property index the value



getFileDescription
public String getFileDescription()(Code)
Get a description of the file extension set to be used for file/image names in the popup chooser an array of strings



getFileExtensions
public String[] getFileExtensions()(Code)
Get the file extension set to be used for file/image names in the popup chooser an array of strings



getListItems
public String[] getListItems(int i)(Code)
Get the items to display for a list property
Parameters:
  i - the property index an array of list items



getListPropertyValue
protected String getListPropertyValue(Component comp, int i)(Code)



getNumBasicProperties
public int getNumBasicProperties()(Code)
Get the number of basic properties that every component exposes the number of propeties



getNumProperties
public int getNumProperties()(Code)
Get the number of properties that the component exposes the number of propeties



getPropertyName
public String getPropertyName(XPageResource pageResource, Component comp, int i)(Code)
Get the name of the property
Parameters:
  i - the property index
Parameters:
  pageResource - the page resource to which this component belongs
Parameters:
  comp - the component instance the name



getPropertyType
public int getPropertyType(int i)(Code)
Get the type of the property
Parameters:
  i - the property index the type as defined by XPropertiesEditor



getPropertyValue
public String getPropertyValue(XPageResource pageResource, Component comp, int i)(Code)
Get the value of the property exposed by the component
Parameters:
  pageResource - the page resource to which this component belongs
Parameters:
  comp - the component instance
Parameters:
  i - the component property index the value



getValidation
public String getValidation(Component comp)(Code)
Get the first validation for this component
Parameters:
  comp - the component reference the first validation



isReadOnly
public boolean isReadOnly(Object obj)(Code)
Is the property read-only?
Parameters:
  obj - the name of the selected property true if the property is read-only



isSwing
public boolean isSwing()(Code)
Is this a swing component helper? true if it is a swing helper



restrictsSize
public boolean restrictsSize()(Code)
Flag the component as having a restricted size if true is returned false



setComponent
public void setComponent(Component comp)(Code)



setCopiedProperties
public void setCopiedProperties(XPageResource page, Component srcComp, Component targetComp)(Code)
Calls the relevant component helper to set the attributes of a new component when a paste operation has been invoked from the main menu.
Parameters:
  srcComp - the component which was selected when the copy or cut commandwas invoked
Parameters:
  targetComp - the new component which will be added to the current page



setData
public void setData(XPageResource pageResource, Component comp, String propertyName, String value)(Code)



setData
public void setData(XPageResource pageResource, Component comp, XDataBinding binding)(Code)



setFileExtensions
public void setFileExtensions(String desc, String defaultExt, String[] newExtensions)(Code)
Set the array/list of extensions used by the file/image name chooser
Parameters:
  desc - the description of the file type.
Parameters:
  defaultExt - the default file extension
Parameters:
  newExtensions -



setImageName
public void setImageName(XPageResource pageResource, Component comp, int propertyIdx, String imageName)(Code)
Set the image name property.
Parameters:
  page - the page that owns the component
Parameters:
  comp - the component whose property is being set
Parameters:
  propertyIdx - teh index of the property
Parameters:
  imageName - the path to the image



setListOptions
public void setListOptions(String name, String property, String[] options, int[] ids)(Code)
Set the list options
Parameters:
  name - the name by which the list is identified
Parameters:
  property - the property being modified
Parameters:
  options - the list of option values
Parameters:
  ids - the values associated with the options



setListPropertyValue
public void setListPropertyValue(Component comp, int i, int selIdx)(Code)
Set the value of the property exposed by the component
Parameters:
  comp - the component instance
Parameters:
  i - the component property index
Parameters:
  selIdx - the index into the list of the selected item the value



setPropertyValue
public void setPropertyValue(XPageResource pageResource, Component comp, int i, String value)(Code)
Set the value of the property exposed by the component
Parameters:
  pageResource - the page resource to which this component belongs
Parameters:
  comp - the component instance
Parameters:
  i - the component property index the value



setSwing
public void setSwing(boolean iss)(Code)
Sets the flag to indicate if this is a swing component helper?
Parameters:
  iss - true if it is a swing helper



setValidation
public void setValidation(Component comp, String ruleName)(Code)
Set the validation rule for this component
Parameters:
  comp - the component reference
Parameters:
  ruleName - the name of the validation rule



setViaReflection
public void setViaReflection(String methodName, Component comp, Object value, boolean isBoolean)(Code)
Set a property using refelction instead of the property helper.
Parameters:
  methodName - the method name
Parameters:
  comp - the component being modified
Parameters:
  value - the new value
Parameters:
  isBoolean - is it a boolean property being modified



setViaReflection
public void setViaReflection(String methodName, Component comp, Object value, Class objectClass)(Code)
Set a property using refelction instead of the property helper.
Parameters:
  methodName - the method name
Parameters:
  comp - the component being modified
Parameters:
  value - the new value
Parameters:
  objectClass - the class of the argument of the set method being invoked



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.