use of cbit.rmi.event.ExportListener in project vcell by virtualcell.
the class TopLevelWindowManager method fireExportMessage.
/**
* Method to support listener events.
*/
protected void fireExportMessage(ExportEvent event) {
if (aExportListener == null) {
return;
}
;
int currentSize = aExportListener.size();
ExportListener tempListener = null;
for (int index = 0; index < currentSize; index++) {
tempListener = aExportListener.elementAt(index);
if (tempListener != null) {
tempListener.exportMessage(event);
}
;
}
;
}
use of cbit.rmi.event.ExportListener in project vcell by virtualcell.
the class VirtualFrapWindowManager method startExport.
public void startExport(Component requester, OutputContext outContext, ExportSpecs exportSpecs) {
try {
ExportServiceImpl exportServiceImpl = new ExportServiceImpl();
DataServerImpl dataServerImpl = new DataServerImpl(localWorkSpace.getDataSetControllerImpl(), exportServiceImpl);
exportServiceImpl.addExportListener(new ExportListener() {
public void exportMessage(ExportEvent event) {
System.out.println(event.toString());
}
});
exportServiceImpl.makeRemoteFile(null, LocalWorkspace.getDefaultOwner(), dataServerImpl, exportSpecs);
} catch (DataAccessException e) {
e.printStackTrace(System.out);
} catch (FileNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
use of cbit.rmi.event.ExportListener in project vcell by virtualcell.
the class VirtualFrapWindowManager method fireExportMessage.
/**
* Method to support listener events.
*/
protected void fireExportMessage(ExportEvent event) {
if (aExportListener == null) {
return;
}
;
int currentSize = aExportListener.size();
ExportListener tempListener = null;
for (int index = 0; index < currentSize; index++) {
tempListener = (ExportListener) aExportListener.elementAt(index);
if (tempListener != null) {
tempListener.exportMessage(event);
}
;
}
;
}
use of cbit.rmi.event.ExportListener in project vcell by virtualcell.
the class VirtualFrapWindowManager method startExportMovie.
public ExportEvent startExportMovie(ExportSpecs exportSpecs, OutputContext outputContext, ClientTaskStatusSupport clientTaskStatusSupport) throws Exception {
ExportEvent exportEvt = null;
ExportServiceImpl exportServiceImpl = new ExportServiceImpl();
DataServerImpl dataServerImpl = new DataServerImpl(localWorkSpace.getDataSetControllerImpl(), exportServiceImpl);
exportServiceImpl.addExportListener(new ExportListener() {
public void exportMessage(ExportEvent event) {
System.out.println(event.toString());
}
});
// the last parameter denotes whether the saved file is comporessed or not.
exportEvt = exportServiceImpl.makeRemoteFile(outputContext, LocalWorkspace.getDefaultOwner(), dataServerImpl, exportSpecs, false, clientTaskStatusSupport);
return exportEvt;
}
Aggregations