001/**
002 * Copyright 2005-2016 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package org.kuali.rice.kns.datadictionary.control;
017
018/**
019 * The link element is used to render an HTML link control.
020 *
021 * @deprecated Only used by KNS classes, use KRAD.
022 */
023@Deprecated
024public class LinkControlDefinition extends ControlDefinitionBase {
025         private static final long serialVersionUID = -7568912421829207545L;
026         
027         protected String styleClass;
028         protected String target;
029         protected String hrefText;
030         
031        public LinkControlDefinition() {
032    }
033
034    /**
035     * @see org.kuali.rice.krad.datadictionary.control.ControlDefinition#isLink()
036     */
037    public boolean isLink() {
038        return true;
039    }
040
041    /**
042     * @see java.lang.Object#toString()
043     */
044    public String toString() {
045        return this.getClass().getName();
046    }
047     
048         /**
049         * @return the styleClass
050         */
051        public String getStyleClass() {
052                return this.styleClass;
053        }
054
055        /**
056         * @param styleClass the styleClass to set
057         */
058        public void setStyleClass(String styleClass) {
059                this.styleClass = styleClass;
060        }
061
062        /**
063         * @return the target
064         */
065        public String getTarget() {
066                return this.target;
067        }
068
069        /**
070         * @param target the target to set
071         */
072        public void setTarget(String target) {
073                this.target = target;
074        }
075        
076           /**
077         * @return the hrefText
078         */
079        public String getHrefText() {
080                return this.hrefText;
081        }
082
083        /**
084         * @param hrefText the hrefText to set
085         */
086        public void setHrefText(String hrefText) {
087                this.hrefText = hrefText;
088        }
089    
090}