com.emarson.lemonade.bluelemon.midp1
Class GaugeFactory

java.lang.Object
  extended by com.emarson.lemonade.bluelemon.midp1.GaugeFactory

public class GaugeFactory
extends Object

This class is the factory for creating instances of the Gauge object.


Constructor Summary
GaugeFactory()
          Constructs a new GaugeFactory object.
 
Method Summary
 Gauge createGauge(String label, Boolean isInteractive, int maxValue, int initialValue)
          Constructs a new Gauge object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GaugeFactory

public GaugeFactory()
Constructs a new GaugeFactory object.

It can be used to create multiple instances of the Gauge object

Usage examples:
   <blue:newInstance class="com/emarson/lemonade/bluelemon/midp1/GaugeFactory"
                     toVariable="gaugeFactory"/>
 
Method Detail

createGauge

public Gauge createGauge(String label,
                         Boolean isInteractive,
                         int maxValue,
                         int initialValue)
Constructs a new Gauge object.

Parameters:
label - the label String of this Gauge object
isInteractive - a Boolean indicating whether the Gauge is interactive
maxValue - the maximum value of this Gauge object
initialValue - the initial value of this Gauge object
Returns:
new instance of the Gauge object
Usage examples:
   <blue:call object="gaugeFactory" method="createGauge"
              toVariable="gauge">
     <blue:argument type="String" value="label"/>
     <blue:argument type="boolean" value="false"/>
     <blue:argument type="byte" value="40"/>
     <blue:argument type="byte" value="0"/>
   </blue:call>
 


Copyright © 2007 E-MARSON. All Rights Reserved.