
com.dakuupa.struts.dto.RadioYesNoPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of struts2-crud-template Show documentation
Show all versions of struts2-crud-template Show documentation
Provides Struts 2 developers with easy to use framework for building CRUD (Create, read, update, delete) applications using convention over
configuration. Includes several utility classes to facilitate quick Struts 2 app development.
The newest version!
package com.dakuupa.struts.dto;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author etwilliams
*/
public class RadioYesNoPair {
public static final String YES_KEY = "yes";
public static final String YES_DESCRIPTION = "Yes";
public static final String NO_KEY = "no";
public static final String NO_DESCRIPTION = "No";
public final static KeyValuePair YES_OPTION = new KeyValuePair(YES_KEY, YES_DESCRIPTION);
public final static KeyValuePair NO_OPTION = new KeyValuePair(NO_KEY, NO_DESCRIPTION);
public static List getRadioOptions(){
List radioOptions = new ArrayList();
radioOptions.add(YES_OPTION);
radioOptions.add(NO_OPTION);
return radioOptions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy