1 13 package com.tonbeller.wcf.ui; 14 15 import org.w3c.dom.Element ; 16 17 import com.tonbeller.wcf.format.BasicTypes; 18 import com.tonbeller.wcf.utils.XoplonNS; 19 20 24 public class TypedCtrl extends XoplonCtrl implements BasicTypes { 25 26 27 28 public static void setFormatString(Element element, String formatString) { 29 XoplonNS.setAttribute(element, "format", formatString); 30 } 31 32 33 public static String getFormatString(Element element) { 34 return XoplonNS.getAttribute(element, "format"); 35 } 36 37 38 public static String getType(Element element) { 39 return XoplonNS.getAttribute(element, "type"); 40 } 41 42 43 public static void setType(Element element, String type) { 44 XoplonNS.setAttribute(element, "type", type); 45 } 46 47 48 } 49 | Popular Tags |