blob: 531076b3c8fe4e00db0b2cbb9bdc7c32406bcaa7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
/*******************************************************************************
* Copyright (c) 2010 BSI Business Systems Integration AG.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* BSI Business Systems Integration AG - initial API and implementation
******************************************************************************/
package org.eclipse.scout.rt.client.ui.form.fields.datefield;
import org.eclipse.scout.commons.annotations.ConfigPropertyValue;
import org.eclipse.scout.commons.logger.IScoutLogger;
import org.eclipse.scout.commons.logger.ScoutLogManager;
/**
* convenience subclass of {@link AbstractDateField} with hasDate=false and hasTime=true
*/
public abstract class AbstractTimeField extends AbstractDateField {
private static final IScoutLogger LOG = ScoutLogManager.getLogger(AbstractTimeField.class);
public AbstractTimeField() {
this(true);
}
public AbstractTimeField(boolean callInitializer) {
super(callInitializer);
}
@ConfigPropertyValue("true")
@Override
protected boolean getConfiguredHasTime() {
return true;
}
@Override
protected boolean getConfiguredHasDate() {
return false;
}
}
|