Servoy 5.x Public API

com.servoy.j2db.dataprocessing
Class PropertyDescriptor

java.lang.Object
  extended by com.servoy.j2db.dataprocessing.PropertyDescriptor
All Implemented Interfaces:
IPropertyDescriptor

public class PropertyDescriptor
extends Object
implements IPropertyDescriptor

Simple implementation of IPropertyDescriptor

Since:
5.0

Field Summary
 
Fields inherited from interface com.servoy.j2db.dataprocessing.IPropertyDescriptor
GLOBAL_METHOD, NUMBER, STRING
 
Constructor Summary
PropertyDescriptor(String label, int type)
           
PropertyDescriptor(String label, int type, String[] choices)
           
 
Method Summary
 String[] getChoices()
          For type IPropertyDescriptor.STRING or IPropertyDescriptor.NUMBER you can define predefined list so that users can only choose one of those.
 String getLabel()
          The label that will be shown in the developer for this property.
 int getType()
          The type of the property, return one of the types IPropertyDescriptor.STRING or IPropertyDescriptor.GLOBAL_METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyDescriptor

public PropertyDescriptor(String label,
                          int type)

PropertyDescriptor

public PropertyDescriptor(String label,
                          int type,
                          String[] choices)
Method Detail

getChoices

public String[] getChoices()
Description copied from interface: IPropertyDescriptor
For type IPropertyDescriptor.STRING or IPropertyDescriptor.NUMBER you can define predefined list so that users can only choose one of those.

Specified by:
getChoices in interface IPropertyDescriptor
Returns:
An array of predefined choices.
See Also:
IPropertyDescriptor.getChoices()

getLabel

public String getLabel()
Description copied from interface: IPropertyDescriptor
The label that will be shown in the developer for this property. If null then just the property will be printed.

Specified by:
getLabel in interface IPropertyDescriptor
Returns:
The label for this property.
See Also:
IPropertyDescriptor.getLabel()

getType

public int getType()
Description copied from interface: IPropertyDescriptor
The type of the property, return one of the types IPropertyDescriptor.STRING or IPropertyDescriptor.GLOBAL_METHOD

Specified by:
getType in interface IPropertyDescriptor
Returns:
The type of this property.
See Also:
IPropertyDescriptor.getType()

Copyright © 2010 Servoy B.V.