Package net.datacrow.core.web.model

Examples of net.datacrow.core.web.model.DcWebField


            if (     getUser().isAuthorized(field) &&
                     wfd.get(field.getIndex()).isQuickSearch() &&
                     field.isEnabled() &&
                     field.isSearchable()) {
               
                DcWebField wf = new DcWebField(field);
                if (field.getIndex() == DcObject._SYS_AVAILABLE)
                    wf.setValue(Boolean.TRUE);

                if (wf.isLongTextfield())
                    wf.setType(DcWebField._TEXTFIELD);
               
                if (wf.isMultiRelate())
                    wf.setType(DcWebField._DROPDOWN);
               
                filterFields.add(wf);
            }
        }
        wo.setFilterFields(filterFields);
View Full Code Here


        for (WebFieldDefinition def : DcModules.get(wo.getModule()).getWebFieldDefinitions().getDefinitions()) {
            DcField field = DcModules.get(wo.getModule()).getField(def.getField());
           
            if (field != null) {
                if (def.isOverview() && getUser().isAuthorized(field) && field.isEnabled()) {
                    DcWebField wf = new DcWebField(field);
                    wf.setWidth(def.getWidth());
                    wf.setLinkToDetails(def.isLink());
                    wf.setMaxTextLength(def.getMaxTextLength());
                    fields.add(wf);
                }
            }
        }
       
View Full Code Here

TOP

Related Classes of net.datacrow.core.web.model.DcWebField

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.