A general interface for setting data.
Remarks
A data acceptor associates data with data holders. It constitutes a write-only view on particular data.
Type Details
- yfiles module
- algorithms
- yfiles-umd modules
- All layout modules, view-layout-bridge
- Legacy UMD name
- yfiles.algorithms.IDataAcceptor
See Also
Methods
Sets a boolean value associated with the given data holder.
Remarks
This method may throw an UnsupportedOperationException.
Sets an integer value associated with the given data holder.
Remarks
This method may throw an UnsupportedOperationException.
Sets a double value associated with the given data holder.
Remarks
This method may throw an UnsupportedOperationException.
Static Methods
Creates an implementation of the interface IDataAcceptor from the given definition.
Remarks
The given object must contain exactly the abstract members of the IDataAcceptor interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- set - function(any, any):void
Sets an object value associated with the given data holder.
This property holds the implementation for set.
- setInt - function(any, number):void
Sets an integer value associated with the given data holder.
This property holds the implementation for setInt.
- setNumber - function(any, number):void
Sets a double value associated with the given data holder.
This property holds the implementation for setNumber.
- setBoolean - function(any, boolean):void
Sets a boolean value associated with the given data holder.
This property holds the implementation for setBoolean.
Returns
- ↪IDataAcceptor
- An instance of the IDataAcceptor interface based on the given definition.