Skip to content

//Ankea/fi.jyu.ohj2.sourander.ankea.model/Flashcard

Flashcard

[JVM]\ open class Flashcard

Represents a single flashcard with a front side, a back side, and a view count.

Constructors

Flashcard [JVM]
constructor()
Creates an empty flashcard.
constructor(front: String, back: String)
Creates a flashcard with the given front and back text.

Functions

Name Summary
backProperty [JVM]
open fun backProperty(): StringProperty
Returns the back side property.
frontProperty [JVM]
open fun frontProperty(): StringProperty
Returns the front side property.
getBack [JVM]
open fun getBack(): String
Returns the back side text.
getFront [JVM]
open fun getFront(): String
Returns the front side text.
getViewCount [JVM]
open fun getViewCount(): Int
Returns the view count.
incrementViewCount [JVM]
open fun incrementViewCount()
Increments the card view count by one.
setBack [JVM]
open fun setBack(back: String)
Updates the back side text.
setFront [JVM]
open fun setFront(front: String)
Updates the front side text.
setViewCount [JVM]
open fun setViewCount(viewCount: Int)
Updates the view count.
toString [JVM]
open fun toString(): String
viewCountProperty [JVM]
open fun viewCountProperty(): IntegerProperty
Returns the view count property.