View Javadoc
1 /* 2 * CounterBean.java 3 * 4 * Created on February 7, 2003, 9:49 AM 5 */ 6 7 package com.mlw.fps.view.bean; 8 9 /*** 10 * 11 * @author Matthew Wilson 12 */ 13 public class CounterBean 14 { 15 private int counter2 = 0; 16 17 /*** Creates a new instance of CounterBean 18 */ 19 public CounterBean() 20 { 21 } 22 23 /*** Getter for property counter2. 24 * @return Value of property counter2. 25 */ 26 public int getCounter2() 27 { 28 return (counter2 = (counter2+1)%2); 29 } 30 31 public String getStyleClass2() 32 { 33 return "rowhilight"+getCounter2(); 34 } 35 }

This page was automatically generated by Maven