Example usage for javax.swing AbstractButton getName

List of usage examples for javax.swing AbstractButton getName

Introduction

In this page you can find the example usage for javax.swing AbstractButton getName.

Prototype

public String getName() 

Source Link

Document

Gets the name of the component.

Usage

From source file:org.colombbus.tangara.commons.resinject.ClassResourceImpl.java

@Override
public void inject(AbstractButton button) {
    String key = button.getName();
    Validate.notEmpty(key, "button argument has no name"); //$NON-NLS-1$

    AbstractButtonInjecter injecter = new AbstractButtonInjecter();

    injecter.setClassResource(this);
    injecter.setKey(key);//from   w  w w .  j  a  v  a  2s  .  co  m
    injecter.setButton(button);

    injecter.inject();
}