OW2 Consortium jaspte

Rev

Blame | Last modification | View Log | RSS feed

/**
 * =========================================================================
 *                                      Bench4Q version 1.2.1
 * =========================================================================
 * 
 * Bench4Q is available on the Internet at http://forge.ow2.org/projects/jaspte
 * You can find latest version there. 
 * 
 * Distributed according to the GNU Lesser General Public Licence. 
 * This library is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published by   
 * the Free Software Foundation; either version 2.1 of the License, or any
 * later version.
 * 
 * SEE Copyright.txt FOR FULL COPYRIGHT INFORMATION.
 * 
 * This source code is distributed "as is" in the hope that it will be
 * useful.  It comes with no warranty, and no author or distributor
 * accepts any responsibility for the consequences of its use.
 *
 *
 * This version is a based on the implementation of TPC-W from University of Wisconsin. 
 * This version used some source code of The Grinder.
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 *  * Initial developer(s): Zhiquan Duan.
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 * 
 */
package org.bench4Q.console.ui.controlTree;

import javax.swing.ImageIcon;

import org.bench4Q.console.common.Resources;

/**
 * @author wangsa
 * 
 */
public class VIPRequestNode implements TestElement {

        private final Resources m_resources;

        /**
         * @param resources
         */
        public VIPRequestNode(Resources resources) {
                m_resources = resources;
        }

        public String getTip() {
                return m_resources.getString("ControlTree.VIPRequestNode.tip");
        }

        public String getName() {
                return m_resources.getString("ControlTree.VIPRequestNode.title");
        }

        public ImageIcon getImageIcon() {
                final ImageIcon imageIcon = m_resources
                                .getImageIcon("ControlTree.VIPRequestNode.image");
                if (imageIcon != null) {
                        return imageIcon;
                }
                return null;
        }

        public String toString() {
                return m_resources.getString("ControlTree.VIPRequestNode.title");
        }

}