Examples of ZeroViewConfig


Examples of at.riemers.zero.base.ZeroViewConfig

        return result.toString().replaceAll("\n", "<br/>");
    }

    public static boolean isPhone(HttpServletRequest request) {

        ZeroViewConfig config = ZeroContextHolder.getContext().getConfig();
        if (config != null) {
            return config.isPhone();
        }
        return false;
        /*
            if (request.getHeader("User-Agent").toLowerCase().contains("iphone")
                    || request.getHeader("User-Agent").toLowerCase().contains("ipad")
View Full Code Here

Examples of at.riemers.zero.base.ZeroViewConfig

        return mobile == null ? false : mobile;
         * */
    }
   
    public static boolean isMobile(HttpServletRequest request) {
        ZeroViewConfig config = ZeroContextHolder.getContext().getConfig();
        if (config != null) {
            return config.isPhone() || config.isTablet();
        }
        return false;
      
    }
View Full Code Here

Examples of at.riemers.zero.base.ZeroViewConfig

    }
   
    public static boolean isTablet(HttpServletRequest request) {

       
        ZeroViewConfig config = ZeroContextHolder.getContext().getConfig();
        if (config != null) {
            log.debug("isTablet: " + config.isTablet());
            return config.isTablet();
        }
        log.debug("isTablet: false");
        return false;
    }
View Full Code Here

Examples of at.riemers.zero.base.ZeroViewConfig

        log.debug("tableexport xls");

        Map model = new HashMap();
        TableWidget tableComponent = (TableWidget) getWidgetManager(session).getWidget(cid);
        model.put("table", tableComponent.getModel());       
        ZeroViewConfig config = ZeroContextHolder.getContext().getConfig();
        return new ModelAndView(new TableXlsView(config), model);
    }
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.