org.codehaus.groovy.binding
Class SwingTimerFullBinding

java.lang.Object
  extended by org.codehaus.groovy.binding.AbstractFullBinding
      extended by org.codehaus.groovy.binding.SwingTimerFullBinding
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, BindingUpdatable, FullBinding

 class SwingTimerFullBinding
extends AbstractFullBinding
implements java.awt.event.ActionListener

Since:
Groovy 1.1
Version:
$Revision: 7797 $
Author:
Danno Ferrin

Field Summary
(package private)  boolean bound
           
(package private)  long duration
           
(package private)  boolean repeat
           
(package private)  boolean reportElapsed
           
(package private)  boolean reportFraction
           
(package private)  boolean reportSteps
           
(package private)  long startTime
           
(package private)  int stepSize
           
(package private)  javax.swing.Timer timer
           
 
Fields inherited from class org.codehaus.groovy.binding.AbstractFullBinding
converter, reverseConverter, sourceBinding, targetBinding, validator
 
Constructor Summary
SwingTimerFullBinding(ClosureSourceBinding source, TargetBinding target)
           
SwingTimerFullBinding(SourceBinding source, TargetBinding target, int interval, int duration)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void bind()
          Causes automatic updating of bound values to be turned on.
 long getDuration()
           
 int getInterval()
           
 int getStepSize()
           
 boolean isCoalesce()
           
 boolean isRepeat()
           
 boolean isReportElapsed()
           
 boolean isReportFraction()
           
 boolean isReportSteps()
           
 void rebind()
          Causes the current bindings to be reset.
(package private)  void resetTimer()
           
 void setCoalesce(boolean coalesce)
           
 void setDuration(long duration)
           
 void setInterval(int interval)
           
 void setRepeat(boolean repeat)
           
 void setReportElapsed(boolean reportElapsed)
           
 void setReportFraction(boolean reportFraction)
           
 void setReportSteps(boolean reportSteps)
           
 void setStepSize(int stepSize)
           
 void unbind()
          Causes automatic updating of bound values to be turned off.
 
Methods inherited from class org.codehaus.groovy.binding.AbstractFullBinding
getConverter, getReverseConverter, getSourceBinding, getTargetBinding, getValidator, reverseUpdate, setConverter, setReverseConverter, setSourceBinding, setTargetBinding, setValidator, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

timer

javax.swing.Timer timer

startTime

long startTime

duration

long duration

stepSize

int stepSize

reportSteps

boolean reportSteps

reportFraction

boolean reportFraction

reportElapsed

boolean reportElapsed

repeat

boolean repeat

bound

boolean bound
Constructor Detail

SwingTimerFullBinding

SwingTimerFullBinding(ClosureSourceBinding source,
                      TargetBinding target)

SwingTimerFullBinding

SwingTimerFullBinding(SourceBinding source,
                      TargetBinding target,
                      int interval,
                      int duration)
Method Detail

resetTimer

void resetTimer()

bind

public void bind()
Description copied from interface: BindingUpdatable
Causes automatic updating of bound values to be turned on. This is idempotent between calls to unbind and rebind; i.e. multiple calls to bind will have only the effect of the first call.

Specified by:
bind in interface BindingUpdatable

unbind

public void unbind()
Description copied from interface: BindingUpdatable
Causes automatic updating of bound values to be turned off. This is idempotent between calls to bind and rebind; i.e. multiple calls to unbind will have only the effect of the first call.

Specified by:
unbind in interface BindingUpdatable

rebind

public void rebind()
Description copied from interface: BindingUpdatable
Causes the current bindings to be reset. If the binding is not bound, it is a no-op. If the binding is bound, it will be turned off, then turned on against current values.

Specified by:
rebind in interface BindingUpdatable

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

getDuration

public long getDuration()

setDuration

public void setDuration(long duration)

getInterval

public int getInterval()

setInterval

public void setInterval(int interval)

getStepSize

public int getStepSize()

setStepSize

public void setStepSize(int stepSize)

isCoalesce

public boolean isCoalesce()

setCoalesce

public void setCoalesce(boolean coalesce)

isReportSteps

public boolean isReportSteps()

setReportSteps

public void setReportSteps(boolean reportSteps)

isReportFraction

public boolean isReportFraction()

setReportFraction

public void setReportFraction(boolean reportFraction)

isReportElapsed

public boolean isReportElapsed()

setReportElapsed

public void setReportElapsed(boolean reportElapsed)

isRepeat

public boolean isRepeat()

setRepeat

public void setRepeat(boolean repeat)


Copyright © ${year} The Codehaus. All Rights Reserved.