private void fireDoInBackgroundListeners() { TaskEvent<Void> event = new TaskEvent(this, null); for(TaskListener<T, V> listener : taskListeners) { listener.doInBackground(event); } }
public TextActions(ApplicationContext context) { this.context = context; markerAction = new javax.swing.AbstractAction() { public void actionPerformed(ActionEvent e) { } }; textComponentCaretListener = new TextComponentCaretListener(); textComponentPCL = new TextComponentPCL(); getClipboard().addFlavorListener(new ClipboardListener()); }
/** * The value of the special Application ResourceMap resource * named "platform". By default the value of this resource * is "osx" if the underlying operating environment is Apple * OSX or "default". * * @return the value of the platform resource * @see #setPlatform */ public String getPlatform() { return getResourceMap().getString("platform"); }
/** * Deletes the entry specified by the {@code name} parameter. * * @param fileName the storage-dependent name * @throws IOException if the specified name is invalid, * or an internal entry cannot be deleted */ public boolean deleteFile(String fileName) throws IOException { checkFileName(fileName); return getLocalIO().deleteFile(fileName); }
private void fireInterruptedListeners(InterruptedException e) { TaskEvent<InterruptedException> event = new TaskEvent<InterruptedException>(this, e); for (TaskListener<T, V> listener : taskListeners) { listener.interrupted(event); } }
private synchronized LocalIO getLocalIO() { if (localIO == null) { localIO = getPersistenceServiceIO(); if (localIO == null) { localIO = new LocalFileIO(); } } return localIO; }
public TextActions(ApplicationContext context) { this.context = context; markerAction = new javax.swing.AbstractAction() { @Override public void actionPerformed(ActionEvent e) { } }; textComponentCaretListener = new TextComponentCaretListener(); textComponentPCL = new TextComponentPCL(); getClipboard().addFlavorListener(new ClipboardListener()); }
private void fireDoInBackgroundListeners() { TaskEvent<Void> event = new TaskEvent<Void>(this, null); for (TaskListener<T, V> listener : taskListeners) { listener.doInBackground(event); } }
private void fireInterruptedListeners(InterruptedException e) { TaskEvent<InterruptedException> event = new TaskEvent(this, e); for(TaskListener<T, V> listener : taskListeners) { listener.interrupted(event); } }
private synchronized LocalIO getLocalIO() { if (localIO == null) { localIO = getPersistenceServiceIO(); if (localIO == null) { localIO = new LocalFileIO(); } } return localIO; }