Examples of UIDisplayObject


Examples of com.sourcetap.sfa.ui.UIDisplayObject

                            utilTimer.timerString(4,
                                "[DataMatrix.addRowFromHTML] Start getting UIDisplayObject for " +
                                rowDotEntityDotAttribName);
                        }

                        UIDisplayObject uiDisplayObject = uiFieldInfo.getUiDisplayObject();

                        if (TIMER) {
                            utilTimer.timerString(4,
                                "[DataMatrix.addRowFromHTML] Finished getting UIDisplayObject for " +
                                rowDotEntityDotAttribName);
                        }

                        // Find out if this field is a check box. If so, need to use special handling.
                        boolean isCheckbox = false;

                        if (uiDisplayObject.getDisplayTypeId().equals(uiDisplayObject.DISPLAY_TYPE_CHECKBOX)) {
                            isCheckbox = true;
                        }

                        // Make sure the current value was found in the HTML, or that this is a checkbox field,
                        // which would not appear in the HTML if its box is not checked.
                        if (currentFound || isCheckbox) {
                            if (isCheckbox) {
                                // Need to load the display object attributes when there is a check box attribute.
                                if (TIMER) {
                                    utilTimer.timerString(4,
                                        "[DataMatrix.addRowFromHTML] Start getting UIDisplayObject attributes for " +
                                        rowDotEntityDotAttribName);
                                }

                                uiDisplayObject.loadAttributes();

                                if (TIMER) {
                                    utilTimer.timerString(4,
                                        "[DataMatrix.addRowFromHTML] Finished getting UIDisplayObject attributes for " +
                                        rowDotEntityDotAttribName);
                                }
                            }

                            // Get the original value and store it in the "original" buffer.
                            String originalAttributeValue = request.getParameter(originalParamName);

                            if (TIMER) {
                                utilTimer.timerString(4,
                                    "[DataMatrix.addRowFromHTML] Start getDataType for " +
                                    rowDotEntityDotAttribName);
                            }

                            String fieldType = EventUtility.getDataType(originalGV,
                                    attributeName, getDelegator());

                            if (TIMER) {
                                utilTimer.timerString(4,
                                    "[DataMatrix.addRowFromHTML] End getDataType for " +
                                    rowDotEntityDotAttribName);
                            }

                            if (TIMER) {
                                utilTimer.timerString(4,
                                    "[DataMatrix.addRowFromHTML] Start storeValue original for " +
                                    rowDotEntityDotAttribName);
                            }

                            EventUtility.storeValue(originalGV, attributeName,
                                originalAttributeValue, getDelegator(),
                                fieldType);

                            if (TIMER) {
                                utilTimer.timerString(4,
                                    "[DataMatrix.addRowFromHTML] End storeValue original for " +
                                    rowDotEntityDotAttribName);
                            }

                            if (!currentFound) {
                                // Attribute does not appear in the "current" HTML parameters.  It must be a checkbox, or this code
                                // would not be executing. Get the unchecked value, and store it in the buffer.
                                EventUtility.storeValue(currentGV,
                                    attributeName,
                                    uiDisplayObject.getAttribUncheckedValue(),
                                    getDelegator(), fieldType);

                            } else {
                                // Attribute does appear in the "current" HTML parameters.
                                if (isCheckbox) {
                                    // This is a checked checkbox.  Get the checked value, and store it in the current buffer.
                                    EventUtility.storeValue(currentGV,
                                        attributeName,
                                        uiDisplayObject.getAttribCheckedValue(),
                                        getDelegator(), fieldType);

                                } else {
                                    // Non-checkbox field. Just store the value.
                                    String currentAttributeValue = request.getParameter(currentParamName);
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.