dataView

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataListView

type DataListView struct {
	Title                 string
	HelpText              string
	HelpTextTips          string
	InitializeCallback    initializeCallback
	UpdateHeaderCallback  updateHeaderCallback
	PreRowDisplayCallback preRowDisplayCallback

	RefreshDisplayCallback refreshDisplayCallback
	GetListData            GetListData
	// contains filtered or unexported fields
}

func NewDataListView

func NewDataListView(masterUI masterUIInterface.MasterUIInterface,
	parentView DataListViewInterface,
	name string, topMargin, bottomMargin int,
	eventProcessor *eventdata.EventProcessor,
	columnOwner IColumnOwner,
	columnDefinitions []*uiCommon.ListColumn,
	defaultSortColumns []*uiCommon.SortColumn) *DataListView

func (*DataListView) CloseDetailView added in v0.8.0

func (asUI *DataListView) CloseDetailView(g *gocui.Gui, v *gocui.View) error

func (*DataListView) GetAppMdMgr

func (asUI *DataListView) GetAppMdMgr() *app.AppMetadataManager

func (*DataListView) GetCurrentEventData

func (asUI *DataListView) GetCurrentEventData() *eventdata.EventData

func (*DataListView) GetDetailView

func (asUI *DataListView) GetDetailView() DataListViewInterface

func (*DataListView) GetDisplayedEventData

func (asUI *DataListView) GetDisplayedEventData() *eventdata.EventData

func (*DataListView) GetDisplayedListData

func (asUI *DataListView) GetDisplayedListData() []uiCommon.IData

func (*DataListView) GetEventProcessor

func (asUI *DataListView) GetEventProcessor() *eventdata.EventProcessor

func (*DataListView) GetListWidget

func (asUI *DataListView) GetListWidget() *uiCommon.ListWidget

func (*DataListView) GetMargins

func (asUI *DataListView) GetMargins() (int, int)

func (*DataListView) GetMasterUI

func (asUI *DataListView) GetMasterUI() masterUIInterface.MasterUIInterface

func (*DataListView) GetParentView

func (asUI *DataListView) GetParentView() DataListViewInterface

func (*DataListView) GetTopMargin

func (asUI *DataListView) GetTopMargin() int

func (*DataListView) GetTopOffset

func (asUI *DataListView) GetTopOffset() int

Get the top offset where the data view should open

func (*DataListView) Layout

func (asUI *DataListView) Layout(g *gocui.Gui) error

func (*DataListView) Name

func (asUI *DataListView) Name() string

func (*DataListView) PreRowDisplay

func (asUI *DataListView) PreRowDisplay(data uiCommon.IData, isSelected bool) string

func (*DataListView) RefreshDisplay

func (asUI *DataListView) RefreshDisplay(g *gocui.Gui) error

func (*DataListView) SetDetailView

func (asUI *DataListView) SetDetailView(detailView DataListViewInterface)

func (*DataListView) SetTitle

func (asUI *DataListView) SetTitle(title string)

func (*DataListView) UpdateDisplay

func (asUI *DataListView) UpdateDisplay(g *gocui.Gui) error

type DataListViewInterface

type DataListViewInterface interface {
	Name() string
	SetTitle(title string)
	GetMargins() (int, int)
	GetMasterUI() masterUIInterface.MasterUIInterface
	GetParentView() DataListViewInterface
	GetDetailView() DataListViewInterface
	SetDetailView(detailView DataListViewInterface)
	GetListWidget() *uiCommon.ListWidget
	GetEventProcessor() *eventdata.EventProcessor
	Layout(g *gocui.Gui) error
	GetCurrentEventData() *eventdata.EventData
	GetDisplayedEventData() *eventdata.EventData
	RefreshDisplay(g *gocui.Gui) error
	UpdateDisplay(g *gocui.Gui) error
	GetTopOffset() int
	GetDisplayedListData() []uiCommon.IData
}

type GetListData

type GetListData func() []uiCommon.IData

type IColumnOwner

type IColumnOwner interface{}

Jump to

Keyboard shortcuts

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