All pastes #479810 Raw Edit

justnulling2

public java v1 · immutable
·published 2007-05-09 22:15 UTC
rendered paste body
package testcode;import javax.faces.model.SelectItem;public class Test {	public Test() {	}	boolean dsb= true;	boolean checkbox = true;		  public SelectItem getSiTRUE() {		  return new SelectItem(Boolean.TRUE, "test");		     }	  		     public void setDsb(final Boolean[] values) {		  this.dsb = values != null && values.length != 0;		     }		     		     		     public Boolean[] getDsb() {		  return !this.dsb ? null : new Boolean[] { Boolean.TRUE };		     }			public boolean isCheckbox() {				return checkbox;			}			public void setCheckbox(boolean checkbox) {				this.checkbox = checkbox;			}		}