model

package
v0.0.0-...-71bf9ba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUISpider

type GUISpider struct {
	Spider      *spider.Spider
	Title       string
	Description string
	Index       int
	// contains filtered or unexported fields
}

func NewGUISpider

func NewGUISpider(sp *spider.Spider, idx int) *GUISpider

type SpiderMenu

type SpiderMenu struct {
	walk.TableModelBase
	walk.SorterBase
	// contains filtered or unexported fields
}

func NewSpiderMenu

func NewSpiderMenu(species *spider.SpiderSpecies) *SpiderMenu

func (*SpiderMenu) Checked

func (m *SpiderMenu) Checked(row int) bool

Called by the TableView to retrieve if a given row is checked.

func (*SpiderMenu) GetChecked

func (m *SpiderMenu) GetChecked() []*GUISpider

获取被选中的结果

func (*SpiderMenu) Len

func (m *SpiderMenu) Len() int

func (*SpiderMenu) Less

func (m *SpiderMenu) Less(i, j int) bool

func (*SpiderMenu) RowCount

func (m *SpiderMenu) RowCount() int

Called by the TableView from SetModel and every time the model publishes a RowsReset event.

func (*SpiderMenu) SetChecked

func (m *SpiderMenu) SetChecked(row int, checked bool) error

Called by the TableView when the user toggled the check box of a given row.

func (*SpiderMenu) Sort

func (m *SpiderMenu) Sort(col int, order walk.SortOrder) error

Called by the TableView to sort the model.

func (*SpiderMenu) Swap

func (m *SpiderMenu) Swap(i, j int)

func (*SpiderMenu) Value

func (m *SpiderMenu) Value(row, col int) interface{}

Called by the TableView when it needs the text to display for a given cell.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL