public class ChangeSpatialPreviewHandler extends Object
Modifier and Type | Field and Description |
---|---|
protected List<Cell> |
cells |
protected ChangeSpatialPreviewUI |
inputUI |
protected FisheryRegion |
newFisheryRegion |
protected FisheryRegion |
oldFisheryRegion |
protected Map<Port,Cell> |
portMap |
protected Map<Zone,List<Cell>> |
zoneMap |
Constructor and Description |
---|
ChangeSpatialPreviewHandler(ChangeSpatialPreviewUI inputUI) |
Modifier and Type | Method and Description |
---|---|
protected String |
cellToString(List<Cell> cells) |
void |
close()
Cancel and close UI.
|
void |
completeSetup() |
void |
currentPortChanged()
Action when a port is selected in combo.
|
void |
currentZoneChanged()
Action when a zone is selected in combo.
|
protected void |
initMapClick()
Configure click behaviour on maps.
|
protected void |
initMapProviders()
Configure data provider for maps.
|
void |
setCells(List<Cell> cells) |
void |
setNewFisheryRegion(FisheryRegion newFisheryRegion) |
void |
setOldFisheryRegion(FisheryRegion oldFisheryRegion) |
void |
setPortMap(Map<Port,Cell> portMap) |
void |
setZoneMap(Map<Zone,List<Cell>> zoneMap) |
protected void |
swapPortAndZoneCells()
Perform swap in database between current cell and new cell for zone and region.
|
protected void |
updatePortCellDetails() |
protected void |
updateZoneCellDetails() |
void |
valid()
Ask fro user to perform database change and commit.
|
protected ChangeSpatialPreviewUI inputUI
protected FisheryRegion oldFisheryRegion
protected FisheryRegion newFisheryRegion
public ChangeSpatialPreviewHandler(ChangeSpatialPreviewUI inputUI)
public void setNewFisheryRegion(FisheryRegion newFisheryRegion)
public void setOldFisheryRegion(FisheryRegion oldFisheryRegion)
public void completeSetup()
protected void initMapClick()
protected void initMapProviders()
public void currentZoneChanged()
protected void updateZoneCellDetails()
public void currentPortChanged()
protected void updatePortCellDetails()
public void valid()
public void close()
protected void swapPortAndZoneCells()
Copyright © 1999–2020 CodeLutin. All rights reserved.