Examples of ERD2WRuleEditorModel


Examples of com.webobjects.directtoweb.ERD2WRuleEditorModel

    public WOComponent dumpRulesAction() {
        WOComponent nextPage = pageWithName("ERXStringHolder");
        String string = "Please a provide fileName parameter";
        String fileName = context().request().stringFormValueForKey("fileName");
        if(fileName != null) {
            ERD2WRuleEditorModel model = new ERD2WRuleEditorModel(new File(fileName));
            string = ((NSArray)model.publicRules().valueForKeyPath("description.@sort.toString")).componentsJoinedByString("\n");
        }
        nextPage.takeValueForKey(string, "value");
        nextPage.takeValueForKey(Boolean.FALSE, "escapeHTML");
        return nextPage;
    }
View Full Code Here

Examples of com.webobjects.directtoweb.ERD2WRuleEditorModel

        super(context);
    }

    public void setRuleFileName(String value) {
        fileName = value;
        model = new ERD2WRuleEditorModel(new File(fileName));
        group = new WODisplayGroup();
        group.setObjectArray(model.publicRules());
        group.setDefaultStringMatchFormat("*%@*");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.