Example #1
0
 /* (non-Javadoc)
  * @see de.jwic.samples.sample3.ValueStrategy#getFormated()
  */
 public String getFormated() {
   NumberFormat nf = NumberFormat.getInstance();
   nf.setMaximumFractionDigits(1);
   nf.setMinimumFractionDigits(1);
   return nf.format(model.getC()) + " C" + "\u00b0";
 }
Example #2
0
 /* (non-Javadoc)
  * @see de.jwic.samples.sample3.ValueStrategy#increase()
  */
 public void increase() {
   model.setC(model.getC() + 1);
 }
Example #3
0
 /* (non-Javadoc)
  * @see de.jwic.samples.sample3.ValueStrategy#decrease()
  */
 public void decrease() {
   model.setC(model.getC() - 1);
 }
Example #4
0
 /* (non-Javadoc)
  * @see de.jwic.samples.sample3.ValueStrategy#get()
  */
 public double get() {
   return model.getC();
 }