Examples of addViewComponent()


Examples of com.serotonin.m2m2.gviews.GraphicalView.addViewComponent()

                copy.setXid(new GraphicalViewDao().generateUniqueXid());
                copy.setName(StringUtils.abbreviate(TranslatableMessage.translate(
                        ControllerUtils.getTranslations(request), "common.copyPrefix", view.getName()), 100));
                copy.setBackgroundFilename(GraphicalViewsCommon.copyImage(view.getBackgroundFilename()));
                for (ViewComponent vc : view.getViewComponents())
                    copy.addViewComponent(vc);

                view = copy;
            }
        }
        else {
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.