Lines Matching refs:value

42  * The value of the <code>calendarField</code> property must be one of the
49 * hours after the current <code>value</code>, and <code>previousValue</code>
76 * <code>value</code>, <code>calendarField</code>,
92 private Calendar value;
125 * the current date <code>value</code> by the
133 * upper or lower bound. If <code>value</code> or
138 * Similarly if <code>(minimum &lt;= value &lt;= maximum)</code> is false,
141 * @param value the current (non <code>null</code>) value of the model
163 * @throws IllegalArgumentException if <code>value</code> or
167 * false: <code>(start &lt;= value &lt;= end)</code>.
175 public SpinnerDateModel(Date value, Comparable start, Comparable end, int calendarField) {
176 if (value == null) {
177 throw new IllegalArgumentException("value is null");
182 if (!(((start == null) || (start.compareTo(value) <= 0)) &&
183 ((end == null) || (end.compareTo(value) >= 0)))) {
184 throw new IllegalArgumentException("(start <= value <= end) is false");
186 this.value = Calendar.getInstance();
191 this.value.setTime(value);
197 * <code>value</code> is the current date, <code>calendarField</code>
210 * the new start value may invalidate the
211 * <code>(start &lt;= value &lt;= end)</code>
254 * @return the value of the <code>start</code> property
266 * start value may invalidate the <code>(start &lt;= value &lt;= end)</code>
295 * @return the value of the <code>end</code> property
304 * Changes the size of the date value change computed
360 * @return the value of the <code>calendarField</code> property
381 cal.setTime(value.getTime());
402 cal.setTime(value.getTime());
413 * @return the <code>value</code> property
417 return value.getTime();
424 * @return the <code>value</code> property
429 return value.getTime();
435 * If <code>value</code> is <code>null</code>,
438 * the new value may invalidate the <code>(start &lt= value &lt end)</code>
440 * that the <code>(start &lt;= value &lt;= maximum)</code> invariant is true
445 * <code>value</code> has changed.
447 * @param value the current (non <code>null</code>)
449 * @throws IllegalArgumentException if value is <code>null</code>
455 public void setValue(Object value) {
456 if ((value == null) || !(value instanceof Date)) {
457 throw new IllegalArgumentException("illegal value");
459 if (!value.equals(this.value.getTime())) {
460 this.value.setTime((Date)value);