':type object: object
:type attribute: str
:type ui: UIElement'

def __init__(self, object, attribute, ui):

    self.object = object
    self.attribute = attribute
    self.ui = ui
    self.dict_mode = False
    if (attribute and attribute.startswith('[') and attribute.endswith(']')):
        self.dict_mode = True
        self.attribute = self.attribute[1:(-1)]
