All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.eviware.x.impl.swing.JLabelFormField Maven / Gradle / Ivy

The newest version!
/*
 *  soapUI, copyright (C) 2004-2011 smartbear.com 
 *
 *  soapUI is free software; you can redistribute it and/or modify it under the 
 *  terms of version 2.1 of the GNU Lesser General Public License as published by 
 *  the Free Software Foundation.
 *
 *  soapUI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without 
 *  even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
 *  See the GNU Lesser General Public License for more details at gnu.org.
 */

package com.eviware.x.impl.swing;

import javax.swing.JLabel;

public class JLabelFormField extends AbstractSwingXFormField
{
	public JLabelFormField()
	{
		this( "" );
	}

	public JLabelFormField( String label )
	{
		super( new JLabel() );
		getComponent().setText( label );
	}

	public void setValue( String value )
	{
		getComponent().setText( value );
	}

	public String getValue()
	{
		return getComponent().getText();
	}

	public boolean showLabel()
	{
		return false;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy