|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| This report was generated with an evaluation server license. Purchase Clover or configure your license. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| CheckboxPluginConfigType | Line # 9 | 5 | 0% | 2 | 7 | 0% |
0.0
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| No Tests | |||
| 1 | package net.sourceforge.pebble.plugins; | |
| 2 | ||
| 3 | import javax.servlet.jsp.JspWriter; | |
| 4 | import java.io.IOException; | |
| 5 | ||
| 6 | /** | |
| 7 | * @author James Roper | |
| 8 | */ | |
| 9 | public class CheckboxPluginConfigType implements PluginConfigType { | |
| 10 | ||
| 11 | public static final CheckboxPluginConfigType INSTANCE = new CheckboxPluginConfigType(); | |
| 12 | ||
| 13 | 0 |
public void render(JspWriter writer, PluginConfig pluginConfig, String value) throws IOException { |
| 14 | 0 | writer.print("<input type=\"checkbox\" name=\""); |
| 15 | 0 | writer.print(PLUGIN_PROPERTY_NAME_PREFIX); |
| 16 | 0 | writer.print(pluginConfig.getKey()); |
| 17 | 0 | writer.print("\" value=\"true\"/>"); |
| 18 | } | |
| 19 | ||
| 20 | 0 |
public String validate(PluginConfig pluginConfig, String value) { |
| 21 | // Success | |
| 22 | 0 | return null; |
| 23 | } | |
| 24 | } | |
|
||||||||||||