|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Date
com.wewebu.ow.server.fieldctrlimpl.OwRelativeDate
public class OwRelativeDate
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
Field Summary | |
---|---|
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 Summary | |
---|---|
OwRelativeDate(int iKey_p)
Constructor |
|
OwRelativeDate(long timestamp_p)
Constructor used for restoring search template state |
Method Summary | |
---|---|
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. |
Methods inherited from class java.util.Date |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public OwRelativeDate(int iKey_p)
iKey_p
- - the key valuepublic OwRelativeDate(long timestamp_p)
timestamp_p
- - the date as longMethod Detail |
---|
public 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 date
OwRelativeDate
object for the given relative date string
OwInvalidOperationException
public int getSelectedKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |