X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=server%2Fruntime%2Forg.argeo.server.jxl%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fserver%2Fjxl%2Fdao%2FSimpleObjectEditor.java;fp=server%2Fruntime%2Forg.argeo.server.jxl%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fserver%2Fjxl%2Fdao%2FSimpleObjectEditor.java;h=0000000000000000000000000000000000000000;hb=075368d6da2e88d05bdd3d047cd4e17617176afa;hp=c7cb00a7c9a54d8d7a561922aa1341f6022b2c87;hpb=1df1bf64759d35d3d72b9d96b26b71118fdbe031;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObjectEditor.java b/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObjectEditor.java deleted file mode 100644 index c7cb00a7c..000000000 --- a/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObjectEditor.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright (C) 2007-2012 Argeo GmbH - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.argeo.server.jxl.dao; - -import java.beans.PropertyEditorSupport; - -public class SimpleObjectEditor extends PropertyEditorSupport { - - @Override - public String getAsText() { - return ((SimpleObject) getValue()).getString(); - } - - @Override - public void setAsText(String text) throws IllegalArgumentException { - SimpleObject obj = new SimpleObject(); - obj.setString(text); - setValue(obj); - } - -}