Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cleaning up some deprecated code calls (following upstream change).

  • Loading branch information...
commit 0e6f4f4d88e894e1e7e3a25bec3758acf7edc09c 1 parent 8373faf
Attila Király akiraly authored
4 jdk-1.5-parent/mbeanview-parent/mbeanview/src/main/java/org/wicketstuff/mbeanview/MBeansPanel.java
View
@@ -43,10 +43,10 @@
import javax.swing.tree.TreeModel;
import javax.swing.tree.TreeNode;
+import org.apache.wicket.AttributeModifier;
import org.apache.wicket.Component;
import org.apache.wicket.MarkupContainer;
import org.apache.wicket.ajax.AjaxRequestTarget;
-import org.apache.wicket.behavior.SimpleAttributeModifier;
import org.apache.wicket.extensions.markup.html.tree.Tree;
import org.apache.wicket.markup.html.IHeaderResponse;
import org.apache.wicket.markup.html.panel.EmptyPanel;
@@ -131,7 +131,7 @@ protected Component newNodeIcon(MarkupContainer parent, String id, TreeNode node
(mutableNode.getChildAt(0) instanceof AttributeNode ||
mutableNode.getChildAt(0) instanceof OperationNode || mutableNode.getChildAt(0) instanceof NotificationNode))
{
- return new EmptyPanel(id).add(new SimpleAttributeModifier("style", "width:0;"));
+ return new EmptyPanel(id).add(AttributeModifier.replace("style", "width:0;"));
}
}
return super.newNodeIcon(parent, id, node);
6 jdk-1.5-parent/minis-parent/minis/src/main/java/org/wicketstuff/minis/behavior/OnClickBehavior.java
View
@@ -18,8 +18,8 @@
import java.util.Arrays;
+import org.apache.wicket.AttributeModifier;
import org.apache.wicket.behavior.Behavior;
-import org.apache.wicket.behavior.SimpleAttributeModifier;
public class OnClickBehavior extends CompositeBehavior
{
@@ -27,8 +27,8 @@
public OnClickBehavior(final CharSequence url)
{
- super(Arrays.asList(new Behavior[] { new SimpleAttributeModifier("class", "clickable"),
- new SimpleAttributeModifier("onClick", "document.location.href='" + url + "';") }));
+ super(Arrays.asList(new Behavior[] { AttributeModifier.replace("class", "clickable"),
+ AttributeModifier.replace("onClick", "document.location.href='" + url + "';") }));
}
// onMouseOver="this.bgColor = '#C0C0C0'"
// onMouseOut
Please sign in to comment.
Something went wrong with that request. Please try again.