class ControlPropertiesUtil

class ControlPropertiesUtil.ControlPropertiesUtil(control_props_list: List[List[ControlProperties]],
                                                   build_ele_list
: List[BuildingElement]
)

Implementation of the control properties utilities

__init__(control_props_list: List[List[ControlProperties]],
         build_ele_list
: List[BuildingElement]
)

initialize

Parameters
  • control_props_list – list with the control properties

  • build_ele_list – list with the building elements

set_background_color(value_name: str,
                     background_color
: str
,
                     element_id
: str = ''
)

set the background color control property

Parameters
  • value_name – value name of the control

  • background_color – background color in the format “(red, green, blue)” with “(-1, -1, -1)” as default

  • element_id – element ID of the building element. Defaults to “”.

set_enable_condition(value_name: str,
                     enable_condition
: str
,
                     element_id
: str = ''
)

set the enable condition control property

Parameters
  • value_name – value name of the control

  • enable_condition – enable condition control property

  • element_id – element ID of the building element. Defaults to “”.

set_enable_function(value_name: str,
                    enable_function
: Optional[Callable[[...], bool]]
,
                    element_id
: str = ''
)

set the enable function control property

Parameters
  • value_name – value name of the control

  • enable_function – enable function control property

  • element_id – element ID of the building element. Defaults to “”.

set_global_attributes(global_attributes: Dict[str, Any])

set the global attributes

Parameters

global_attributes – global attributes

set_max_value(value_name: str,
              max_value
: str
,
              element_id
: str = ''
)

set the max value control property

Parameters
  • value_name – value name of the control

  • max_value – maximal value

  • element_id – element ID of the building element. Defaults to “”.

set_min_value(value_name: str,
              min_value
: str
,
              element_id
: str = ''
)

set the min value control property

Parameters
  • value_name – value name of the control

  • min_value – minimal value

  • element_id – element ID of the building element. Defaults to “”.

set_text(value_name: str,
         text
: str
,
         element_id
: str = ''
)

set the text control property

Parameters
  • value_name – value name of the control

  • text – text control property

  • element_id – element ID of the building element. Defaults to “”.

set_value_list(value_name: str,
               value_list
: str
,
               element_id
: str = ''
)

set the value list control property

Parameters
  • value_name – value name of the control

  • value_list – value list control property

  • element_id – element ID of the building element. Defaults to “”.

set_value_list_2(value_name: str,
                 value_list_2
: str
,
                 element_id
: str = ''
)

set the value list 2 control property

Parameters
  • value_name – value name of the control

  • value_list_2 – value list 2 control property

  • element_id – element ID of the building element. Defaults to “”.

set_visible_condition(value_name: str,
                      visible_condition
: str
,
                      element_id
: str = ''
)

set the visible condition control property

Parameters
  • value_name – value name of the control

  • visible_condition – visible condition control property

  • element_id – element ID of the building element. Defaults to “”.

set_visible_function(value_name: str,
                     visible_function
: Optional[Callable[[...], bool]]
,
                     element_id
: str = ''
)

set the visible function control property

Parameters
  • value_name – value name of the control

  • visible_function – visible function control property

  • element_id – element ID of the building element. Defaults to “”.

__module__ = 'ControlPropertiesUtil'