Package org.zeroexchange.web.components.resource.action.edit

Examples of org.zeroexchange.web.components.resource.action.edit.GoodEditPanel


    private WebMarkupContainer getResourceActionPanel(String componentId, ResourceAction action) {
        switch (action) {
        case RESOURCE_EDIT:
            Resource resource = getResourceModel().getObject();
            if(GoodResource.class.isAssignableFrom(resource.getClass())) {
                return new GoodEditPanel(componentId, this.<GoodResource>getResourceModel());
            } else if(ServiceResource.class.isAssignableFrom(resource.getClass())) {
                return new ResourceEditPanel<ServiceResource, ResourceFormData>(componentId, this.<ServiceResource>getResourceModel());
            } else if(MoneyResource.class.isAssignableFrom(resource.getClass())) {
                return new MoneyEditPanel(componentId, this.<MoneyResource>getResourceModel());
            } else {
View Full Code Here

TOP

Related Classes of org.zeroexchange.web.components.resource.action.edit.GoodEditPanel

Copyright © 2018 www.massapicom. 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.