void cut(boolean fireChangeEvent) { if (hasSelection && !passwordMode) { copy(); cursor = delete(fireChangeEvent); updateDisplayText(); } }
/** * Copies the selected contents of this TextField to the {@link Clipboard} implementation set on * this TextField, then removes it. */ public void cut() { if (hasSelection) { copy(); delete(); } }