Examples of ScanServerDataModel


Examples of fr.soleil.model.scanserver.ScanServerDataModel

    }

    private void updateDataModelAxis(final String attributeName, final String newAxis) {
        if (newAxis != null) {
            String scanServerName = getModel();
            ScanServerDataModel dataModel = CurrentScanDataModel.getDataModel(scanServerName, attributeName);
            if (dataModel != null) {
                String oldAxis = dataModel.getAxis();
                CurrentScanDataModel.setAttributeAxis(scanServerName, attributeName, newAxis);
                if ((oldAxis == null) || !newAxis.equals(oldAxis)) {
                    if (oldAxis.equals(Axis.X) || newAxis.equals(Axis.X)) {
                        fireActuatorChanged();
                    }
View Full Code Here

Examples of fr.soleil.model.scanserver.ScanServerDataModel

            return column == 2 ? true : false;
        }

        @Override
        public Object getValueAt(final int row, final int column) {
            ScanServerDataModel dataModel = CurrentScanDataModel.getDataModel(getModel(), row);
            if (dataModel == null) {
                return "";
            }

            switch (column) {
                case 0:
                    return dataModel.getAttributeName();
                case 1:
                    return dataModel.getAttributeLabel();
                case 2:
                    return dataModel.getAxis();
            }
            return "";
        }
View Full Code Here

Examples of fr.soleil.model.scanserver.ScanServerDataModel

            return column == 2 ? true : false;
        }

        @Override
        public Object getValueAt(final int row, final int column) {
            ScanServerDataModel dataModel = CurrentScanDataModel.getDataModel(getModel(), row);
            if (dataModel == null) {
                return "";
            }

            switch (column) {
                case 0:
                    return dataModel.getAttributeName();
                case 1:
                    return dataModel.getAttributeLabel();
                case 2:
                    return dataModel.getAxisValue();
            }
            return "";
        }
View Full Code Here

Examples of fr.soleil.model.scanserver.ScanServerDataModel

            return column == 2 ? true : false;
        }

        @Override
        public Object getValueAt(final int row, final int column) {
            ScanServerDataModel dataModel = CurrentScanDataModel.getDataModel(getModel(), row);
            if (dataModel == null) {
                return "";
            }

            switch (column) {
                case 0:
                    return dataModel.getAttributeName();
                case 1:
                    return dataModel.getAttributeLabel();
                case 2:
                    return dataModel.getAxis();
            }
            return "";
        }
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.