public class Presenter extends Object
Constructor and Description |
---|
Presenter()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addCitation(String citekey,
String text)
called when a citation is added
|
void |
addTextToolBar(boolean enableCommands) |
void |
changeTemplateName(String templateName) |
void |
cleanAll()
remove the user-added components from the workspace, and from the model
|
void |
cleanAllNotSession()
just clean the page
|
void |
cleanWorkspace()
remove the user-added components from the workspace (in the current page) but not from the model
|
void |
clearExportPanel() |
void |
discardCurrentSection()
to remove the current displayed section
|
void |
enableBiblioEntry(com.google.gwt.user.client.ui.RichTextArea d4sArea)
enable the format text toolbar for the given Rich Textarea passed as argument
|
void |
enableTextToolBar(com.google.gwt.user.client.ui.RichTextArea d4sArea)
enable the format text toolbar for the given Rich Textarea passed as argument
|
void |
exportReportToRSG()
Export To the Reports Store Gateway
|
void |
generateFiMES(TemplateModel model)
generate the docx to be passed to the fimesExporter
|
void |
generateManifestation(TemplateModel model,
ExportManifestationType type) |
AddCommentEvent |
getComponentComments(com.google.gwt.user.client.ui.Widget toCheck)
look if a comment with a specific metadata (that indicate sit is a comment)
exists in the current report model:
|
String |
getCurrentScope() |
RichTextToolbar |
getCurrentSelected() |
UserBean |
getCurrentUser() |
com.google.gwt.event.shared.HandlerManager |
getEventBus() |
com.google.gwt.user.client.ui.HorizontalPanel |
getExportsPanel() |
Headerbar |
getHeader() |
String |
getHost() |
Coords |
getInsertionPoint() |
boolean |
getMenuForWorkflowDocument() |
TemplateModel |
getModel() |
int |
getSelectedIndex() |
TitleBar |
getTitleBar() |
ToolboxPanel |
getToolBoxPanel() |
VMETypeIdentifier |
getTypeIdFromString(String theType)
this method translate the VME ReportRef String in an ENUM
|
void |
getUrl()
Get URL from browser
|
WorkspacePanel |
getWp() |
boolean |
hasBibliography()
look if a section with a specific metadata (that indicate sit is a biblio section)
exists in the current report model:
check whether the last section has Metadata "isBiblio" = "true" or false
|
boolean |
hasComments(com.google.gwt.user.client.ui.Widget toCheck)
look if a comment with a specific metadata (that indicate sit is a comment)
exists in the current report model:
|
void |
importSection(org.gcube.portlets.d4sreporting.common.shared.Model toLoad,
int sectionNoToimport,
int beforeSection,
boolean asLastSection)
Import a Section in the View and in the Model
|
void |
importVMETemplate(VMETypeIdentifier type) |
void |
newDoc() |
void |
nextPageButtonClicked()
called when nextPage Button is Clicked
|
void |
openAddCitationDialog() |
void |
openManageCitationsDialog() |
void |
openTemplate(String templateToOpen,
String templateObjectID,
boolean isTemplate)
load the template to edit in the MODEL and in the VIEW
|
void |
placeTemplatePageElements(int section)
It places back the user added widgets (TemplateComponents) in the page
|
void |
prevPageButtonClicked()
called when prevPage Button is Clicked
|
void |
refreshWorkspace()
refresh the root in the workspace
|
boolean |
removeCitation(String citekey) |
void |
resizeTemplateComponentInModel(com.google.gwt.user.client.ui.Widget toResize,
int newWidth,
int newHeight)
Resize the template componet just the model
|
void |
resizeWorkingArea(int width,
int height) |
void |
saveReport()
Save the current report in a given folder
|
void |
saveReport(String folderid,
String name)
Save the current report
|
void |
seekLastPage()
in case someone imported a new section
|
void |
seekSection(int sect2Seek)
in case someone imported a new section
|
void |
setAreaForBiblio(com.google.gwt.user.client.ui.RichTextArea d4sArea) |
void |
setClientSequenceSelected(ClientSequence toSet) |
void |
setCurrCursorPos(int y) |
void |
setExportsPanel(com.google.gwt.user.client.ui.HorizontalPanel exportsPanel) |
void |
setHeader(Headerbar header) |
void |
setMenuForWorkflowDocument(boolean enable) |
void |
setTitleBar(TitleBar titleBar) |
void |
setToolBoxPanel(ToolboxPanel toolBoxPanel) |
void |
setWp(WorkspacePanel wp) |
void |
showExportPanel(String filePath,
String itemName,
org.gcube.portlets.widgets.exporter.shared.TypeExporter type,
String tempFileId) |
void |
showExportSaveOptions(String filePath,
String itemName,
org.gcube.portlets.widgets.exporter.shared.TypeExporter type)
when export is done this method is called
|
void |
showLoading() |
void |
showOpenOptions() |
void |
showUploadFilePopup()
show the upload file popup
|
void |
showVMEDeleteDialog(VMETypeIdentifier refType) |
void |
showVMEImportDialog() |
void |
showVMERefAssociateDialog(VMETypeIdentifier refType) |
void |
showVMEReportRefImportDialog(VMETypeIdentifier refType) |
void |
toggleReportStructure()
show/hide the structure view
|
void |
updateWorkflowDocument(boolean update)
Save the current report in a given folder
|
public com.google.gwt.event.shared.HandlerManager getEventBus()
public void setClientSequenceSelected(ClientSequence toSet)
public void showOpenOptions()
public void showLoading()
public void openTemplate(String templateToOpen, String templateObjectID, boolean isTemplate)
templateToOpen
- the name of the template to open without extension nor pathtemplateObjectID
- the id in the folder of the template to openisTemplate
- true if you are opening a template false if you are opening a reportpublic void addCitation(String citekey, String text)
citekey
- .text
- .public boolean removeCitation(String citekey)
public boolean hasBibliography()
public boolean hasComments(com.google.gwt.user.client.ui.Widget toCheck)
public AddCommentEvent getComponentComments(com.google.gwt.user.client.ui.Widget toCheck)
public void discardCurrentSection()
public void setTitleBar(TitleBar titleBar)
titleBar
- ,public String getHost()
public void cleanAll()
public void cleanWorkspace()
public void saveReport(String folderid, String name)
folderid
- the id where to save the reportpublic void saveReport()
public void updateWorkflowDocument(boolean update)
public void changeTemplateName(String templateName)
templateName
- .public void getUrl()
public void importSection(org.gcube.portlets.d4sreporting.common.shared.Model toLoad, int sectionNoToimport, int beforeSection, boolean asLastSection)
toLoad
- the SerializableModel instance where toget the sectionsectionNoToimport
- section to import 0 -> n-1beforeSection
- say where to import this section (before)asLastSection
- say to import this section as last section in the curren template / reportpublic void seekLastPage()
public void seekSection(int sect2Seek)
sect2Seek
- .public void addTextToolBar(boolean enableCommands)
public void enableTextToolBar(com.google.gwt.user.client.ui.RichTextArea d4sArea)
d4sArea
- the enabled text areapublic void enableBiblioEntry(com.google.gwt.user.client.ui.RichTextArea d4sArea)
d4sArea
- the enabled text areapublic void generateFiMES(TemplateModel model)
model
- public void generateManifestation(TemplateModel model, ExportManifestationType type)
model
- .type
- .public void openAddCitationDialog()
public void openManageCitationsDialog()
public Headerbar getHeader()
public TemplateModel getModel()
public ToolboxPanel getToolBoxPanel()
public WorkspacePanel getWp()
public void nextPageButtonClicked()
public void cleanAllNotSession()
public void placeTemplatePageElements(int section)
section
- . the section number of the wanted TemplateComponent(s)public void setCurrCursorPos(int y)
y
- .public Coords getInsertionPoint()
public int getSelectedIndex()
public void prevPageButtonClicked()
public void resizeTemplateComponentInModel(com.google.gwt.user.client.ui.Widget toResize, int newWidth, int newHeight)
toResize
- .newWidth
- .newHeight
- .public void resizeWorkingArea(int width, int height)
width
- .height
- .public void setHeader(Headerbar header)
header
- .public void setToolBoxPanel(ToolboxPanel toolBoxPanel)
toolBoxPanel
- It's the tool box panelpublic void setWp(WorkspacePanel wp)
wp
- .public String getCurrentScope()
public UserBean getCurrentUser()
public TitleBar getTitleBar()
public void refreshWorkspace()
public void showUploadFilePopup()
public RichTextToolbar getCurrentSelected()
public void setMenuForWorkflowDocument(boolean enable)
public boolean getMenuForWorkflowDocument()
public void setAreaForBiblio(com.google.gwt.user.client.ui.RichTextArea d4sArea)
public void toggleReportStructure()
public com.google.gwt.user.client.ui.HorizontalPanel getExportsPanel()
public void setExportsPanel(com.google.gwt.user.client.ui.HorizontalPanel exportsPanel)
public void showExportSaveOptions(String filePath, String itemName, org.gcube.portlets.widgets.exporter.shared.TypeExporter type)
filePath
- itemName
- type
- public void showExportPanel(String filePath, String itemName, org.gcube.portlets.widgets.exporter.shared.TypeExporter type, String tempFileId)
public void clearExportPanel()
public void newDoc()
public void showVMEImportDialog()
public void showVMEReportRefImportDialog(VMETypeIdentifier refType)
public void showVMERefAssociateDialog(VMETypeIdentifier refType)
public void showVMEDeleteDialog(VMETypeIdentifier refType)
public void importVMETemplate(VMETypeIdentifier type)
public void exportReportToRSG()
public VMETypeIdentifier getTypeIdFromString(String theType) throws Exception
theType
- Exception
Copyright © 2014. All Rights Reserved.