public abstract class AbstractImageExporter extends AbstractImagePlugin implements ImageExporter
SwingWorker.doInBackground()
with
the actual export logic along with proper notifications of monitor members.
The done()
is already implemented as it informs monitors that the
export has finished, but deriving class might want to override it (ensuring
to call base version first!), if cleanup or additional post-processing is
desired. All parameters from #export(ImageExportDef)
, which is
fully implemented and need not be overriden, are exposed within the
protected member with an identical name.SwingWorker.StateValue
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_TOOTLIP
Property key for tooltip
|
protected ImageExportDef |
exportDef
Upload definition objects
|
protected Component |
parent
UI parent component; may be null if not provided
|
selectorId
configuration
Constructor and Description |
---|
AbstractImageExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
done() |
void |
export(ImageExportDef uploadDef,
Component parent)
Initiates and executes the image export process.
|
String |
getTooltip(Locale locale)
Retrieves tooltip from plugin's configuration.
|
setSelectorId
initialize
addPropertyChangeListener, cancel, doInBackground, execute, firePropertyChange, get, get, getProgress, getPropertyChangeSupport, getState, isCancelled, isDone, process, publish, removePropertyChangeListener, run, setProgress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setSelectorId
initialize
public static final String CONFIG_TOOTLIP
protected ImageExportDef exportDef
protected Component parent
public void export(ImageExportDef uploadDef, Component parent)
ImageExporter
export
in interface ImageExporter
uploadDef
- export processing parametersprotected void done()
done
in class SwingWorker<Void,Void>
public String getTooltip(Locale locale)
CONFIG_TOOTLIP
, dot is
ConfigLoader.PARAM_SEPARATOR
, and ISO is Locale.getISO3Language()
.
If locale specific value is not found, a second search is done just
for CONFIG_TOOTLIP
. If that yields no result, null is
returned.getTooltip
in interface ImageExporter
locale
- language localeCopyright © 2012-2013 Bambi Software Foundation. All Rights Reserved.