//Ankea/fi.jyu.ohj2.sourander.ankea.model/DeckManager
DeckManager¶
[JVM]\ open class DeckManager
Root domain model that owns all decks in the application.
Constructors¶
| DeckManager | [JVM] constructor() Creates an empty deck manager. |
Functions¶
| Name | Summary |
|---|---|
| addDeck | [JVM] open fun addDeck(deck: Deck) Adds a deck to the manager. |
| clearDecks | [JVM] open fun clearDecks() Removes all decks. |
| decksProperty | [JVM] open fun decksProperty(): ListProperty<Deck> Returns the decks list property. |
| getDeckCount | [JVM] open fun getDeckCount(): Int Returns the number of managed decks. |
| getDecks | [JVM] open fun getDecks(): ObservableList<Deck> Returns the observable list of decks. |
| removeDeck | [JVM] open fun removeDeck(deck: Deck): Boolean Removes a deck from the manager. |
| setDecks | [JVM] open fun setDecks(decks: ObservableList<Deck>) Replaces the decks list content. |
| toString | [JVM] open fun toString(): String |