com.servoy.j2db.dataprocessing
Class PropertyDescriptor
java.lang.Object
com.servoy.j2db.dataprocessing.PropertyDescriptor
- All Implemented Interfaces:
- IPropertyDescriptor
public class PropertyDescriptor
- extends Object
- implements IPropertyDescriptor
Simple implementation of IPropertyDescriptor
- Since:
- 5.0
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyDescriptor
public PropertyDescriptor(String label,
int type)
PropertyDescriptor
public PropertyDescriptor(String label,
int type,
String[] choices)
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()