mvc

package module
v0.0.0-...-6e8b2b8 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Class_View    = "goui.ui.core.mvc.View"
	Class_XmlView = "goui.ui.core.mvc.XMLView"
)

Variables

View Source
var (
	MD_View = base.Extend(core.MD_Control, Class_View,
		base.MDSettingConstructor(constructorView),
		base.MDSettingAggregationDef{base.AggregationDef{Name: "content", Cardinality: "0..n", Type: core.TypeCheckControl}},
		base.MDSettingPropertyDef{base.PropertyDef{Name: "width", Type: core.PropTypeCSSSize, DefaultValue: core.CSSSizeOf("100%")}},
		base.MDSettingPropertyDef{base.PropertyDef{Name: "height", Type: core.PropTypeCSSSize, DefaultValue: core.CSSSizeOf("100%")}},
	).(core.ControlMetaData)
	MD_XmlView = base.Extend(MD_View, Class_XmlView,
		base.MDSettingConstructor(constructorXmlView),
	).(core.ControlMetaData)
)

Functions

func RegisterController

func RegisterController(name string, cf ControllerFactory)

Types

type ContentFactory

type ContentFactory func(ViewFactory) []core.Control

type Controller

type Controller interface {
	Handler(name string) (com.EventHandler, bool)
	Init()
	Destroy()
}

type ControllerFactory

type ControllerFactory func(view View) Controller

func LoadController

func LoadController(name string) (ControllerFactory, bool)

type View

type View interface {
	core.Control
}

type ViewCreator

type ViewCreator func() View

func NewXMLView

func NewXMLView(name string, r io.Reader) ViewCreator

type ViewFactory

type ViewFactory interface {
	ViewId(string) string
}

type XMLView

type XMLView interface {
	View
}

Directories

Path Synopsis
brick module

Jump to

Keyboard shortcuts

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