/** * Sets model path. * * @param modelPath * the model path */ public void setModelPath(String modelPath) { this.modelPath = modelPath; fileSaveCallback.setModelPath(modelPath); } }
@SuppressWarnings("unused") public void onFailure(int reason, String description) { if (fileOpenCallback != null) { fileOpenCallback.cancel(actionHandler, context); } }
/** * Sets model path. * * @param modelPath * the model path */ public void setModelPath(String modelPath) { this.modelPath = modelPath; fileOpenCallback.setModelPath(modelPath); } }
/** * Constructs a new {@code OpenFileAsBinaryPropertyAction} instance. */ public SaveBinaryPropertyAsFileAction() { fileSaveCallback = new ConnectorValueGetterCallback(); setFileSaveCallback(fileSaveCallback); }
/** * Constructs a new <code>OpenFileAsBinaryPropertyAction</code> instance. */ public OpenFileAsBinaryPropertyAction() { setFileOpenCallback(new ConnectorValueSetterCallback()); }
public void prepareFile(OutputStream out) { if (fileSaveCallback != null) { fileSaveCallback.fileChosen(out, context); } } }, getFileChooser(context));
@SuppressWarnings("unused") public void onFailure(int reason, String description) { if (fileSaveCallback != null) { fileSaveCallback.cancel(context); } }
/** * {@inheritDoc} */ @Override public void fileChosen(InputStream in, String filePath, IActionHandler actionHandler, Map<String, Object> context) { super.fileChosen(in, filePath, actionHandler, context); actionHandler.execute(action, context); }
/** * Constructs a new <code>SaveBinaryPropertyAsFileAction</code> instance. */ public SaveBinaryPropertyAsFileAction() { setFileSaveCallback(new ConnectorValueGetterCallback()); }
/** * Constructs a new {@code OpenFileAsBinaryPropertyAction} instance. */ public OpenFileAsBinaryPropertyAction() { fileOpenCallback = new ConnectorValueSetterCallback(); setFileOpenCallback(fileOpenCallback); }
/** * {@inheritDoc} */ @Override public void writeToContent(OutputStream out) throws IOException { source.fileChosen(getName(), out, actionHandler, context); } }
/** * Sets model path. * * @param modelPath * the model path */ public void setModelPath(String modelPath) { this.modelPath = modelPath; fileSaveCallback.setModelPath(modelPath); } }
/** * Sets model path. * * @param modelPath * the model path */ public void setModelPath(String modelPath) { this.modelPath = modelPath; fileOpenCallback.setModelPath(modelPath); } }
/** * {@inheritDoc} */ @Override public void fileChosen(String name, InputStream in, IActionHandler actionHandler, Map<String, Object> context) { super.fileChosen(name, in, actionHandler, context); actionHandler.execute(action, context); }
/** * Constructs a new <code>SaveBinaryPropertyAsFileAction</code> instance. */ public SaveBinaryPropertyAsFileAction() { setFileSaveCallback(new ConnectorValueGetterCallback()); }
/** * Constructs a new {@code OpenFileAsBinaryPropertyAction} instance. */ public OpenFileAsBinaryPropertyAction() { fileOpenCallback = new ConnectorValueSetterCallback(); setFileOpenCallback(fileOpenCallback); }
/** * Constructs a new <code>OpenFileAsBinaryPropertyAction</code> instance. */ public SaveBinaryPropertyAsFileAction() { setFileSaveCallback(new ConnectorValueGetterCallback()); }
/** * Constructs a new <code>OpenFileAsBinaryPropertyAction</code> instance. */ public OpenFileAsBinaryPropertyAction() { setFileOpenCallback(new ConnectorValueSetterCallback()); }
/** * Constructs a new <code>SaveBinaryPropertyAsFileAction</code> instance. */ public SaveBinaryPropertyAsFileAction() { setFileSaveCallback(new ConnectorValueGetterCallback()); }
/** * Constructs a new {@code OpenFileAsBinaryPropertyAction} instance. */ public SaveBinaryPropertyAsFileAction() { fileSaveCallback = new ConnectorValueGetterCallback(); setFileSaveCallback(fileSaveCallback); }