| 367 | } |
| 368 | |
| 369 | func (mui *MasterUI) checkIfUpdatableView(x interface{}) bool { |
| 370 | // Declare a type object representing UpdatableView |
| 371 | updatableView := reflect.TypeOf((*masterUIInterface.UpdatableView)(nil)).Elem() |
| 372 | // Get a type object of the pointer on the object represented by the parameter |
| 373 | // and see if it implements UpdatableView |
| 374 | return reflect.TypeOf(x).Implements(updatableView) |
| 375 | } |
| 376 | |
| 377 | func (mui *MasterUI) CloseViewByName(viewName string) error { |
| 378 | m := mui.layoutManager.GetManagerByViewName(viewName) |