|
|
@ -7,6 +7,7 @@ import com.fr.design.Exception.ValidationException; |
|
|
|
import com.fr.design.designer.properties.Decoder; |
|
|
|
import com.fr.design.designer.properties.Decoder; |
|
|
|
import com.fr.design.designer.properties.Encoder; |
|
|
|
import com.fr.design.designer.properties.Encoder; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
public class TreeModelWrapper implements Encoder, Decoder { |
|
|
|
public class TreeModelWrapper implements Encoder, Decoder { |
|
|
@ -21,6 +22,8 @@ public class TreeModelWrapper implements Encoder, Decoder { |
|
|
|
} else if (v instanceof TreeNodeWrapper) { |
|
|
|
} else if (v instanceof TreeNodeWrapper) { |
|
|
|
TreeNodeAttr[] treeNodeAttrs = ((TreeNodeWrapper) v).getTreeNodeAttrs(); |
|
|
|
TreeNodeAttr[] treeNodeAttrs = ((TreeNodeWrapper) v).getTreeNodeAttrs(); |
|
|
|
return TemplateUtils.render(Inter.getLocText("FR-Designer_Total_N_Grade"), new String[]{"N"}, new String[]{treeNodeAttrs.length + ""}); |
|
|
|
return TemplateUtils.render(Inter.getLocText("FR-Designer_Total_N_Grade"), new String[]{"N"}, new String[]{treeNodeAttrs.length + ""}); |
|
|
|
|
|
|
|
} else if (v instanceof NameObject) { |
|
|
|
|
|
|
|
return Inter.getLocText("FR-Designer_DataTable-Build"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return Inter.getLocText("FR-Designer_Auto-Build"); |
|
|
|
return Inter.getLocText("FR-Designer_Auto-Build"); |
|
|
|
} |
|
|
|
} |
|
|
|