com.im.df.api 5.9

com.im.df.api.capabilities
Interface DFDataEditCapability

All Superinterfaces:
DFCapability

public interface DFDataEditCapability
extends DFCapability

This capability can be added to DFEntity or just to specific DFFields. When it's present user interface should reflect the status of selected object (e.g. disable/enable instert row action, etc.).

Warning: This interface is just a prototype and it is possible it will be removed or changed in future releases.

This interface is or is going to be used for:

If this capability is not present in entity or field it's supposed that everything is editable.

Since:
3.0

Nested Class Summary
static class DFDataEditCapability.Type
           
 
Method Summary
 boolean isOperationAllowed(DFDataEditCapability.Type type)
          Is operation allowed?
 void setOperationAllowed(DFDataEditCapability.Type type, boolean allowed, DFEnvironmentRW env)
          Set new editable flag for the specified type
 

Method Detail

setOperationAllowed

void setOperationAllowed(DFDataEditCapability.Type type,
                         boolean allowed,
                         DFEnvironmentRW env)
Set new editable flag for the specified type

Parameters:
type - Type of the operation
allowed - Is this operation type allowed for this DFItem
env -

isOperationAllowed

boolean isOperationAllowed(DFDataEditCapability.Type type)
Is operation allowed?

Parameters:
type - The type of operation
Returns:
True if data can be modified using this operation

com.im.df.api 5.9