This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
passwordField = new PasswordField("Password:"); | |
passwordField.setIcon(FontAwesome.KEY); | |
VaadinUtils.setPlaceholder(passwordField, "Enter your password"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Timer { | |
public static long parsePeriod(String period) { | |
if (period == null || period.trim().isEmpty()) { | |
throw new IllegalArgumentException("Invalid period - '" + period + "', is empty"); | |
} | |
period = period.trim(); | |
String[] split = period.split(" "); |