public class ControlHandler extends DataHandler
fileChooserInstance| Constructor and Description |
|---|
ControlHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelDataModification(ControlView view)
Annule les modifications en cours reset les données data, et
reload le validator.
|
void |
categoryChanged(ControlView controlView,
ActionEvent event)
Selection d'une nouvelle categories dans la liste des categories.
|
void |
checkData(ControlView view)
Check project.
|
protected void |
clearAllSelection(ControlView controlView)
Vide la selection des 4 tables pour que le bean en cours d'edition
soit vidé et que le changement de categories n'arrive pas
dans un etat de selection incoherent.
|
void |
controlDataTableSelectionChanged(ControlView view)
Called when selection change to display selected bean
in edition panel.
|
void |
deleteData(ControlView view)
Supprime la ligne en cours d'edition (apres confirmation).
|
protected void |
deletedSelectedDataLines(ControlView controlView)
Delete selected line in data table (called from context menu).
|
protected void |
disableValidAction(ControlView view)
Desactive le bouton de validation du control.
|
void |
displayCompareNumberCatchGraph(ControlView view)
Display data graph, initialized with graph for first specy
selected in specyComboModel.
|
void |
displayCompareNumberCatchGraph(ControlView view,
String selectedSpecies)
Display data graph, initialized with graph for selected specy
selected.
|
void |
displayLengthStructureGraph(ControlView view)
Display lengthStructure matrix in matrixviewerpanel.
|
void |
displayLengthStructureGraph(ControlView view,
String species)
Display lengthStructure matrix in matrixviewerpanel.
|
void |
displayLogReport(ControlView controlView)
Genere le log des modifications faites lors du control en HTML
et l'ouvre dans le navigateur systeme.
|
protected void |
generateHTMLReport(ControlView controlView)
Generate global error table model data as html report.
|
protected JTable |
getControlDataTable(ControlView controlView)
Return l'intance de la table qui est selectionnée.
|
void |
globalErrorTableMouseClicked(ControlView controlView,
MouseEvent event)
Affiche le menu contextuel de l'arbre qui contient les erreurs de
validation globales ou les graphes de comparaison captures/taille
dans le cas d'un double clic sur une
SpeciesControlError. |
void |
init(ControlView controlView)
Init control view.
|
void |
performFindAndReplace(ControlFindReplaceDialog replaceView)
Perform find and replace.
|
void |
redoCommands(ControlView controlView,
List<Command> commands)
Redo commands.
|
void |
saveControl(ControlView view)
Save project after control and display message.
|
protected void |
saveProjectControl(ControlView view)
Save project after control.
|
protected void |
scrollToVisible(JTable table,
int rowIndex,
int vColIndex)
Scroll le viewport de la table à la ligne demandée.
|
protected void |
selectAllErrorGroupLines(ControlView controlView,
CoserConstants.Category category,
org.jdesktop.swingx.treetable.TreeTableNode lastNode)
Selectionne toutes les lignes associés au erreur d'un groupe d'erreur.
|
protected void |
selectAllErrorGroupLines(ControlView controlView,
org.jdesktop.swingx.treetable.TreeTableNode lastNode,
boolean scrollToVisible)
Methode recursive qui selection toutes les lignes correspondant à un
groupe d'erreurs.
|
void |
showDataTableContextMenu(ControlView controlView,
MouseEvent event)
Affiche le menu contextuel de la table qui contient les données.
|
void |
showSelectedError(ControlView view,
TreeSelectionEvent event)
Selectionne, dans la table des données, la ligne correspondant
a l'erreur selectionnée dans la table des erreurs.
|
void |
undoCommands(ControlView controlView,
int commandsCount)
Undo commands.
|
void |
updateCompareNumberCatchGraph(ControlGraphFrame view)
Met a jour le graphique lorsque la selection de l'espece change.
|
protected void |
updateEditionPanel(ControlView view,
CoserConstants.Category category,
String[] header,
String[] line)
Contruit le panel d'edition du bean.
|
void |
validControl(ControlView view)
Set validated control flag to true and save control.
|
void |
validDataModification(ControlView view)
Valide les modifications faites sur le bean actuellement edité.
|
displayLengthStructureGraphbrowseFile, getFileChooserInstance, setDefaultCursor, setWaitCursorpublic void init(ControlView controlView)
controlView - view to initprotected JTable getControlDataTable(ControlView controlView)
controlView - viewpublic void categoryChanged(ControlView controlView, ActionEvent event)
controlView - controlViewevent - eventprotected void clearAllSelection(ControlView controlView)
controlView - controlViewpublic void showDataTableContextMenu(ControlView controlView, MouseEvent event)
controlView - viewevent - mouse eventprotected void deletedSelectedDataLines(ControlView controlView)
controlView - viewpublic void performFindAndReplace(ControlFindReplaceDialog replaceView)
replaceView - viewpublic void checkData(ControlView view)
view - viewpublic void controlDataTableSelectionChanged(ControlView view)
view - viewpublic void showSelectedError(ControlView view, TreeSelectionEvent event)
view - viewevent - selection eventpublic void globalErrorTableMouseClicked(ControlView controlView, MouseEvent event)
SpeciesControlError.controlView - viewevent - mouse eventSpeciesControlErrorprotected void selectAllErrorGroupLines(ControlView controlView, CoserConstants.Category category, org.jdesktop.swingx.treetable.TreeTableNode lastNode)
controlView - controlViewcategory - la categorie pour switcher les tableslastNode - validationGroupprotected void selectAllErrorGroupLines(ControlView controlView, org.jdesktop.swingx.treetable.TreeTableNode lastNode, boolean scrollToVisible)
controlView - lastNode - scrollToVisible - allow to scroll to visibleprotected void scrollToVisible(JTable table, int rowIndex, int vColIndex)
table - tablerowIndex - lignevColIndex - colonneprotected void generateHTMLReport(ControlView controlView)
controlView - protected void updateEditionPanel(ControlView view, CoserConstants.Category category, String[] header, String[] line)
null.view - viewcategory - categoryheader - headerline - line to editpublic void saveControl(ControlView view)
view - viewprotected void saveProjectControl(ControlView view)
view - viewpublic void displayCompareNumberCatchGraph(ControlView view)
view - viewpublic void displayCompareNumberCatchGraph(ControlView view, String selectedSpecies)
view - viewselectedSpecies - if not null (auto select species in combo box)public void displayLengthStructureGraph(ControlView view)
view - viewpublic void displayLengthStructureGraph(ControlView view, String species)
view - viewspecies - selected species (can be null)public void updateCompareNumberCatchGraph(ControlGraphFrame view)
view - viewpublic void validDataModification(ControlView view)
view - viewpublic void cancelDataModification(ControlView view)
view - viewpublic void deleteData(ControlView view)
view - viewprotected void disableValidAction(ControlView view)
public void validControl(ControlView view)
view - viewpublic void displayLogReport(ControlView controlView)
controlView - public void undoCommands(ControlView controlView, int commandsCount)
controlView - viewcommandsCount - commands count to undopublic void redoCommands(ControlView controlView, List<Command> commands)
controlView - viewcommands - commands to redoCopyright © 2010–2015 Ifremer. All rights reserved.