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 List<MenuItem> getMenuItems() {
043                    return _menuItems;
044            }
045    
046            public String getMessage() {
047                    return _message;
048            }
049    
050            public String getTriggerCssClass() {
051                    return _triggerCssClass;
052            }
053    
054            public boolean isExtended() {
055                    return _extended;
056            }
057    
058            public boolean isShowArrow() {
059                    return _showArrow;
060            }
061    
062            public boolean isShowExpanded() {
063                    return _showExpanded;
064            }
065    
066            public boolean isShowWhenSingleIcon() {
067                    return _showWhenSingleIcon;
068            }
069    
070            public void setCssClass(String cssClass) {
071                    _cssClass = cssClass;
072            }
073    
074            public void setDirection(String direction) {
075                    _direction = direction;
076            }
077    
078            public void setExtended(boolean extended) {
079                    _extended = extended;
080            }
081    
082            public void setIcon(String icon) {
083                    _icon = icon;
084            }
085    
086            public void setLabel(String label) {
087                    _label = label;
088            }
089    
090            public void setMenuItems(List<MenuItem> menuItems) {
091                    _menuItems = menuItems;
092            }
093    
094            public void setMessage(String message) {
095                    _message = message;
096            }
097    
098            public void setShowArrow(boolean showArrow) {
099                    _showArrow = showArrow;
100            }
101    
102            public void setShowExpanded(boolean showExpanded) {
103                    _showExpanded = showExpanded;
104            }
105    
106            public void setShowWhenSingleIcon(boolean showWhenSingleIcon) {
107                    _showWhenSingleIcon = showWhenSingleIcon;
108            }
109    
110            public void setTriggerCssClass(String triggerCssClass) {
111                    _triggerCssClass = triggerCssClass;
112            }
113    
114            private String _cssClass = StringPool.BLANK;
115            private String _direction = "left";
116            private boolean _extended = true;
117            private String _icon = StringPool.BLANK;
118            private String _label = StringPool.BLANK;
119            private List<MenuItem> _menuItems;
120            private String _message = StringPool.BLANK;
121            private boolean _showArrow = true;
122            private boolean _showExpanded;
123            private boolean _showWhenSingleIcon;
124            private String _triggerCssClass = StringPool.BLANK;
125    
126    }