FileDocCategorySizeDatePackage
ButtonParameter.javaAPI DocAzureus 3.0.3.41929Mon Jan 15 22:37:24 GMT 2007org.gudy.azureus2.ui.swt.config

ButtonParameter

public class ButtonParameter extends Parameter
author
parg

Fields Summary
Button
button
Constructors Summary
public ButtonParameter(Composite composite, String name_resource)

  	super(name_resource);
    button = new Button( composite, SWT.PUSH );
    
    Messages.setLanguageText(button, name_resource);

    button.addListener(SWT.Selection, new Listener() {
	      public void handleEvent(Event event) 
	      {
	       	for (int i=0;i<change_listeners.size();i++){
        		
        		((ParameterChangeListener)change_listeners.get(i)).parameterChanged(ButtonParameter.this,false);
        	}
	      }
    });
  
Methods Summary
public ControlgetControl()

	 return button;
  
public voidsetLayoutData(java.lang.Object layoutData)

    button.setLayoutData(layoutData);
  
public voidsetValue(java.lang.Object value)