Package com.draagon.util

Examples of com.draagon.util.Param


    else if ( mode == EDIT )
    {
        Collection<Param> days = new ArrayList<Param>();
       
        if ( getEmptyString() != null ) {
          days.add( new Param( getEmptyString(), "" ));
        }
       
        for ( int i = 1; i < 32; i++ ) {
          days.add( new Param( "" + i, "" + i ));
        }
     
        String selStr = (sel <= 0 || sel > 31 ) ? "" : "" + sel;

        HtmlViewHelper.drawSelectBox( page, label, selStr, days, params );
View Full Code Here


    else if ( mode == EDIT )
    {
      Collection<Param> years = new ArrayList<Param>();
     
      if ( getEmptyString() != null ) {
        years.add( new Param( getEmptyString(), "" ));
      }
     
      for ( int i = min; i <= max; i++ ) {
        years.add( new Param( "" + i, "" + i ));
      }
     
      String sel = (year < min) ? "" : "" + ( year - min + 1 );

      HtmlViewHelper.drawSelectBox( page, label, sel, years, params );
View Full Code Here

    {
      Collection<Param> data = new ArrayList<Param>();
     
      // Check to see if we want a -- as default value in month select
      if ( getEmptyString() != null ) {
        data.add( new Param( getEmptyString(), "" ));
      }
      int i = 1;
      for ( String m : months ) {
        data.add( new Param( m, "" + i ));
        i++;
      }
     
      String selStr = null;
      if ( sel > 0 ) selStr = "" + sel;
View Full Code Here

TOP

Related Classes of com.draagon.util.Param

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.