Exemple #1
0
 void cut(boolean fireChangeEvent) {
   if (hasSelection && !passwordMode) {
     copy();
     cursor = delete(fireChangeEvent);
     updateDisplayText();
   }
 }
Exemple #2
0
 /**
  * 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();
   }
 }