standup.clouds
Class CloudButtonNewJokeType

java.lang.Object
  extended by standup.clouds.EntityAnimatedInteractive
      extended by standup.clouds.EntityAnimatedInteractiveBubbleLabel
          extended by standup.clouds.CloudButton
              extended by standup.clouds.CloudButtonNewJoke
                  extended by standup.clouds.CloudButtonNewJokeType
All Implemented Interfaces:
Entity, EntityAnimated

public class CloudButtonNewJokeType
extends CloudButtonNewJoke

A CloudButton that, when selected by the user, calls the Backend to get a new joke of a specific type that satisfies the current user profile's joke constraints.

Author:
Ruli Manurung

Nested Class Summary
 
Nested classes/interfaces inherited from class standup.clouds.CloudButton
CloudButton.LineMode
 
Field Summary
private  JokeStructure generatedJoke
           
(package private)  JokeType type
           
 
Fields inherited from class standup.clouds.CloudButtonNewJoke
joke
 
Fields inherited from class standup.clouds.CloudButton
message, progressMapStage
 
Fields inherited from class standup.clouds.EntityAnimatedInteractiveBubbleLabel
bubbleLabel, cloudLabelLayout, myShape
 
Fields inherited from class standup.clouds.EntityAnimatedInteractive
containingPanel, frontend
 
Constructor Summary
CloudButtonNewJokeType(CloudFrontend f, CloudButton p, CloudLabel bl, JokeType t)
          Constructore for getting a new joke -- by topic
 
Method Summary
(package private)  CloudButtonNewJoke getAnotherLubbleNewJoke()
           
(package private)  JokeStructure getJokeStructure()
           
 String getLogFileText()
           
(package private)  CloudButtonOldJokes getLubbleOldJokes()
           
 
Methods inherited from class standup.clouds.CloudButtonNewJoke
executeClick, showMessage, showMessage
 
Methods inherited from class standup.clouds.CloudButton
clicked, getCentreChild, getCentreSize, getMaxChildrenDisplay, getMessage, getOffsetAngle, getParent, getPeripheralChildren, getRingSize, layoutCloudLabel, prepareForAnimation, removeChild, setCentreChild, setLocation, setMessage, setPeripheralChildren, setSize, step
 
Methods inherited from class standup.clouds.EntityAnimatedInteractiveBubbleLabel
contains, draw, getBubbleLabel, getCurrentDimension, getCurrentLocation, getSpeechText
 
Methods inherited from class standup.clouds.EntityAnimatedInteractive
dehighlight, getHelpText, highlight, isHighlighted, speakSpeechText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

final JokeType type

generatedJoke

private JokeStructure generatedJoke
Constructor Detail

CloudButtonNewJokeType

public CloudButtonNewJokeType(CloudFrontend f,
                              CloudButton p,
                              CloudLabel bl,
                              JokeType t)
Constructore for getting a new joke -- by topic

Parameters:
p -
t -
Method Detail

getLogFileText

public String getLogFileText()
Specified by:
getLogFileText in class EntityAnimatedInteractive

getAnotherLubbleNewJoke

CloudButtonNewJoke getAnotherLubbleNewJoke()
Specified by:
getAnotherLubbleNewJoke in class CloudButtonNewJoke

getJokeStructure

JokeStructure getJokeStructure()
Specified by:
getJokeStructure in class CloudButtonNewJoke

getLubbleOldJokes

CloudButtonOldJokes getLubbleOldJokes()
Specified by:
getLubbleOldJokes in class CloudButtonNewJoke