/**
* Removes all components from the container. This should probably be
- * reimplemented in extending classes for a more powerfull implementation.
+ * re-implemented in extending classes for a more powerful implementation.
*/
public void removeAllComponents() {
final LinkedList l = new LinkedList();
* @param methodName
* the name of the method in target object, that receives
* button click events.
+ * @deprecated Use
+ * {@link #Button(String, com.itmill.toolkit.ui.Button.ClickListener)}
+ * instead. Using this method is discouraged because it cannot
+ * be checked during compilation.
*/
public Button(String caption, Object target, String methodName) {
this(caption);
package com.itmill.toolkit.ui;
+import java.lang.reflect.Method;
+
import com.itmill.toolkit.data.Property;
public class CheckBox extends Button {
* @param methodName
* the name of the method in target object, that receives
* button click events.
+ * @deprecated Use {@link #addListener(Class, Object, Method)} or
+ * {@link #addListener(com.itmill.toolkit.ui.Component.Listener)}
+ * instead. Using this method is discouraged because it cannot
+ * be checked during compilation.
*/
public CheckBox(String caption, Object target, String methodName) {
setCaption(caption);