O1Library Docs
Fall 2023
Docs API

# HasReplaceableModel

o1.gui.mutable$.HasReplaceableModel
trait HasReplaceableModel[Model]

Add this trait on a view to enable discarding its model object for another.

## Attributes

Graph
Supertypes
  class Object
  trait Matchable
  class Any

## Members list

### Value members

#### Concrete methods

override def model: Model

the model object most recently set for the view.

the model object most recently set for the view.

## Attributes

See also

  model_=

Definition Classes
  HasModelField

def model_=(replacementModel: Model): Unit

Replaces the model object previously set for the view with the given one.

Replaces the model object previously set for the view with the given one.

## Attributes