示例#1
0
    def get_display(self):

        button = ProdIconSubmitWdg("Introspect", long=True)
        button.add_style("height: 14px")
        button.add_style("font-size: 0.8em")
        #self.add_style("padding: 3px 10px 2px 10px")
        button.add_behavior({
            'type': "click",
            'cbjs_action': "introspect(bvr)"
        })

        self.top.add(button)
        return self.top
示例#2
0
    def get_display(self):

        button = ProdIconSubmitWdg("Introspect", long=True)
        button.add_style("height: 14px")
        button.add_style("font-size: 0.8em")
        #self.add_style("padding: 3px 10px 2px 10px")
        button.add_behavior({
            'type': "click",
            'cbjs_action': "introspect(bvr)"
        })

        self.top.add(button)
        return self.top
示例#3
0
    def get_watchlist_wdg(my):

        widget = Widget()
        WebContainer.register_cmd("pyasm.widget.ClipboardMoveToCategoryCbk")

        div = DivWdg(css="filter_box")

        select = FilterSelectWdg("clipboard_category",\
            label="Current Watch List: ", css='med')
        select.set_option("values", "watch_list|watch_list2|watch_list3")
        select.add_empty_option("-- Any Category --")
        div.add(select)

        search_type_sel = SearchTypeFilterWdg()
       
        div.add(search_type_sel)


        widget.add(div)

        div = DivWdg()
        from pyasm.prod.web import ProdIconSubmitWdg
        copy = ProdIconSubmitWdg(ClipboardMoveToCategoryCbk.COPY_BUTTON)
        copy.add_style("float: right")
        #clear = ProdIconSubmitWdg("Clear All")
        #clear.add_style("float: right")
        div.add(copy)
        #div.add(clear)
        div.add(HtmlElement.br(2))
        widget.add(div)

        # get all of the clipboard items
        value = select.get_value()
        search = Clipboard.get_search(category=value)
        search_type_sel.alter_search(search)
        table = TableWdg("sthpw/clipboard", "watch_list")
        table.set_search(search)
        widget.add(table)
        return widget