/** * Sets the 'cursorAt' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * @param position a {@link CssPosition} * @return this object */ public DraggableBehavior setCursorAt(final CssPosition position, final int offset) { if (position == null) options.remove("cursorAt"); else options.put("cursorAt", new JsOption(position.getName(), offset)); return this; } public DraggableBehavior setCursorAt(final AjaxRequestTarget target, final CssPosition position, final int offset) {
/** * Sets the 'duration' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value duration * @return this object */ public DatePicker setDuration(final JQuerySpeed value) { if (value == null) options.remove("duration"); else options.put("duration", value.getSpeed()); return this; } public DatePicker setDuration(final AjaxRequestTarget target, final JQuerySpeed value) {
@Override protected JsBuilder getJsBuilder() { JsBuilder builder = new JsBuilder(); /* Normal processing */ builder.append("jQuery('#" + getComponent().getMarkupId() + "').bgiframe("); builder.append("{"); builder.append(options.toString(rawOptions)); builder.append("}"); builder.append(")"); return builder; }
/** * Sets the 'cursor' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * @param value a {@link CssCursor} * @return this object */ public DraggableBehavior setCursor(final CssCursor value) { if (value == null) options.remove("cursor"); else options.put("cursor", value.getName()); return this; } public DraggableBehavior setCursor(final AjaxRequestTarget target, final CssCursor value) {
/** A common parameter for all effects is the speed. You may control the speed in * predefined {@link JQuerySpeed} steps with this method * * @param value the desired speed or {@code null} to reset the speed to the default value. */ public AbstractJqueryUiEffect setSpeed(final JQuerySpeed value) { if (value == null) this.speed = null; else this.speed = "'" + value.getSpeed() + "'"; return this; }
/** * Sets the default 'placeholder' property for this sortable: 'ui-state-highlight'. Please consult the * jquery documentation for a detailled description of this property. * @return this object */ public SortableBehavior setPlaceholder() { options.put("placeholder", "ui-state-highlight"); return this; } public SortableBehavior setPlaceholder(final AjaxRequestTarget target) {
/** * Sets the 'cursorAt' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * * @param position a {@link CssPosition} * @return this object */ public DraggableBehavior setCursorAt(final CssPosition position, final int offset) { if (position == null) { this.options.remove("cursorAt"); } else { this.options.put("cursorAt", new JsOption(position.getName(), offset)); } return this; }
/** * Sets the 'cursor' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * * @param value a {@link CssCursor} * @return this object */ public DraggableBehavior setCursor(final CssCursor value) { if (value == null) { this.options.remove("cursor"); } else { this.options.put("cursor", value.getName()); } return this; }
public AbstractJqueryUiEffect setFadeInAfter(final JQuerySpeed speed) { if (speed == null) this.fadeInAfter = null; else this.fadeInAfter = "'" + speed.getSpeed() + "'"; return this; }
/** A common parameter for all effects is the speed. You may control the speed in * predefined {@link JQuerySpeed} steps with this method * * @param value the desired speed or {@code null} to reset the speed to the default value. */ public AbstractJqueryUiEffect setSpeed(final JQuerySpeed value) { if (value == null) this.speed = null; else this.speed = "'" + value.getSpeed() + "'"; return this; }
public AbstractJqueryUiEffect setFadeInAfter(final JQuerySpeed speed) { if (speed == null) this.fadeInAfter = null; else this.fadeInAfter = "'" + speed.getSpeed() + "'"; return this; }