def get_display(self):
    div = DivWdg()
    select = SelectWdg('value')
    select.add_style('width: 190px')
    default_value = self.kwargs.get('default')
    if (self.values and self.kwargs.get('default')):
        self.kwargs.pop('default')
    select.set_options(self.kwargs)
    select.add_empty_option('-- Select --')
    name = self.get_name()
    select.add_behavior({'type': 'change', 'element_name': name, 'cbjs_action': self.get_set_js_action()})
    select.set_value('')
    value = self.values.get('value')
    if (not value):
        value = default_value
    if value:
        select.set_value(value)
    if self.show_title:
        title_div = DivWdg()
        div.add(title_div)
        title_div.add_style('float: left')
        name = self.get_name()
        title = self.get_title()
        if (not title):
            title = name
            title = Common.get_display_title(title)
        title_div.add(('%s:' % title))
        title_div.add_style('width: 80px')
        title_div.add_style('font-weight: bold')
        title_div.add_style('margin-left: 15px')
        title_div.add_style('padding-top: 2px')
    op = self.kwargs.get('op')
    if (op == 'exists'):
        div.add('&nbsp;&nbsp;&nbsp;is&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', 'exists'))
    elif (op == 'is on'):
        div.add('&nbsp;&nbsp;&nbsp;is on&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', 'is on'))
    elif (op in ['~', 'contains']):
        div.add('&nbsp;&nbsp;&nbsp;contains&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', '~'))
    elif (op == 'is'):
        op_div = DivWdg('is')
        op_div.add_styles('margin-top: 8px; margin-right: 15px')
        div.add(op_div)
        div.add(HiddenWdg('op', '='))
        div.add_style('display: flex')
    else:
        op_select = SelectWdg('op')
        op_select.add_style('width: 100px')
        if self.multi_search_types:
            op_select.set_option('labels', 'is|is not')
            op_select.set_option('values', '=|!=')
        else:
            op_select.set_option('labels', 'is|is not|contains')
            op_select.set_option('values', '=|!=|~')
        value = self.values.get('op')
        if value:
            op_select.set_value(value)
        div.add(op_select)
        op_select.add_style('float: left')
        op_select.add_style('margin-right: 3px')
    div.add(select)
    '\n        parent_div = DivWdg()\n        div.add(parent_div)\n\n        select = SelectWdg("value")\n        parent_div.add(select)\n        select.add_style("width: 150px")\n        select.add_color("background", "background")\n\n        value = self.values.get("value")\n        if value:\n            select.set_option("values", [value])\n            select.set_value(value)\n\n        select.add_empty_option("-- Select --")\n\n        select.add_behavior( {\n            \'type\': \'mouseover\',\n            \'kwargs\': self.kwargs,\n            \'cbjs_action\': \'\'\'\n            var top = bvr.src_el.getParent();\n            var class_name = \'tactic.ui.filter.ReplaceSelectWdg\';\n            spt.panel.load( top, class_name, bvr.kwargs);\n            \'\'\'\n        } )\n        '
    return div
def get_display(self):
    div = DivWdg()
    select = SelectWdg('value')
    select.add_style('width: 190px')
    default_value = self.kwargs.get('default')
    if (self.values and self.kwargs.get('default')):
        self.kwargs.pop('default')
    select.set_options(self.kwargs)
    select.add_empty_option('-- Select --')
    name = self.get_name()
    select.add_behavior({'type': 'change', 'element_name': name, 'cbjs_action': self.get_set_js_action()})
    select.set_value()
    value = self.values.get('value')
    if (not value):
        value = default_value
    if value:
        select.set_value(value)
    if self.show_title:
        title_div = DivWdg()
        div.add(title_div)
        title_div.add_style('float: left')
        name = self.get_name()
        title = self.get_title()
        if (not title):
            title = name
            title = Common.get_display_title(title)
        title_div.add(('%s:' % title))
        title_div.add_style('width: 80px')
        title_div.add_style('font-weight: bold')
        title_div.add_style('margin-left: 15px')
        title_div.add_style('padding-top: 2px')
    op = self.kwargs.get('op')
    if (op == 'exists'):
        div.add('&nbsp;&nbsp;&nbsp;is&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', 'exists'))
    elif (op == 'is on'):
        div.add('&nbsp;&nbsp;&nbsp;is on&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', 'is on'))
    elif (op in ['~', 'contains']):
        div.add('&nbsp;&nbsp;&nbsp;contains&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', '~'))
    elif (op == 'is'):
        op_div = DivWdg('is')
        op_div.add_styles('margin-top: 8px; margin-right: 15px')
        div.add(op_div)
        div.add(HiddenWdg('op', '='))
        div.add_style('display: flex')
    else:
        op_select = SelectWdg('op')
        op_select.add_style('width: 100px')
        if self.multi_search_types:
            op_select.set_option('labels', 'is|is not')
            op_select.set_option('values', '=|!=')
        else:
            op_select.set_option('labels', 'is|is not|contains')
            op_select.set_option('values', '=|!=|~')
        value = self.values.get('op')
        if value:
            op_select.set_value(value)
        div.add(op_select)
        op_select.add_style('float: left')
        op_select.add_style('margin-right: 3px')
    div.add(select)
    '\n        parent_div = DivWdg()\n        div.add(parent_div)\n\n        select = SelectWdg("value")\n        parent_div.add(select)\n        select.add_style("width: 150px")\n        select.add_color("background", "background")\n\n        value = self.values.get("value")\n        if value:\n            select.set_option("values", [value])\n            select.set_value(value)\n\n        select.add_empty_option("-- Select --")\n\n        select.add_behavior( {\n            \'type\': \'mouseover\',\n            \'kwargs\': self.kwargs,\n            \'cbjs_action\': \'\'\'\n            var top = bvr.src_el.getParent();\n            var class_name = \'tactic.ui.filter.ReplaceSelectWdg\';\n            spt.panel.load( top, class_name, bvr.kwargs);\n            \'\'\'\n        } )\n        '
    return div