Exemplo n.º 1
0
 public static void addAdd(ComponentImpl comp, Property prop) {
   Member m =
       comp.getMember(
           ComponentImpl.ACCESS_PRIVATE, KeyImpl.init("add" + getSingularName(prop)), true, false);
   if (!(m instanceof UDF)) {
     UDF udf = new UDFAddProperty(comp, prop);
     comp.registerUDF(udf.getFunctionName(), udf);
   }
 }
Exemplo n.º 2
0
 public static void addSet(ComponentImpl comp, Property prop) {
   Member m =
       comp.getMember(
           ComponentImpl.ACCESS_PRIVATE, KeyImpl.init("set" + prop.getName()), true, false);
   if (!(m instanceof UDF)) {
     UDF udf = new UDFSetterProperty(comp, prop);
     comp.registerUDF(udf.getFunctionName(), udf);
   }
 }
Exemplo n.º 3
0
  public UDFGSProperty(
      ComponentImpl component,
      String name,
      FunctionArgument[] arguments,
      short rtnType,
      String rtnFormat) {
    super(
        UDFProperties(
            component.getPageSource(),
            arguments,
            -1,
            name,
            rtnType,
            rtnFormat,
            false,
            false,
            "public",
            "",
            "",
            "",
            Boolean.FALSE,
            Boolean.FALSE,
            new StructImpl()));

    this.name = name;
    this.arguments = arguments;
    this.component = component;
  }