Class SimpleListModel<T,E extends DetailModel<T>>
java.lang.Object
cz.masci.springfx.mvci.model.list.SimpleListModel<T,E>
- All Implemented Interfaces:
Focusable,ListModel<E>,Removable<E>,Selectable<E>,Updatable
public class SimpleListModel<T,E extends DetailModel<T>>
extends Object
implements ListModel<E>, Focusable
-
Property Summary
Properties -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DirtyListProperty<E>protected Runnableprotected Runnableprotected final org.reactfx.value.Var<E> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidRuns predefined runnable.javafx.collections.ObservableList<E>voidremoveElement(E element) org.reactfx.value.Var<E>voidselectElement(E item) voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface cz.masci.springfx.mvci.model.list.Focusable
setOnFocusViewMethods inherited from interface cz.masci.springfx.mvci.model.list.Removable
setOnRemoveElementMethods inherited from interface cz.masci.springfx.mvci.model.list.Selectable
setOnSelectElementMethods inherited from interface cz.masci.springfx.mvci.model.list.Updatable
setOnUpdateElementsProperty
-
Property Details
-
selectedElement
- Specified by:
selectedElementPropertyin interfaceSelectable<T>
-
-
Field Details
-
elements
-
selectedElement
-
onSelectElement
-
onUpdateElementsProperty
-
onRemoveElement
-
onFocusView
-
-
Constructor Details
-
SimpleListModel
public SimpleListModel()
-
-
Method Details
-
getElements
- Specified by:
getElementsin interfaceSelectable<T>
-
selectedElementProperty
- Specified by:
selectedElementPropertyin interfaceSelectable<T>
-
removeElement
- Specified by:
removeElementin interfaceRemovable<T>
-
updateElementsProperty
public void updateElementsProperty()- Specified by:
updateElementsPropertyin interfaceUpdatable
-
selectElement
- Specified by:
selectElementin interfaceSelectable<T>
-
focusView
public void focusView()Description copied from interface:FocusableRuns predefined runnable.
-