Documentation ¶
Index ¶
- Constants
- type AttentionType
- type ColumnType
- type DisplayViewInterface
- type EditColumnViewAbs
- type EditFilterView
- type EditSortView
- type FilterColumn
- type IColumnOwner
- type IData
- type Input
- type InputDialogWidget
- type Label
- type LayoutManager
- func (w *LayoutManager) Add(addMgr managerUI.Manager)
- func (w *LayoutManager) AddToBack(addMgr managerUI.Manager)
- func (w *LayoutManager) Contains(managerToFind managerUI.Manager) bool
- func (w *LayoutManager) ContainsViewName(viewName string) bool
- func (w *LayoutManager) GetManagerByViewName(managerViewNameToRemove string) managerUI.Manager
- func (w *LayoutManager) Layout(g *gocui.Gui) error
- func (w *LayoutManager) Remove(managerToRemove managerUI.Manager) managerUI.Manager
- func (w *LayoutManager) RemoveByName(managerViewNameToRemove string) managerUI.Manager
- func (w *LayoutManager) SetCurrentView(viewName string) bool
- func (w *LayoutManager) Top() managerUI.Manager
- type ListColumn
- type ListWidget
- func (asUI *ListWidget) FilterAndSortData()
- func (asUI *ListWidget) FilterRow(data IData) bool
- func (asUI *ListWidget) GetColumns() []*ListColumn
- func (asUI *ListWidget) GetFilterColumnMap() map[string]*FilterColumn
- func (asUI *ListWidget) GetListData() []IData
- func (asUI *ListWidget) GetSortColumns() []*SortColumn
- func (asUI *ListWidget) GetSortFunctions() []util.LessFunc
- func (asUI *ListWidget) HighlightKey() string
- func (w *ListWidget) Layout(g *gocui.Gui) error
- func (w *ListWidget) Name() string
- func (asUI *ListWidget) RefreshDisplay(g *gocui.Gui) error
- func (asUI *ListWidget) SetListData(listData []IData)
- func (asUI *ListWidget) SetSortColumns(sortColumns []*SortColumn)
- type MenuItem
- type SelectMenuWidget
- type SortColumn
Constants ¶
View Source
const ( MAX_SORT_COLUMNS = 5 AscendingText = "( " + UpArrow + " ascending )" DescendingText = "( " + DownArrow + " descending )" )
View Source
const ( // Unicode characters: http://graphemica.com/unicode/characters/page/34 DownArrow = string('\U00002193') UpArrow = string('\U00002191') DownArrowTiny = string('\U0000A71C') UpArrowTiny = string('\U0000A71B') TriangleUp = string('\U000025B4') TriangleDown = string('\U000025BE') RightArrow = string('\U00002192') LeftArrow = string('\U00002190') InfoIcon = string('\U00002139') Ellipsis = string('\U00002026') TwoDot = string('\U00002025') OneDot = string('\U00002024') CircleBackslash = string('\U000020E0') )
View Source
const LOCK_COLUMNS = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttentionType ¶ added in v0.7.8
type AttentionType int
Used to determine the attention level of each table's cell (specific field in a display table)
const ( ATTENTION_NORMAL AttentionType = iota ATTENTION_HOT ATTENTION_WARM ATTENTION_NOT_DESIRED_STATE ATTENTION_ACTIVITY )
type DisplayViewInterface ¶
type EditColumnViewAbs ¶
type EditColumnViewAbs struct {
// contains filtered or unexported fields
}
func NewEditColumnViewAbs ¶
func NewEditColumnViewAbs(masterUI masterUIInterface.MasterUIInterface, name string, listWidget *ListWidget) *EditColumnViewAbs
func (*EditColumnViewAbs) Name ¶
func (w *EditColumnViewAbs) Name() string
func (*EditColumnViewAbs) RefreshDisplay ¶
func (w *EditColumnViewAbs) RefreshDisplay(g *gocui.Gui) error
type EditFilterView ¶
type EditFilterView struct { *EditColumnViewAbs // contains filtered or unexported fields }
func NewEditFilterView ¶
func NewEditFilterView(masterUI masterUIInterface.MasterUIInterface, name string, listWidget *ListWidget) *EditFilterView
type EditSortView ¶
type EditSortView struct { *EditColumnViewAbs // contains filtered or unexported fields }
func NewEditSortView ¶
func NewEditSortView(masterUI masterUIInterface.MasterUIInterface, name string, listWidget *ListWidget) *EditSortView
type FilterColumn ¶
type FilterColumn struct {
// contains filtered or unexported fields
}
type IColumnOwner ¶ added in v0.7.8
type IColumnOwner interface{}
type Input ¶
type Input struct {
// contains filtered or unexported fields
}
type InputDialogWidget ¶
type InputDialogWidget struct {
// contains filtered or unexported fields
}
InputDialogWidget used for displaying a label and input field
func NewInputDialogWidget ¶
func NewInputDialogWidget( masterUI masterUIInterface.MasterUIInterface, name string, width, height int, labelText string, maxLength int, titleText string, helpText string, valueText string, applyValueCallback applyCallbackFunc) *InputDialogWidget
func (*InputDialogWidget) CloseWidget ¶
func (*InputDialogWidget) Name ¶
func (w *InputDialogWidget) Name() string
type LayoutManager ¶
type LayoutManager struct {
// contains filtered or unexported fields
}
func NewLayoutManager ¶
func NewLayoutManager() *LayoutManager
func (*LayoutManager) Add ¶
func (w *LayoutManager) Add(addMgr managerUI.Manager)
func (*LayoutManager) AddToBack ¶ added in v0.7.3
func (w *LayoutManager) AddToBack(addMgr managerUI.Manager)
func (*LayoutManager) Contains ¶
func (w *LayoutManager) Contains(managerToFind managerUI.Manager) bool
func (*LayoutManager) ContainsViewName ¶ added in v0.7.3
func (w *LayoutManager) ContainsViewName(viewName string) bool
func (*LayoutManager) GetManagerByViewName ¶
func (w *LayoutManager) GetManagerByViewName(managerViewNameToRemove string) managerUI.Manager
func (*LayoutManager) Remove ¶
func (w *LayoutManager) Remove(managerToRemove managerUI.Manager) managerUI.Manager
func (*LayoutManager) RemoveByName ¶
func (w *LayoutManager) RemoveByName(managerViewNameToRemove string) managerUI.Manager
func (*LayoutManager) SetCurrentView ¶ added in v0.7.3
func (w *LayoutManager) SetCurrentView(viewName string) bool
func (*LayoutManager) Top ¶
func (w *LayoutManager) Top() managerUI.Manager
type ListColumn ¶
type ListColumn struct {
// contains filtered or unexported fields
}
func NewListColumn ¶
func NewListColumn( id, label string, size int, columnType ColumnType, leftJustifyLabel bool, sortFunc util.LessFunc, defaultReverseSort bool, displayFunc getRowDisplayFunc, rawValueFunc getRowRawValueFunc, attentionFunc getRowAttentionFunc) *ListColumn
type ListWidget ¶
type ListWidget struct { Title string PreRowDisplayFunc preRowDisplayFunc // contains filtered or unexported fields }
func NewListWidget ¶
func NewListWidget(masterUI masterUIInterface.MasterUIInterface, name string, bottomMargin int, displayView DisplayViewInterface, columns []*ListColumn, columnOwner IColumnOwner) *ListWidget
func (*ListWidget) FilterAndSortData ¶
func (asUI *ListWidget) FilterAndSortData()
func (*ListWidget) FilterRow ¶
func (asUI *ListWidget) FilterRow(data IData) bool
func (*ListWidget) GetColumns ¶
func (asUI *ListWidget) GetColumns() []*ListColumn
func (*ListWidget) GetFilterColumnMap ¶
func (asUI *ListWidget) GetFilterColumnMap() map[string]*FilterColumn
func (*ListWidget) GetListData ¶ added in v0.7.6
func (asUI *ListWidget) GetListData() []IData
func (*ListWidget) GetSortColumns ¶ added in v0.7.9
func (asUI *ListWidget) GetSortColumns() []*SortColumn
func (*ListWidget) GetSortFunctions ¶
func (asUI *ListWidget) GetSortFunctions() []util.LessFunc
func (*ListWidget) HighlightKey ¶
func (asUI *ListWidget) HighlightKey() string
func (*ListWidget) Name ¶
func (w *ListWidget) Name() string
func (*ListWidget) RefreshDisplay ¶
func (asUI *ListWidget) RefreshDisplay(g *gocui.Gui) error
func (*ListWidget) SetListData ¶
func (asUI *ListWidget) SetListData(listData []IData)
func (*ListWidget) SetSortColumns ¶
func (asUI *ListWidget) SetSortColumns(sortColumns []*SortColumn)
type MenuItem ¶
type MenuItem struct {
// contains filtered or unexported fields
}
func NewMenuItem ¶
type SelectMenuWidget ¶
type SelectMenuWidget struct {
// contains filtered or unexported fields
}
func NewSelectMenuWidget ¶
func NewSelectMenuWidget( masterUI masterUIInterface.MasterUIInterface, name string, title string, menuItems []*MenuItem, menuItemSelectedCallback menuItemSelectedCallbackFunc) *SelectMenuWidget
func (*SelectMenuWidget) GetMenuSelection ¶
func (w *SelectMenuWidget) GetMenuSelection() *MenuItem
func (*SelectMenuWidget) Name ¶
func (w *SelectMenuWidget) Name() string
func (*SelectMenuWidget) RefreshDisplay ¶
func (w *SelectMenuWidget) RefreshDisplay(g *gocui.Gui) error
func (*SelectMenuWidget) SetMenuId ¶
func (w *SelectMenuWidget) SetMenuId(menuId string)
type SortColumn ¶
func NewSortColumn ¶
func NewSortColumn(id string, reverseSort bool) *SortColumn
Source Files ¶
Click to show internal directories.
Click to hide internal directories.