comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/DefaultState.java @ 136:2e510c998adb

New state for the location/distance input and some litte modifications of the DefaultState. flys-artifacts/trunk@1512 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 18 Mar 2011 08:50:42 +0000
parents 2d6e02787d00
children b43671a551d1
comparison
equal deleted inserted replaced
135:2d6e02787d00 136:2e510c998adb
39 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator( 39 XMLUtils.ElementCreator creator = new XMLUtils.ElementCreator(
40 document, 40 document,
41 ArtifactNamespaceContext.NAMESPACE_URI, 41 ArtifactNamespaceContext.NAMESPACE_URI,
42 ArtifactNamespaceContext.NAMESPACE_PREFIX); 42 ArtifactNamespaceContext.NAMESPACE_PREFIX);
43 43
44 Element ui = ProtocolUtils.createArtNode( 44 String label = Resources.getMsg(context.getMeta(), getID(), getID());
45 Element ui = ProtocolUtils.createArtNode(
45 creator, "state", 46 creator, "state",
46 new String[] { "name" }, 47 new String[] { "name", "uiprovider", "label" },
47 new String[] { getID() }); 48 new String[] { getID(), getUIProvider(), label });
48 49
49 Map<String, StateData> theData = getData(); 50 Map<String, StateData> theData = getData();
50 if (theData == null) { 51 if (theData == null) {
51 return ui; 52 return ui;
52 } 53 }

http://dive4elements.wald.intevation.org