All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opendolphin.demo.crud.PortfolioConstants.groovy Maven / Gradle / Ivy

Go to download

Dolphin is a free open-source library that bridges the worlds of enterprise Java and desktop Java. It uses presentation models to bind client-side views to server-side actions.

There is a newer version: 1.0-RC3
Show newest version
package org.opendolphin.demo.crud

class PortfolioConstants {

    static class TYPE {
        public static final String PORTFOLIO = PortfolioConstants.unique 'type'
    }

    static class ATT {
        public static final String NAME      = 'name'
        public static final String FIXED     = 'fixed'
        public static final String TOTAL     = 'total'
        public static final String DOMAIN_ID = 'domainId'
    }

    static class CMD {
        public static final String PULL      = PortfolioConstants.unique 'pull'
        public static final String UPDATE    = PortfolioConstants.unique 'update'
    }

    static class PM_ID {
        public static final String SELECTED  = PortfolioConstants.unique 'selected'
    }

    static String unique(String s) { PortfolioConstants.class.name + '.'+ s }

    static String pmId(String type, int index) { type + "-" + index}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy