The simpleLED (src/main/java/com/pi4j/example/components) is a template class, that you can use in your own Java-project. You can take any LED you want to. Like for example this one: LED
The template Class gives you the option to switch off, switch on or toggle the state of the LED.
A simple example on how to use the LED-Class from the Hardware-Catalog :
// Create a new SimpleLED component
SimpleLED led = new SimpleLED(pi4j, 26);
// Turn on the LED to have a defined state
led.setStateOn();
sleep(1000);
// Make a flashing light by toggling the LED every second
for (int i = 0; i < 10; i++) {
System.out.println(led.toggleState());
sleep(1000);
}
// That's all so turn off the relay and quit
led.setStateOff();
System.out.println("off");
sleep(2000);
The class is implemented in the two sample projects Theremin and Potobooth.