standup.clouds
Class CloudButtonOldJokes
java.lang.Object
standup.clouds.EntityAnimatedInteractive
standup.clouds.EntityAnimatedInteractiveBubbleLabel
standup.clouds.CloudButton
standup.clouds.CloudButtonOldJokes
- All Implemented Interfaces:
- Entity, EntityAnimated
- Direct Known Subclasses:
- CloudButtonOldJokesAll, CloudButtonOldJokesFavourites, CloudButtonOldJokesLexeme, CloudButtonOldJokesTopic, CloudButtonOldJokesType, CloudButtonOldJokesWord
public abstract class CloudButtonOldJokes
- extends CloudButton
A CloudButton
that, when selected by the user, displays a set of
previously generated jokes that satisfy the current user profile's joke
constraints.
- Author:
- Ruli Manurung
Method Summary |
Milestone |
executeClick()
This is the default action that is performed when a CloudButton
is clicked, i.e.:
Perform the appropriate animations: 'shrink' siblings, move to
centre, 'grow' children, and
Update progress map if necessary, and
Return a Milestone representing the user's interaction
choice. |
abstract JokeSet |
getJokeSet()
|
Methods inherited from class standup.clouds.CloudButton |
clicked, getCentreChild, getCentreSize, getMaxChildrenDisplay, getMessage, getOffsetAngle, getParent, getPeripheralChildren, getRingSize, layoutCloudLabel, prepareForAnimation, removeChild, setCentreChild, setLocation, setMessage, setPeripheralChildren, setSize, showMessage, showMessage, step |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
jokeIDs
String jokeIDs
CloudButtonOldJokes
public CloudButtonOldJokes(CloudFrontend f,
CloudButton p,
CloudLabel bl,
CloudLabel help)
getJokeSet
public abstract JokeSet getJokeSet()
executeClick
public Milestone executeClick()
- Description copied from class:
CloudButton
This is the default action that is performed when a CloudButton
is clicked, i.e.:
- Perform the appropriate animations: 'shrink' siblings, move to
centre, 'grow' children, and
- Update progress map if necessary, and
- Return a
Milestone
representing the user's interaction
choice.
Override this method if: -- you want this Lubble to perform other things
when first clicked, e.g. joke generation (make sure to call
super.getMilestone to return the Milestone!) -- you just want to perform
some stuff that doesn't end up as a Milestone on the HistoryCoordinator
(make sure to return null)
- Overrides:
executeClick
in class CloudButton
- Returns: