Examples of tgetDataPoint()


Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

                    return ((PointComponent) vc).tgetDataPoint();
            }
            else if (vc.isCompoundComponent()) {
                PointComponent pc = ((CompoundComponent) vc).findPointComponent(viewComponentId);
                if (pc != null)
                    return pc.tgetDataPoint();
            }
        }
        return null;
    }
View Full Code Here

Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

            boolean add) {
        if (viewComponent.isPointComponent() && (edit || viewComponent.isVisible())) {
            PointComponent pointComponent = (PointComponent) viewComponent;

            DataPointRT dataPointRT = null;
            if (pointComponent.tgetDataPoint() != null)
                dataPointRT = rtm.getDataPoint(pointComponent.tgetDataPoint().getId());

            ViewComponentState state = preparePointComponentState(pointComponent, user, dataPointRT, model, request);

            if (!edit) {
View Full Code Here

Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

        if (viewComponent.isPointComponent() && (edit || viewComponent.isVisible())) {
            PointComponent pointComponent = (PointComponent) viewComponent;

            DataPointRT dataPointRT = null;
            if (pointComponent.tgetDataPoint() != null)
                dataPointRT = rtm.getDataPoint(pointComponent.tgetDataPoint().getId());

            ViewComponentState state = preparePointComponentState(pointComponent, user, dataPointRT, model, request);

            if (!edit) {
                if (pointComponent.isSettable()) {
View Full Code Here

Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

            if (!edit) {
                if (pointComponent.isSettable()) {
                    int access = view.getUserAccess(user);
                    if (access == ShareUser.ACCESS_OWNER || access == ShareUser.ACCESS_SET)
                        setChange(pointComponent.tgetDataPoint(), state, dataPointRT, request, model);
                }

                if (pointComponent.tgetDataPoint() != null)
                    setChart(pointComponent.tgetDataPoint(), state, request, model);
            }
View Full Code Here

Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

                    int access = view.getUserAccess(user);
                    if (access == ShareUser.ACCESS_OWNER || access == ShareUser.ACCESS_SET)
                        setChange(pointComponent.tgetDataPoint(), state, dataPointRT, request, model);
                }

                if (pointComponent.tgetDataPoint() != null)
                    setChart(pointComponent.tgetDataPoint(), state, request, model);
            }

            if (add)
                states.add(state);
View Full Code Here

Examples of com.serotonin.m2m2.gviews.component.PointComponent.tgetDataPoint()

                    if (access == ShareUser.ACCESS_OWNER || access == ShareUser.ACCESS_SET)
                        setChange(pointComponent.tgetDataPoint(), state, dataPointRT, request, model);
                }

                if (pointComponent.tgetDataPoint() != null)
                    setChart(pointComponent.tgetDataPoint(), state, request, model);
            }

            if (add)
                states.add(state);
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.