|
19 | 19 | import java.io.IOException; |
20 | 20 | import java.util.Map; |
21 | 21 |
|
22 | | -import org.apache.commons.logging.Log; |
23 | | -import org.apache.commons.logging.LogFactory; |
24 | 22 | import org.htmlunit.SgmlPage; |
25 | 23 | import org.htmlunit.javascript.host.event.Event; |
26 | 24 | import org.htmlunit.javascript.host.event.MouseEvent; |
|
45 | 43 | public class HtmlButton extends HtmlElement implements DisabledElement, SubmittableElement, |
46 | 44 | LabelableElement, ValidatableElement { |
47 | 45 |
|
48 | | - private static final Log LOG = LogFactory.getLog(HtmlButton.class); |
| 46 | + // private static final Log LOG = LogFactory.getLog(HtmlButton.class); |
49 | 47 |
|
50 | 48 | /** The HTML tag represented by this element. */ |
51 | 49 | public static final String TAG_NAME = "button"; |
@@ -115,31 +113,36 @@ public NameValuePair[] getSubmitNameValuePairs() { |
115 | 113 | /** |
116 | 114 | * {@inheritDoc} |
117 | 115 | * |
| 116 | + * This implementation is empty; buttons have no reset-specific behavior. |
| 117 | + * |
118 | 118 | * @see SubmittableElement#reset() |
119 | 119 | */ |
120 | 120 | @Override |
121 | 121 | public void reset() { |
122 | | - LOG.debug("reset() not implemented for this element"); |
| 122 | + // Empty. |
123 | 123 | } |
124 | 124 |
|
125 | 125 | /** |
126 | 126 | * {@inheritDoc} |
127 | 127 | * |
| 128 | + * This implementation is empty; buttons do not maintain a default value. |
| 129 | + * |
128 | 130 | * @see SubmittableElement#setDefaultValue(String) |
129 | 131 | */ |
130 | 132 | @Override |
131 | 133 | public void setDefaultValue(final String defaultValue) { |
132 | | - LOG.debug("setDefaultValue() not implemented for this element"); |
| 134 | + // Empty. |
133 | 135 | } |
134 | 136 |
|
135 | 137 | /** |
136 | 138 | * {@inheritDoc} |
137 | 139 | * |
| 140 | + * This implementation returns an empty string; buttons do not maintain a default value. |
| 141 | + * |
138 | 142 | * @see SubmittableElement#getDefaultValue() |
139 | 143 | */ |
140 | 144 | @Override |
141 | 145 | public String getDefaultValue() { |
142 | | - LOG.debug("getDefaultValue() not implemented for this element"); |
143 | 146 | return ""; |
144 | 147 | } |
145 | 148 |
|
|
0 commit comments