com.im.df.api 5.9

com.im.df.api.util
Interface ExtraDFItemProperty<DFITEM extends DFItem>

Type Parameters:
DFITEM - type of property (DFEntity or DFField)
All Known Implementing Classes:
EntitySQLFilterProperty

public interface ExtraDFItemProperty<DFITEM extends DFItem>

Allows to edit Extra attributes for fields in schema editor.


Nested Class Summary
static interface ExtraDFItemProperty.Customizer
          Customizer for property value modification.
 
Method Summary
 ExtraDFItemProperty.Customizer create(DFITEM item, String value)
          Create customizer for property value modification.
 String getDisplayName()
           
 String getPropertyName()
           
 String getShortDescription()
           
 boolean isCompatible(DFItem field)
          Check if this property can be applied to the input field.
 boolean validate(DFITEM item, String value)
          Check validity of value.
 

Method Detail

isCompatible

boolean isCompatible(DFItem field)
Check if this property can be applied to the input field.

Parameters:
field - The field for testing
Returns:
True if property can be applied

getPropertyName

String getPropertyName()
Returns:
The xattribute unique property name

getDisplayName

String getDisplayName()
Returns:
display name shown in JList.

getShortDescription

String getShortDescription()
Returns:
Short description - tooltip.

create

ExtraDFItemProperty.Customizer create(DFITEM item,
                                      String value)
Create customizer for property value modification.

Parameters:
item - item for customization.
value - default value.
Returns:
The customizer.

validate

boolean validate(DFITEM item,
                 String value)
Check validity of value.

Parameters:
item - Item for validation.
value - value for validation.
Returns:
True if value valid.

com.im.df.api 5.9