/** * 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) {
public BgIframeBehavior setLeft(final int value) { if (value < 0) options.remove("left"); else options.put("left", value); return this; }
public BgIframeBehavior setHeight(final int value) { if (value < 0) options.remove("height"); else options.put("height", value); return this; }
public BgIframeBehavior setHeight(final int value) { if (value < 0) options.remove("height"); else options.put("height", value); return this; }
public BgIframeBehavior setLeft(final int value) { if (value < 0) options.remove("left"); else options.put("left", value); return this; }
public DatePicker setDuration(final int value) { if (value <= 0) options.remove("duration"); else options.put("duration", value); return this; } public DatePicker setDuration(final AjaxRequestTarget target, final int value) {
public BgIframeBehavior setWidth(final int value) { if (value < 0) options.remove("width"); else options.put("width", value); return this; }
public BgIframeBehavior setTop(final int value) { if (value < 0) options.remove("top"); else options.put("top", value); return this; }
public BgIframeBehavior setTop(final int value) { if (value < 0) options.remove("top"); else options.put("top", value); return this; }
public BgIframeBehavior setWidth(final int value) { if (value < 0) options.remove("width"); else options.put("width", value); return this; }
/** * Sets the 'delay' property for this resizable. Please consult the * jquery documentation for a detailled description of this property. * @param value the delay in ms * @return this object */ public ResizableBehavior setDelay(final int value) { if (value <= 0) options.remove("delay"); else options.put("delay", value); return this; } public ResizableBehavior setDelay(final AjaxRequestTarget target, final int value) {
/** * Sets the 'constraintInput' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value {@code true} or {@code false}. * @return this object */ public DatePicker setConstraintInput(final boolean value) { if (!value) options.remove("constraintInput"); else options.put("constraintInput", value); return this; } public DatePicker setConstraintInput(final AjaxRequestTarget target, final boolean value) {
/** * Sets the 'maxDate' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value max date as String * @return this object */ public DatePicker setMaxDate(final String value) { if (value == null) options.remove("maxDate"); else options.put("maxDate", value); return this; } public DatePicker setMaxDate(final AjaxRequestTarget target, final String value) {
/** * Sets the 'showButtonPanel' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value {@code true} or {@code false}. * @return this object */ public DatePicker setShowButtonPanel(final boolean value) { if (!value) options.remove("showButtonPanel"); else options.put("showButtonPanel", value); return this; } public DatePicker setShowButtonPanel(final AjaxRequestTarget target, final boolean value) {
/** * Sets the 'showMonthAfterYear' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value {@code true} or {@code false}. * @return this object */ public DatePicker setShowMonthAfterYear(final boolean value) { if (!value) options.remove("showMonthAfterYear"); else options.put("showMonthAfterYear", value); return this; } public DatePicker setShowMonthAfterYear(final AjaxRequestTarget target, final boolean value) {
/** * Sets the 'showOtherMonths' property for this DatePicker. Please consult the * jQuery documentation for a detailed description of this property. * @param value {@code true} or {@code false}. * @return this object */ public DatePicker setShowOtherMonths(final boolean value) { if (!value) options.remove("showOtherMonths"); else options.put("showOtherMonths", value); return this; } public DatePicker setShowOtherMonths(final AjaxRequestTarget target, final boolean value) {
/** * Sets the 'snapTolerance' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * @param value the scroll speed in px * @return this object */ public DraggableBehavior setSnapTolerance(final int value) { if (value == 20) options.remove("snapTolerance"); else options.put("snapTolerance", value); return this; } public DraggableBehavior setSnapTolerance(final AjaxRequestTarget target, final int value) {
/** * Sets the 'zIndex' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * @param value the scroll speed in px * @return this object */ public DraggableBehavior setZIndex(final long value) { if (value <= 0) options.remove("zIndex"); else options.put("zIndex", value); return this; } public DraggableBehavior setZIndex(final AjaxRequestTarget target, final int value) {
/** * Sets the 'activeClass' property for this draggable. Please consult the * jQuery documentation for a detailled description of this property. * @param activeClass the CSS class' name * @return this object */ public DroppableBehavior setActiveClass(final String activeClass) { if (activeClass == null) options.remove("activeClass"); else options.put("activeClass", activeClass); return this; } public DroppableBehavior setActiveClass(final AjaxRequestTarget target, final String activeClass) {
public void connectWith(final Sortable<?> other) { Component otherSortable = other.get(Sortable.SORTABLE_COMPONENT_ID); if (other == null) throw new WicketRuntimeException("The provides Sortable has no sortable child with id '" + Sortable.SORTABLE_COMPONENT_ID + "'"); options.put(CONNECT_WITH_OPTION, "#" + otherSortable.getMarkupId()); }