Hi,
NateBot2000 a écrit :
> Alrighty, I figured it out. Clean and very simple (let me know if there's a
> better way to do this):
>
> package com.*******.web.dashboard;
>
> import org.wicketstuff.dojo.markup.html.floatingpane.DojoFloatingPane;
> import org.wicketstuff.dojo.widgets.StyleAttribute;
>
> public class DashboardPane extends DojoFloatingPane {
>
> protected static final long serialVersionUID = 1L;
>
> private final static String LEFT = "left";
> private final static String TOP = "top";
>
> private String left = "0px";
> private String top = "0px";
>
> public DashboardPane( String id )
> {
> super(id);
> }
>
> public final void setLeft(String left)
> {
> this.left = left;
> }
>
> public final void setTop(String top)
> {
> this.top = top;
> }
>
> protected void onStyleAttribute(StyleAttribute styleAttribute)
> {
> styleAttribute.put(LEFT, left);
> styleAttribute.put(TOP, top);
> }
> }
>
Yes it is the good way if you want set top and left with java.
Actually the style attribute priroty is the following :
file.css < style attribute in html < styleAttribute added in java
but maybe it would be great to add top and left setter on the
StylingWebMarkupContainer ?
--
Vincent
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user