Package cn.com.elements

Examples of cn.com.elements.AbstractHtmlElementTag


    @Override
    public String content() throws AppException {

        List<Menu> menus = OperatFactory.getServiceObject(MenuService.class, DataProviderModel.FILE).getMenus();
        AbstractHtmlElementTag ulElement = createMenus(menus, 0);
        TagWriter writer = new TagWriter(new CharArrayWriter());
        try {
            ulElement.doTag(writer);
        } catch (JspException ex) {
            Logger.getLogger(DefaultMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(DefaultMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
View Full Code Here


        if (menus != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = (levelCount == 0 ? _UL_HIDE_CSS : _BLANK_CSS);
            AbstractHtmlElementTag childElement = null;
            for (Menu m : menus) {
                liElement = new LIElementTag(m.getId());
                linkElement = new LinkElementTag();
                linkElement.setHref(StringUtil.isEmpty(m.getUrl()) ? _CURRENT_PAGE_HREF : m.getUrl());
                linkElement.setValue(m.getLabel());
View Full Code Here

    @Override
    public String content()  throws AppException{

        List<Menu> menus = OperatFactory.getServiceObject(MenuService.class, DataProviderModel.FILE).getMenus();
        AbstractHtmlElementTag ulElement = createMenus(menus, 0);
        TagWriter writer = new TagWriter(new CharArrayWriter());
        try {
            ulElement.doTag(writer);
        } catch (JspException ex) {
            Logger.getLogger(WmsMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(WmsMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } finally {
View Full Code Here

        if (menus != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = (levelCount == 0 ? _UL_HIDE_CSS : _BLANK_CSS);
            AbstractHtmlElementTag childElement = null;
            for (Menu m : menus) {
                liElement = new LIElementTag(m.getId());
                linkElement = new LinkElementTag();
                linkElement.setHref(StringUtil.isEmpty(m.getUrl()) ? _CURRENT_PAGE_HREF : m.getUrl());
                linkElement.setValue(m.getLabel());
View Full Code Here

    @Override
    public String content() throws AppException {

        List<Task> tasks = TasksController.userTask(CurrentUser.getUserID(), CurrentUser.getEffectNodes());

        AbstractHtmlElementTag ulElement = null;
        TagWriter writer = null;
        try {
            ulElement = this.mainElement(createTaskTag(tasks));

            writer = new TagWriter(new CharArrayWriter());

            ulElement.doTag(writer);
            return writer.getWritedString();
        } catch (JspException ex) {
            Logger.getLogger(WmsMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(WmsMenuTemplate.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

    @Override
    public String content() throws AppException {

        List<Task> tasks = TasksController.userTask(CurrentUser.getUserID(), CurrentUser.getEffectNodes());

        AbstractHtmlElementTag ulElement = null;
        TagWriter writer = null;
        try {
            ulElement = this.mainElement(createTaskTag(tasks));

            writer = new TagWriter(new CharArrayWriter());

            ulElement.doTag(writer);
            return writer.getWritedString();
        } catch (JspException ex) {
            Logger.getLogger(DefaultTasksTemplate.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(DefaultTasksTemplate.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

        if (tasks != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = _BLANK_CSS;
            AbstractHtmlElementTag childElement = null;
            int nodeCount = 0;
            Task lastNode = null;
            List<Task> nodeTasks = new ArrayList<Task>(3);
            for (Task m : tasks) {
                if (lastNode == null) {
View Full Code Here

        if (tasks != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = _BLANK_CSS;
            AbstractHtmlElementTag childElement = null;
            int idxCount = 0;
            for (Task m : tasks) {
                liElement = new LIElementTag();
                m.setDetails(ProcessFactory.getProcess(m.getNode()).getTaskDetails(m.getTaskid()));
                linkElement = new LinkElementTag();
View Full Code Here

        if (tasks != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = _BLANK_CSS;
            AbstractHtmlElementTag childElement = null;
            int nodeCount = 0;
            Task lastNode = null;
            List<Task> nodeTasks = new ArrayList<Task>(3);
            for (Task m : tasks) {
                if (lastNode == null) {
View Full Code Here

        if (tasks != null) {
            ULElementTag ulElement = new ULElementTag();
            LIElementTag liElement = null;
            LinkElementTag linkElement = null;
            String cssClass = _BLANK_CSS;
            AbstractHtmlElementTag childElement = null;
            int idxCount = 0;
            for (Task m : tasks) {
                liElement = new LIElementTag();
                m.setDetails(ProcessFactory.getProcess(m.getNode()).getTaskDetails(m.getTaskid()));
                linkElement = new LinkElementTag();
View Full Code Here

TOP

Related Classes of cn.com.elements.AbstractHtmlElementTag

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.