001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.servlet.taglib.ui;
016    
017    import com.liferay.portal.kernel.util.StringPool;
018    
019    import java.util.List;
020    
021    /**
022     * @author Sergio Gonz??lez
023     */
024    public class Menu extends BaseUIItem {
025    
026            public String getCssClass() {
027                    return _cssClass;
028            }
029    
030            public String getDirection() {
031                    return _direction;
032            }
033    
034            public String getIcon() {
035                    return _icon;
036            }
037    
038            public String getLabel() {
039                    return _label;
040            }
041    
042            public String getMarkupView() {
043                    return _markupView;
044            }
045    
046            public List<MenuItem> getMenuItems() {
047                    return _menuItems;
048            }
049    
050            public String getMessage() {
051                    return _message;
052            }
053    
054            public String getTriggerCssClass() {
055                    return _triggerCssClass;
056            }
057    
058            public boolean isExtended() {
059                    return _extended;
060            }
061    
062            public boolean isScroll() {
063                    return _scroll;
064            }
065    
066            public boolean isShowArrow() {
067                    return _showArrow;
068            }
069    
070            public boolean isShowExpanded() {
071                    return _showExpanded;
072            }
073    
074            public boolean isShowWhenSingleIcon() {
075                    return _showWhenSingleIcon;
076            }
077    
078            public void setCssClass(String cssClass) {
079                    _cssClass = cssClass;
080            }
081    
082            public void setDirection(String direction) {
083                    _direction = direction;
084            }
085    
086            public void setExtended(boolean extended) {
087                    _extended = extended;
088            }
089    
090            public void setIcon(String icon) {
091                    _icon = icon;
092            }
093    
094            public void setLabel(String label) {
095                    _label = label;
096            }
097    
098            public void setMarkupView(String markupView) {
099                    _markupView = markupView;
100            }
101    
102            public void setMenuItems(List<MenuItem> menuItems) {
103                    _menuItems = menuItems;
104            }
105    
106            public void setMessage(String message) {
107                    _message = message;
108            }
109    
110            public void setScroll(boolean scroll) {
111                    _scroll = scroll;
112            }
113    
114            public void setShowArrow(boolean showArrow) {
115                    _showArrow = showArrow;
116            }
117    
118            public void setShowExpanded(boolean showExpanded) {
119                    _showExpanded = showExpanded;
120            }
121    
122            public void setShowWhenSingleIcon(boolean showWhenSingleIcon) {
123                    _showWhenSingleIcon = showWhenSingleIcon;
124            }
125    
126            public void setTriggerCssClass(String triggerCssClass) {
127                    _triggerCssClass = triggerCssClass;
128            }
129    
130            private String _cssClass = StringPool.BLANK;
131            private String _direction = "left";
132            private boolean _extended = true;
133            private String _icon = StringPool.BLANK;
134            private String _label = StringPool.BLANK;
135            private String _markupView = StringPool.BLANK;
136            private List<MenuItem> _menuItems;
137            private String _message = StringPool.BLANK;
138            private boolean _scroll = true;
139            private boolean _showArrow = true;
140            private boolean _showExpanded;
141            private boolean _showWhenSingleIcon;
142            private String _triggerCssClass = StringPool.BLANK;
143    
144    }