}
@Override protected CharSequence getOnReadyScript() {
StringBuilder onReady = new StringBuilder("$('#" + getComponent().getMarkupId() + "').Resizable(");
options.set("onStop", new FunctionString("cropCallback"));
options.set("onDragStop", new FunctionString("cropCallback"));
options.set("onResize", new FunctionString("function(size, position) {\n this.style.backgroundPosition = '-' + (position.left) + 'px -' + (position.top) + 'px'; \n}\n"));
options.set("onDrag", new FunctionString("function(x, y) {\n this.style.backgroundPosition = '-' + (x) + 'px -' + (y) + 'px'; \n}\n"));
options.set("handlers", new FunctionString("{ se: '#resizeSE', e: '#resizeE', ne: '#resizeNE', n: '#resizeN', nw: '#resizeNW', w: '#resizeW', sw: '#resizeSW', s: '#resizeS' }\n"));
onReady.append(options.toString(false));
onReady.append(");");
return onReady;