You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
874 B
33 lines
874 B
package com.fr.plugin.form.widget.ui.editor; |
|
|
|
import com.fr.design.Exception.ValidationException; |
|
import com.fr.design.designer.properties.Decoder; |
|
import com.fr.design.designer.properties.Encoder; |
|
import com.fr.plugin.form.widget.core.RHIframeAttr; |
|
import com.fr.plugin.form.widget.core.RHIframeSource; |
|
|
|
/** |
|
* Created by richie on 15/12/2. |
|
*/ |
|
public class RHIframeModelWrapper implements Encoder<RHIframeAttr>, Decoder<RHIframeAttr> { |
|
@Override |
|
public RHIframeAttr decode(String txt) { |
|
return null; |
|
} |
|
|
|
@Override |
|
public void validate(String txt) throws ValidationException { |
|
|
|
} |
|
|
|
@Override |
|
public String encode(RHIframeAttr v) { |
|
if (v != null) { |
|
RHIframeSource source = v.getSource(); |
|
if (source != null) { |
|
return source.toString(); |
|
} |
|
} |
|
return null; |
|
} |
|
} |