/** * My X at X of Component * <p> * * @param myX * @param atX * @param of */ public PositionOptions(PositionLocationHorizontal myX, PositionLocationHorizontal atX, Component of) { this.myX = myX; this.atX = atX; this.of = of.getID(true); }
/** * My X at X of Component * <p> * * @param myX * @param atX * @param of */ public PositionOptions(PositionLocationHorizontal myX, PositionLocationHorizontal atX, Component of) { this.myX = myX; this.atX = atX; this.of = of.getID(true); }
/** * @param snapComponent * A selector specifying which elements to snap to. */ @NotNull @SuppressWarnings("unchecked") public J setSnapComponent(Component snapComponent) { this.snapComponent = snapComponent.getID(true); return (J) this; }
/** * Constrains dragging to within the bounds of the specified element or region. * * @param containment * The component to contain to */ @NotNull @SuppressWarnings("unchecked") public J setContainment(Component containment) { this.containment = containment.getID(true); return (J) this; }
/** * Specify a component to use as a helper component. Warning : This component will be made invisible. * * @param helperComponent * The component to set it to */ @NotNull @SuppressWarnings("unchecked") public J setHelperComponent(Component helperComponent) { this.helperComponent = helperComponent.getID(true); return (J) this; }
/** * @param snapComponent * A selector specifying which elements to snap to. */ @NotNull @SuppressWarnings("unchecked") public J setSnapComponent(Component snapComponent) { this.snapComponent = snapComponent.getID(true); return (J) this; }
/** * Set the component * * @param comp */ @NotNull @SuppressWarnings("unchecked") public J setOf(Component comp) { of = comp.getID(true); return (J) this; }
/** * Set the component * * @param comp */ @NotNull @SuppressWarnings("unchecked") public J setOf(Component comp) { of = comp.getID(true); return (J) this; }
/** * @param snapComponent * A selector specifying which elements to snap to. */ @NotNull @SuppressWarnings("unchecked") public J setSnapComponent(Component snapComponent) { this.snapComponent = snapComponent.getID(true); return (J) this; }
/** * Which element the draggable helper should be appended to while dragging. * * @param appendTo * Which element the draggable helper should be appended to while dragging. */ @NotNull @SuppressWarnings("unchecked") public J setAppendTo(Component appendTo) { this.appendTo = appendTo.getID(true); return (J) this; }
/** * Sets the component that must resize with this component * * @param alsoSize * The component */ @SuppressWarnings("unchecked") @NotNull public J setAlsoSize(Component alsoSize) { this.alsoSize = alsoSize.getID(true); return (J) this; }
/** * Which element the draggable helper should be appended to while dragging. * * @param appendTo * Which element the draggable helper should be appended to while dragging. */ @NotNull @SuppressWarnings("unchecked") public J setAppendTo(Component appendTo) { this.appendTo = appendTo.getID(true); return (J) this; }
/** * Which element the selectable helper should be appended to while dragging. * * @param appendTo * Which element the selectable helper should be appended to while dragging. */ @SuppressWarnings("unchecked") @NotNull public J setAppendTo(Component appendTo) { this.appendTo = appendTo.getID(true); return (J) this; }
/** * Which element the selectable helper should be appended to while dragging. * * @param appendTo * Which element the selectable helper should be appended to while dragging. */ @SuppressWarnings("unchecked") @NotNull public J setAppendTo(Component appendTo) { this.appendTo = appendTo.getID(true); return (J) this; }
/** * Constrains dragging to within the bounds of the specified element or region. * * @param containment * The component to contain to */ @NotNull @SuppressWarnings("unchecked") public J setContainment(Component containment) { this.containment = containment.getID(true); return (J) this; }
/** * Set the component * * @param comp */ @NotNull @SuppressWarnings("unchecked") public J setOf(Component comp) { of = comp.getID(true); return (J) this; }
/** * Constrains dragging to within the bounds of the specified element or region. * * @param containment * The component to contain to */ @NotNull @SuppressWarnings("unchecked") public J setContainment(Component containment) { this.containment = containment.getID(true); return (J) this; }
/** * Replaces the # with a . * * @return */ @NotNull @Override public String getID() { return super.getID() .replace(StaticStrings.CHAR_HASH, StaticStrings.CHAR_DOT); }
/** * Replaces the # with a . * * @return */ @NotNull @Override public String getID() { return super.getID() .replace(StaticStrings.CHAR_HASH, StaticStrings.CHAR_DOT); }
/** * Replaces the # with a . * * @return */ @NotNull @Override public String getID() { return super.getID() .replace(StaticStrings.CHAR_HASH, StaticStrings.CHAR_DOT); }