ERMDDefaultActionAssignment Class Reference

Inherits er::directtoweb::assignments::defaults::ERDDefaultActionAssignment.

Collaboration diagram for ERMDDefaultActionAssignment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NSArray< StringdefaultLeftActions (D2WContext c)
 ERMDDefaultActionAssignment (String key, Object value)
 ERMDDefaultActionAssignment (EOKeyValueUnarchiver u)

Static Public Member Functions

static Object decodeWithKeyValueUnarchiver (EOKeyValueUnarchiver eokeyvalueunarchiver)


Detailed Description

Custom default action assignment class to return the left actions in their correct order

Author:
davidleber

Constructor & Destructor Documentation

ERMDDefaultActionAssignment ( EOKeyValueUnarchiver  u  ) 

Public constructor

Parameters:
u key-value unarchiver used when unarchiving from rule files.

ERMDDefaultActionAssignment ( String  key,
Object  value 
)

Public constructor

Parameters:
key context key
value of the assignment


Member Function Documentation

static Object decodeWithKeyValueUnarchiver ( EOKeyValueUnarchiver  eokeyvalueunarchiver  )  [static]

Static constructor required by the EOKeyValueUnarchiver interface. If this isn't implemented then the default behavior is to construct the first super class that does implement this method. Very lame.

Parameters:
eokeyvalueunarchiver to be unarchived
Returns:
decoded assignment of this class

Reimplemented from ERDDefaultActionAssignment.

NSArray<String> defaultLeftActions ( D2WContext  c  ) 

Calculates the default left actions names for a given context. The array is set according to whether the entity is editable, inspectable and printable. FIXME - there is probably a nicer way to do this, but the design expects the order of left actions to be inspect, edit. Which is backwards from the ERDDefaultActionAssignment

Parameters:
c a D2W context
Returns:
array of action names for that context.

Reimplemented from ERDDefaultActionAssignment.


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:23 2012 for Project Wonder by  doxygen 1.5.8