public class OwRelativeDate extends Date
Current time relative Date
extension base.
Replaces OwNextDaysDateControl and OwLastDaysDateControl.
Instances of this class will be dates set to one of the following current date relative moments
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Modifier and Type | Field and Description |
---|---|
static int |
KEY_EMPTY_FIELD
value key for null date (empty field)
|
static int |
KEY_LAST_30_DAYS
value key for combo box
|
static int |
KEY_LAST_90_DAYS
value key for combo box
|
static int |
KEY_LAST_ONE_DAY
value key for combo box
|
static int |
KEY_LAST_ONE_WEEK
value key for combo box
|
static int |
KEY_LAST_TWO_DAYS
value key for combo box
|
static int |
KEY_LAST_TWO_WEEKS
value key for combo box
|
static int |
KEY_NEXT_30_DAYS
value key for combo box
|
static int |
KEY_NEXT_90_DAYS
value key for combo box
|
static int |
KEY_NEXT_ONE_DAY
value key for combo box
|
static int |
KEY_NEXT_ONE_WEEK
value key for combo box
|
static int |
KEY_NEXT_TWO_DAYS
value key for combo box
|
static int |
KEY_NEXT_TWO_WEEKS
value key for combo box
|
static int |
KEY_TODAY
value key for combo box
|
Constructor and Description |
---|
OwRelativeDate(int iKey_p)
Constructor
|
OwRelativeDate(long timestamp_p)
Constructor used for restoring search template state
|
Modifier and Type | Method and Description |
---|---|
static OwRelativeDate |
fromString(String string_p)
Returns an instance of
OwRelativeDate for one of the following relative
date representing strings (case insensitive, trimmed and with the inner white space normalized):
today
tomorrow
next two days
next week
next two weeks
next 30 days
next 90 days
yesterday
last two days
last week
last 30 days
last 90 days
|
int |
getSelectedKey()
Get selected key.
|
after, before, clone, compareTo, equals, getDate, getDay, getHours, getMinutes, getMonth, getSeconds, getTime, getTimezoneOffset, getYear, hashCode, parse, setDate, setHours, setMinutes, setMonth, setSeconds, setTime, setYear, toGMTString, toLocaleString, toString, UTC
public static final int KEY_EMPTY_FIELD
public static final int KEY_TODAY
public static final int KEY_LAST_ONE_DAY
public static final int KEY_LAST_TWO_DAYS
public static final int KEY_LAST_ONE_WEEK
public static final int KEY_LAST_TWO_WEEKS
public static final int KEY_LAST_30_DAYS
public static final int KEY_LAST_90_DAYS
public static final int KEY_NEXT_ONE_DAY
public static final int KEY_NEXT_TWO_DAYS
public static final int KEY_NEXT_ONE_WEEK
public static final int KEY_NEXT_TWO_WEEKS
public static final int KEY_NEXT_30_DAYS
public static final int KEY_NEXT_90_DAYS
public OwRelativeDate(int iKey_p)
iKey_p
- - the key valuepublic OwRelativeDate(long timestamp_p)
timestamp_p
- - the date as longpublic static OwRelativeDate fromString(String string_p) throws OwInvalidOperationException
OwRelativeDate
for one of the following relative
date representing strings (case insensitive, trimmed and with the inner white space normalized):
string_p
- String representation of a relative dateOwRelativeDate
object for the given relative date stringOwInvalidOperationException
public int getSelectedKey()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.