Show / Hide Table of Contents

Class ViewModelBase

The base viewmodel implementation should be used instead of implementing ViewModel yourself.

Inheritance
java.lang.Object
ViewModelBase
Implements
de.saxsys.mvvmfx.ViewModel
Inherited Members
java.lang.Object.clone()
java.lang.Object.equals(java.lang.Object)
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.hashCode()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.toString()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)
Namespace:
Assembly: .dll
Syntax
public abstract class ViewModelBase implements ViewModel

Constructors

ViewModelBase()

Declaration
public ViewModelBase()

Fields

dialogHelper

The DialogHelper that can be used to show dialogs from the viewmodel.

Declaration
protected DialogHelper dialogHelper
Field Value
Type Description
DialogHelper

Methods

makeCommand(Runnable runnable)

Creates a DelegateCommand whose action is to run the given Runnable.

Declaration
protected Command makeCommand(Runnable runnable)
Parameters
Type Name Description
java.lang.Runnable runnable

The runnable that should be ran

Returns
Type Description
de.saxsys.mvvmfx.utils.commands.Command

A command

Implements

de.saxsys.mvvmfx.ViewModel
In This Article
Back to top Generated by DocFX