//cast to YuiGalleryContext for using the yui gallery java api.
final YuiGalleryContext Y = Y_.cast();
//redefine parent loading the new Y sandbox.
Node p = Y.one(parent.getDOMNode());
//we want to work with NodeTransform2d nod extension, so we simply cast the node to that class:
final NodeTransform2d n1 = p.appendChild("<p>click me first</p>").cast();
//set fixed bounds
n1.setStyles(Style.create().backgroundColor("red").fontSize("24px").
width("100px").height("70px"));