VASSAL.build.module
Class InternetDiceButton

java.lang.Object
  |
  +--VASSAL.build.AbstractBuildable
        |
        +--VASSAL.build.AbstractConfigurable
              |
              +--VASSAL.build.module.DiceButton
                    |
                    +--VASSAL.build.module.InternetDiceButton
All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable

public class InternetDiceButton
extends DiceButton

This component places a button into the controls window toolbar. Pressing the button generates random numbers and displays the result in the Chatter


Inner classes inherited from class VASSAL.build.module.DiceButton
DiceButton.IconConfig
 
Inner classes inherited from class VASSAL.build.AutoConfigurable
AutoConfigurable.Util
 
Field Summary
protected  DieManager dieManager
           
 
Fields inherited from class VASSAL.build.module.DiceButton
BUTTON_TEXT, DEPRECATED_NAME, HOTKEY, ICON, launch, N_DICE, N_SIDES, NAME, nDice, nSides, plus, PLUS, PROMPT_ALWAYS, promptAlways, ran, REPORT_TOTAL, reportTotal
 
Fields inherited from class VASSAL.build.AbstractConfigurable
changeSupport, config, name
 
Fields inherited from class VASSAL.build.AbstractBuildable
buildComponents
 
Fields inherited from interface VASSAL.build.Configurable
NAME_PROPERTY
 
Constructor Summary
InternetDiceButton()
           
 
Method Summary
 void addTo(Buildable parent)
          Expects to be added to the DieManager.
protected  void DR()
          Ask the die manager to do our roll!
static java.lang.String getConfigureTypeName()
           
 HelpFile getHelpFile()
           
 void removeFrom(Buildable b)
          Remove this component from its parent
 
Methods inherited from class VASSAL.build.module.DiceButton
getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getAttributeVisibility, getComponent, getReportPrefix, getReportSuffix, setAttribute
 
Methods inherited from class VASSAL.build.AbstractConfigurable
addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, remove, setConfigureName
 
Methods inherited from class VASSAL.build.AbstractBuildable
add, build, getBuildComponents, getBuildElement, getComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface VASSAL.build.Buildable
add, build, getBuildElement
 

Field Detail

dieManager

protected DieManager dieManager
Constructor Detail

InternetDiceButton

public InternetDiceButton()
Method Detail

getConfigureTypeName

public static java.lang.String getConfigureTypeName()

DR

protected void DR()
Ask the die manager to do our roll!
Overrides:
DR in class DiceButton

addTo

public void addTo(Buildable parent)
Expects to be added to the DieManager.
Overrides:
addTo in class DiceButton

removeFrom

public void removeFrom(Buildable b)
Description copied from interface: Configurable
Remove this component from its parent
Overrides:
removeFrom in class DiceButton

getHelpFile

public HelpFile getHelpFile()
Overrides:
getHelpFile in class DiceButton
Following copied from interface: VASSAL.build.Configurable
Returns:
a HelpFilte describing how to use and configure this component