def get_display(self):
    div = DivWdg()
    text = TextWdg('value')
    if (not self.kwargs.get('column')):
        text.set_attr('readonly', 'readonly')
        text.set_value('Warning: column option not defined')
        text.add_class('disabled')
    text.add_style('width: 170px')
    if (self.values and self.kwargs.get('default')):
        self.kwargs.pop('default')
    text.set_options(self.kwargs)
    name = self.get_name()
    text.add_behavior({'type': 'blur', 'element_name': name, 'cbjs_action': self.get_set_js_action()})
    text.add_behavior({'type': 'keyup', 'cbjs_action': "\n        var key = evt.key;\n        if (key == 'enter') {\n            spt.dg_table.search_cbk( {}, {src_el: bvr.src_el} );\n        }\n        "})
    value = self.values.get('value')
    if value:
        text.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 in ['~', 'contains']):
        div.add('&nbsp;&nbsp;&nbsp;contains&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', '~'))
    else:
        op_select = SelectWdg('op')
        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)
        op_select.add_style('margin-right: 3px')
        op_select.add_style('float: left')
        div.add(op_select)
    div.add(text)
    return div
def get_display(self):
    div = DivWdg()
    text = TextWdg('value')
    if (not self.kwargs.get('column')):
        text.set_attr('readonly', 'readonly')
        text.set_value('Warning: column option not defined')
        text.add_class('disabled')
    text.add_style('width: 170px')
    if (self.values and self.kwargs.get('default')):
        self.kwargs.pop('default')
    text.set_options(self.kwargs)
    name = self.get_name()
    text.add_behavior({'type': 'blur', 'element_name': name, 'cbjs_action': self.get_set_js_action()})
    text.add_behavior({'type': 'keyup', 'cbjs_action': "\n        var key = evt.key;\n        if (key == 'enter') {\n            spt.dg_table.search_cbk( {}, {src_el: bvr.src_el} );\n        }\n        "})
    value = self.values.get('value')
    if value:
        text.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 in ['~', 'contains']):
        div.add('&nbsp;&nbsp;&nbsp;contains&nbsp;&nbsp;&nbsp;')
        div.add(HiddenWdg('op', '~'))
    else:
        op_select = SelectWdg('op')
        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)
        op_select.add_style('margin-right: 3px')
        op_select.add_style('float: left')
        div.add(op_select)
    div.add(text)
    return div