Class

ch.waan.mcddpui.predef

ViewManagingCommandExecutor

Related Doc: package predef

Permalink

abstract class ViewManagingCommandExecutor[T] extends ErrorHandlingCommandExecutor[UIUniverse[T]] with ViewManagerLike[T]

A command executor internally holding and maintaining a ViewManager.

This class serves as a combination of both a commandExecutor and a ViewManager. Error Handling and an abstract method for custom update code (that executes along side the internal view updates) is provided.

T

the type of the data structure

Annotations
@throws( ... )
Version

1.1 (0.3.0), 2016-03-24

Since

MCDDPUI 0.3.0

Exceptions thrown

NullPointerException if record is null

Linear Supertypes
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ViewManagingCommandExecutor
  2. ViewManagerLike
  3. ErrorHandlingCommandExecutor
  4. CommandExecutor
  5. AnyRef
  6. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ViewManagingCommandExecutor(record: Record[UIUniverse[T]])

    Permalink

    record

    the Record the instance should operate on

    Exceptions thrown

    NullPointerException if record is null

Abstract Value Members

  1. abstract def customUpdate(universe: UIUniverse[T]): Unit

    Permalink

    Custom Update method

    Custom Update method

    This method is invoked alongside the internal updates of the views. This allows for updates of UI elements that are not directly associated with a view (e.g. a tool-bar in a window shared between views)

    Annotations
    @throws( ... )
    Exceptions thrown

    Throwable if any exceptional condition occurs

  2. abstract def handleException(ex: CommandExecutionException): Unit

    Permalink

    handles any CommandExecutionException thrown while executing any command.

    handles any CommandExecutionException thrown while executing any command.

    ex

    CommandExecutionException the exception to handle

    Definition Classes
    ErrorHandlingCommandExecutor

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to any2stringadd[ViewManagingCommandExecutor[T]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ViewManagingCommandExecutor[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to ArrowAssoc[ViewManagingCommandExecutor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def apply(c: MutationCommand[_ >: UIUniverse[T], _ <: UIUniverse[T]]): Unit

    Permalink

    executes a MutationCommand

    executes a MutationCommand

    c

    the MutationCommand to execute.

    Definition Classes
    ViewManagingCommandExecutorErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    MutationCommandExecutionException if any exceptional case occurs while executing the command.

    NullPointerException if the implementation chooses to disallow null commands.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  7. def apply(c: ManagerCommand): Unit

    Permalink

    executes a ManagerCommand

    executes a ManagerCommand

    c

    the ManagerCommand to execute.

    Definition Classes
    ViewManagingCommandExecutorErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    ManagerCommandExecutionException if any exceptional case occurs while executing the command.

    NullPointerException if the implementation chooses to disallow null commands.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  8. def apply(c: ReadCommand[_ >: UIUniverse[T]]): Unit

    Permalink

    executes a ReadCommand

    executes a ReadCommand

    c

    the ReadCommand to execute.

    Definition Classes
    ErrorHandlingCommandExecutorCommandExecutor
    Exceptions thrown

    NullPointerException if the implementation chooses to disallow null commands.

    ReadCommandExecutionException if any exceptional case occurs while executing the command.

    Note

    The implementation may decide whether or not null commands should be allowed. If null commands are not allowed by the implementation, any invocation with a null command should result in a NullPointerException. If however an implementation decides to allow null commands, such commands should be ignored. It is recommended to ensure consistent null handling over all methods.

  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (ViewManagingCommandExecutor[T]) ⇒ Boolean, msg: ⇒ Any): ViewManagingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to Ensuring[ViewManagingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (ViewManagingCommandExecutor[T]) ⇒ Boolean): ViewManagingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to Ensuring[ViewManagingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): ViewManagingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to Ensuring[ViewManagingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): ViewManagingCommandExecutor[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to Ensuring[ViewManagingCommandExecutor[T]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to StringFormat[ViewManagingCommandExecutor[T]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. val record: Record[UIUniverse[T]]

    Permalink

    the Record the instance should operate on

  26. def register(view: View[T]): Unit

    Permalink

    register a view.

    register a view.

    views may not be duplicates of already registered ones.

    view

    the view to register. may not be null, may not be bound, must be packed and may not be a duplicate of an already registered view

    Definition Classes
    ViewManagingCommandExecutorViewManagerLike
    Annotations
    @throws( ... ) @throws( ... )
    Exceptions thrown

    IllegalArgumentException if view is bound, unpacked or a duplicate

    NullPointerException if view is null

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def update(universe: UIUniverse[T]): List[View[T]]

    Permalink

    update the views from the data structure

    update the views from the data structure

    returns

    a list with all assigned views in the order of the view stack

    Definition Classes
    ViewManagingCommandExecutorViewManagerLike
    Annotations
    @throws( ... )
    Exceptions thrown

    IllegalStateException if no view was found to be used for the top-level view stack entry

    NullPointerException if u is null

    See also

    View for full documentation

  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. def [B](y: B): (ViewManagingCommandExecutor[T], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ViewManagingCommandExecutor[T] to ArrowAssoc[ViewManagingCommandExecutor[T]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from ViewManagerLike[T]

Inherited from CommandExecutor[UIUniverse[T]]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from ViewManagingCommandExecutor[T] to any2stringadd[ViewManagingCommandExecutor[T]]

Inherited by implicit conversion StringFormat from ViewManagingCommandExecutor[T] to StringFormat[ViewManagingCommandExecutor[T]]

Inherited by implicit conversion Ensuring from ViewManagingCommandExecutor[T] to Ensuring[ViewManagingCommandExecutor[T]]

Inherited by implicit conversion ArrowAssoc from ViewManagingCommandExecutor[T] to ArrowAssoc[ViewManagingCommandExecutor[T]]

Ungrouped