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    /**
018     * @author Iv??n Zaera
019     */
020    public class URLMenuItem extends MenuItem implements URLUIItem {
021    
022            public String getMethod() {
023                    return _method;
024            }
025    
026            @Override
027            public String getTarget() {
028                    return _target;
029            }
030    
031            @Override
032            public String getURL() {
033                    return _url;
034            }
035    
036            public boolean isUseDialog() {
037                    return _useDialog;
038            }
039    
040            public void setMethod(String method) {
041                    _method = method;
042            }
043    
044            @Override
045            public void setTarget(String target) {
046                    _target = target;
047            }
048    
049            @Override
050            public void setURL(String url) {
051                    _url = url;
052            }
053    
054            public void setUseDialog(boolean useDialog) {
055                    _useDialog = useDialog;
056            }
057    
058            private static final String _TARGET_DEFAULT = "_self";
059    
060            private String _method;
061            private String _target = _TARGET_DEFAULT;
062            private String _url;
063            private boolean _useDialog;
064    
065    }