You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by eh...@apache.org on 2006/11/08 07:17:34 UTC
svn commit: r472401 -
/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
Author: ehillenius
Date: Tue Nov 7 22:17:34 2006
New Revision: 472401
URL: http://svn.apache.org/viewvc?view=rev&rev=472401
Log:
removed unused code
Modified:
incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
Modified: incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java
URL: http://svn.apache.org/viewvc/incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java?view=diff&rev=472401&r1=472400&r2=472401
==============================================================================
--- incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java (original)
+++ incubator/wicket/branches/wicket-1.x/wicket/src/main/java/wicket/markup/html/form/FormComponent.java Tue Nov 7 22:17:34 2006
@@ -30,7 +30,6 @@
import java.util.Locale;
import java.util.Map;
-import wicket.AttributeModifier;
import wicket.Component;
import wicket.Localizer;
import wicket.Page;
@@ -87,44 +86,6 @@
* The form component
*/
public void formComponent(FormComponent formComponent);
- }
-
- /**
- * Attribute modifier model that returns 'disabled' if a form component is
- * disabled or null otherwise (resulting in no attribute being appended).
- */
- private final class DisabledAttributeModel extends Model
- {
- private static final long serialVersionUID = 1L;
-
- /**
- * @see wicket.model.IModel#getObject(wicket.Component)
- */
- public Object getObject(Component component)
- {
- return (FormComponent.this.isActionAuthorized(ENABLE) && FormComponent.this.isEnabled())
- ? null
- : "disabled";
- }
- }
-
- /**
- * Attribute modifier that adds 'disabled="disabled"' to the component tag's
- * attribute if a form component is disabled.
- */
- private static final class DisabledAttributeModifier extends AttributeModifier
- {
- private static final long serialVersionUID = 1L;
-
- /**
- * Construct.
- *
- * @param model
- */
- public DisabledAttributeModifier(DisabledAttributeModel model)
- {
- super("disabled", true, model);
- }
}
/**