Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java @ 740:0563389138bb
Changed source of displayed coordinate in 'HorizontalProfil'-charts' subtitle (issue120).
gnv-artifacts/trunk@779 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 15 Mar 2010 15:39:59 +0000 |
parents | b8c7105f2b94 |
children | d194939ecbaf |
comparison
equal
deleted
inserted
replaced
739:a40a6de70459 | 740:0563389138bb |
---|---|
1025 */ | 1025 */ |
1026 public Collection<InputData> getInputData() throws StateException { | 1026 public Collection<InputData> getInputData() throws StateException { |
1027 return this.inputData != null ? this.inputData.values() : null; | 1027 return this.inputData != null ? this.inputData.values() : null; |
1028 } | 1028 } |
1029 | 1029 |
1030 public InputData getInputDataByName(String name) { | |
1031 State state = this; | |
1032 | |
1033 while (state != null) { | |
1034 InputData data = state.inputData().get(name); | |
1035 if (data != null) { | |
1036 return data; | |
1037 } | |
1038 | |
1039 state = state.getParent(); | |
1040 } | |
1041 | |
1042 return null; | |
1043 } | |
1044 | |
1030 public void endOfLife(Object globalContext) { | 1045 public void endOfLife(Object globalContext) { |
1031 } | 1046 } |
1032 } | 1047 } |
1033 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: | 1048 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |