1 18 19 package org.apache.struts.webapp.tiles.portal; 20 21 import org.apache.struts.action.ActionForm; 22 23 24 27 public final class MenuSettingsForm extends ActionForm { 28 29 30 protected String validate; 31 32 protected String [] empty = {}; 33 34 protected String [] selected; 35 36 39 public void setSelected( String array[] ) 40 { 41 selected = array; 42 } 43 44 47 public String [] getSelected() 48 { 49 return selected; 50 } 51 52 55 public String [] getSelectedChoices() 56 { 57 return empty; 58 } 59 60 63 public boolean isSubmitted() 64 { 65 return validate != null; 66 } 67 68 71 public void setValidate( String value) 72 { 73 this.validate = value; 74 } 75 76 79 public void reset() 80 { 81 selected = empty; 82 validate = null; 83 } 84 } 85 86 | Popular Tags |