Interface LocationSharedListener
public interface LocationSharedListener
Receives the location a LocationButton obtained.
One method, so it can be written as a lambda:
LocationButton b = new LocationButton();
b.addLocationSharedListener(loc -> {
if (loc == null) {
infoLabel.setText("Location not shared");
} else {
infoLabel.setText(loc.getLatitude() + ", " + loc.getLongitude());
}
infoLabel.getParent().revalidate();
});
-
Method Summary
Modifier and TypeMethodDescriptionvoidlocationShared(Location location) Invoked on the EDT once the button has finished, whether or not it produced a location.
-
Method Details