de.cbse.jeasy
Class JEProperty

java.lang.Object
  extended by de.cbse.jeasy.JEProperty

public class JEProperty
extends java.lang.Object

A class representing the entries of the property.xml. Used for the JEasyRepository.

Author:
Harry Pfohl

Constructor Summary
JEProperty(java.lang.String s)
          Initialize a property by an XML String like x Integer The x-coordinate of the location's top-left corner in the parent's coordinate space.
 
Method Summary
 java.lang.String getDescription()
          The desciption of the property.
 java.lang.String getMethodName()
          Gets the name of the method to set the property.
 java.lang.String getName()
          Gets the name of the property.
 java.lang.String getPresMax()
          Gets the max value for a property of type number.
 java.lang.String getPresMin()
          Gets the min value for a property of type number.
 java.lang.String getPresType()
          Gets the type of the field to input the property.
 java.util.Vector getPresValues()
          Gets a vector of entries for a combobox or selectable jeasy objects.
 java.lang.String getPropClass()
          Gets the class the property has to represent
 java.lang.Boolean isPresDefault()
          Gets the default value of a selectable property or a combobox
 java.lang.Boolean isPresSelectFile()
          Gets whether a property should represent a file.
 boolean isPresSelectJeasyId()
          Returns true if the property should be a jeasy id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEProperty

public JEProperty(java.lang.String s)
Initialize a property by an XML String like x Integer The x-coordinate of the location's top-left corner in the parent's coordinate space. Usable when the parent uses no LayoutManager. integer 0 10000

Parameters:
s -
Method Detail

getDescription

public java.lang.String getDescription()
The desciption of the property. To use as a tooltip or as part of a class dokumentation.

Returns:

getMethodName

public java.lang.String getMethodName()
Gets the name of the method to set the property.

Returns:

getName

public java.lang.String getName()
Gets the name of the property. It should be used as the label for the field to input or select the property value.

Returns:

getPresMax

public java.lang.String getPresMax()
Gets the max value for a property of type number.

Returns:

getPresMin

public java.lang.String getPresMin()
Gets the min value for a property of type number.

Returns:

getPresType

public java.lang.String getPresType()
Gets the type of the field to input the property. Types are: List - to represent as a combolist, that can hold several values Selectable - to represent as a checkbox String - to represent as a textfield JeasyList - to represent as a combolist, that can hold several id's of jeasy objects ComboBox - to represent as a combobox with the given values Integer - to repesent as an inputfield for integer values

Returns:

getPresValues

public java.util.Vector getPresValues()
Gets a vector of entries for a combobox or selectable jeasy objects.

Returns:

getPropClass

public java.lang.String getPropClass()
Gets the class the property has to represent

Returns:

isPresDefault

public java.lang.Boolean isPresDefault()
Gets the default value of a selectable property or a combobox

Returns:
true or false or null if no default entrie exists

isPresSelectFile

public java.lang.Boolean isPresSelectFile()
Gets whether a property should represent a file. The implementation should be a file selection dialog.

Returns:
true if a selection dialog should appear

isPresSelectJeasyId

public boolean isPresSelectJeasyId()
Returns true if the property should be a jeasy id

Returns: