Class ChangeSpatialPreviewHandler
java.lang.Object
fr.ifremer.isisfish.ui.input.spatial.ChangeSpatialPreviewHandler
Handler fro preview spatial change UI.
-
Field Summary
Modifier and TypeFieldDescriptionprotected ChangeSpatialPreviewUI
protected FisheryRegion
protected FisheryRegion
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
cellToString
(List<Cell> cells) void
close()
Cancel and close UI.void
void
Action when a port is selected in combo.void
Action when a zone is selected in combo.protected void
Configure click behaviour on maps.protected void
Configure data provider for maps.void
void
setNewFisheryRegion
(FisheryRegion newFisheryRegion) void
setOldFisheryRegion
(FisheryRegion oldFisheryRegion) void
setPortMap
(Map<Port, Cell> portMap) void
setZoneMap
(Map<Zone, List<Cell>> zoneMap) protected void
Perform swap in database between current cell and new cell for zone and region.protected void
protected void
void
valid()
Ask fro user to perform database change and commit.
-
Field Details
-
inputUI
-
zoneMap
-
portMap
-
cells
-
oldFisheryRegion
-
newFisheryRegion
-
-
Constructor Details
-
ChangeSpatialPreviewHandler
-
-
Method Details
-
setCells
-
setZoneMap
-
setPortMap
-
setNewFisheryRegion
-
setOldFisheryRegion
-
completeSetup
public void completeSetup() -
initMapClick
protected void initMapClick()Configure click behaviour on maps. -
initMapProviders
protected void initMapProviders()Configure data provider for maps. -
currentZoneChanged
public void currentZoneChanged()Action when a zone is selected in combo. -
updateZoneCellDetails
protected void updateZoneCellDetails() -
cellToString
-
currentPortChanged
public void currentPortChanged()Action when a port is selected in combo. -
updatePortCellDetails
protected void updatePortCellDetails() -
valid
public void valid()Ask fro user to perform database change and commit. -
close
public void close()Cancel and close UI. -
swapPortAndZoneCells
protected void swapPortAndZoneCells()Perform swap in database between current cell and new cell for zone and region.
-