/** * Check that this behavior can get a date format out of the component it is coupled to. It * checks whether {@link #getDatePattern()} produces a non-null value. If that method returns * null, and exception will be thrown * * @param component * the component this behavior is being coupled to * @throws UnableToDetermineFormatException * if this date picker is unable to determine a format. */ private void checkComponentProvidesDateFormat(final Component component) { if (getDatePattern() == null) { throw new UnableToDetermineFormatException(); } }
/** * Check that this behavior can get a date format out of the component it is coupled to. It * checks whether {@link #getDatePattern()} produces a non-null value. If that method returns * null, and exception will be thrown * * @param component * the component this behavior is being coupled to * @throws UnableToDetermineFormatException * if this date picker is unable to determine a format. */ private void checkComponentProvidesDateFormat(final Component component) { if (getDatePattern() == null) { throw new UnableToDetermineFormatException(); } }