|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--org.flashcards.Card
The Card class represents a flashcard, which has some text on the front and some text on the back.
| Field Summary | |
private java.lang.String |
back
|
private java.awt.Color |
backColor
|
private java.lang.String |
front
|
private java.awt.Color |
frontColor
|
| Constructor Summary | |
Card()
Construct a new flashcard. |
|
Card(java.lang.String front,
java.lang.String back)
Construct a new flashcard with front and back set to the given text. |
|
| Method Summary | |
void |
flip()
Flip the card. |
java.lang.String |
getBack()
Return the back of the flashcard. |
java.awt.Color |
getBackColor()
Return the back color. |
java.lang.String |
getFront()
Return the front of the flashcard. |
java.awt.Color |
getFrontColor()
Return the front color. |
void |
setBack(java.lang.String back)
Set the back of the flashcard to the given text. |
void |
setBackColor(java.awt.Color c)
Set the back color. |
void |
setFront(java.lang.String front)
Set the front of the flashcard to the given text. |
void |
setFrontColor(java.awt.Color c)
Set the front color. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private java.lang.String front
private java.lang.String back
private java.awt.Color frontColor
private java.awt.Color backColor
| Constructor Detail |
public Card()
public Card(java.lang.String front,
java.lang.String back)
| Method Detail |
public java.lang.String getFront()
public void setFront(java.lang.String front)
public java.lang.String getBack()
public void setBack(java.lang.String back)
public java.awt.Color getFrontColor()
public void setFrontColor(java.awt.Color c)
public java.awt.Color getBackColor()
public void setBackColor(java.awt.Color c)
public void flip()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||