Mercurial > dive4elements > river
changeset 272:d3c053420c3b
ISSUE 44: Moved the location/range and WQ input tables to the helper panel and
set the size to 100%.
flys-client/trunk@1898 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 11 May 2011 11:07:18 +0000 |
parents | 65735765643d |
children | 905daf30221a |
files | flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java |
diffstat | 4 files changed, 27 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-client/ChangeLog Wed May 11 10:04:49 2011 +0000 +++ b/flys-client/ChangeLog Wed May 11 11:07:18 2011 +0000 @@ -1,3 +1,13 @@ +2011-05-11 Raimund Renkert <rrenkert@intevation.de> + + ISSUE 44 + + * src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java, + src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java, + src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java: + Moved the location/range and WQ input tables to the helper panel on the + right. The tables have a dynamic size now. + 2011-05-11 Raimund Renkert <rrenkert@intevation.de> ISSUE 41 (part2)
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Wed May 11 10:04:49 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java Wed May 11 11:07:18 2011 +0000 @@ -448,8 +448,8 @@ Tab locations = new Tab(MESSAGES.location()); Tab distances = new Tab(MESSAGES.distance()); - inputTables.setWidth(500); - inputTables.setHeight(350); + inputTables.setWidth100(); + inputTables.setHeight100(); locations.setPane(locationsTable); distances.setPane(distanceTable); @@ -457,7 +457,7 @@ inputTables.addTab(locations); inputTables.addTab(distances); - container.addMember(inputTables); + helperContainer.addChild(inputTables); return layout; } @@ -635,7 +635,7 @@ inputTables.addTab(t2); updateDistanceInfo(tableData); - container.addMember(inputTables); + helperContainer.addChild(inputTables); inputTables.selectTab(0); } else { @@ -662,7 +662,7 @@ updateDistanceInfo(tableData); } - container.addMember(inputTables); + helperContainer.addChild(inputTables); inputTables.selectTab(1); } }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Wed May 11 10:04:49 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/SingleLocationPanel.java Wed May 11 11:07:18 2011 +0000 @@ -113,10 +113,10 @@ * This method creates a table that contains the location values. */ protected void createLocationTable() { - locationTable.setWidth(450); + locationTable.setWidth100(); locationTable.setShowRecordComponents(true); locationTable.setShowRecordComponentsByCell(true); - locationTable.setHeight(300); + locationTable.setHeight100(); locationTable.setEmptyMessage(MESSAGES.empty_table()); ListGridField addLocation = new ListGridField ("", ""); @@ -216,7 +216,7 @@ container.setMembersMargin(30); - container.addMember(locationTable); + helperContainer.addChild(locationTable); createInputPanel(); return layout; }
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Wed May 11 10:04:49 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/WQInputPanel.java Wed May 11 11:07:18 2011 +0000 @@ -242,16 +242,16 @@ protected void createWQInputPanel() { - wqTable.setWidth(450); + wqTable.setWidth100(); wqTable.setShowRecordComponents(true); wqTable.setShowRecordComponentsByCell(true); - wqTable.setHeight(300); + wqTable.setHeight100(); wqTable.setEmptyMessage(MESSAGE.empty_table()); - wqRangeTable.setWidth(450); + wqRangeTable.setWidth100(); wqRangeTable.setShowRecordComponents(true); wqRangeTable.setShowRecordComponentsByCell(true); - wqRangeTable.setHeight(300); + wqRangeTable.setHeight100(); wqRangeTable.setEmptyMessage(MESSAGE.empty_table()); ListGridField addWQ = new ListGridField("", ""); @@ -476,7 +476,7 @@ wArrayPanel = new DoubleArrayPanel( MESSAGE.unitWSingle(), values, this); container.addMember(wArrayPanel); - container.addMember(wqTable); + helperContainer.addChild(wqTable); layout.addMember(modeForm); layout.addMember(container); @@ -808,7 +808,7 @@ MESSAGE.unitWSingle(), values, this); container.addMember(wArrayPanel); - container.addMember(wqTable); + helperContainer.addChild(wqTable); int size = wqTable.getRecords().length; for(int i = 0; i < size; i++) { ListGridRecord r = wqTable.getRecord(i); @@ -833,7 +833,7 @@ 250, this); container.addMember(wRangePanel); - container.addMember(wqRangeTable); + helperContainer.addChild(wqRangeTable); int size = wqRangeTable.getRecords().length; for(int i = 0; i < size; i++) { ListGridRecord r = wqRangeTable.getRecord(i); @@ -855,7 +855,7 @@ qArrayPanel = new DoubleArrayPanel( MESSAGE.unitQSingle(), values, this); container.addMember(qArrayPanel); - container.addMember(wqTable); + helperContainer.addChild(wqTable); int size = wqTable.getRecords().length; for(int i = 0; i < size; i++) { ListGridRecord r = wqTable.getRecord(i); @@ -881,7 +881,7 @@ 250, this); container.addMember(qRangePanel); - container.addMember(wqRangeTable); + helperContainer.addChild(wqRangeTable); int size = wqRangeTable.getRecords().length; for(int i = 0; i < size; i++) { ListGridRecord r = wqRangeTable.getRecord(i);