company logo

ActionItem :: setProperty - Change action item property

The function provides a generic way for changing action item properties. The value of the action item property passed in sProperty will be changed to the value passed in sValue . The following properties can be modified:

  • name - action name
  • action - name of action to be executed
  • label - short action name
  • tooltip - tool tip text defined for the action
  • text - long text defined for the action (html)
  • image - active image path defined for the action
  • The plain_text property contains derived information (from text ) and cannot be changed directly. Some of the properties mentioned above might be updated directly via property function calls as label() or image() .
  • The function throws an exception, when the requested action could not be found or when the requested property does not exist.

Implementation details

ActionItem  :: setProperty ( odaba::String &sProperty, odaba::String &sValue )
  • sProperty - Property name

    The property name refers to a named property of any object. It is passed as odaba::String .

  • sValue - String value