/*
* SmartGWT (GWT for SmartClient)
* Copyright 2008 and beyond, Isomorphic Software, Inc.
*
* SmartGWT is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License version 3
* as published by the Free Software Foundation. SmartGWT is also
* available under typical commercial license terms - see
* http://smartclient.com/license
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.vaadin.smartgwt.server.types;
/**
* String designating a standard time formatter for displaying the times associated with
dates strings.
*/
public enum TimeDisplayFormat implements ValueEnum {
/**
* String will display with seconds and am/pm indicator:<code>[H]H:MM:SS am|pm</code>. <br>
Example:
* <code>3:25:15 pm</code>
*/
TOTIME("toTime"),
/**
* String will display with seconds in 24 hour time: <code>[H]H:MM:SS</code>. <br>
Example:
* <code>15:25:15</code>
*/
TO24HOURTIME("to24HourTime"),
/**
* String will display with seconds, with a 2 digit hour and am/pm indicator:
<code>HH:MM:SS
* am|pm</code> <br>
Example: <code>03:25:15 pm</code>
*/
TOPADDEDTIME("toPaddedTime"),
/**
* String will display with seconds, with a 2 digit hour in 24 hour format:
<code>HH:MM:SS</code>
* <br>
Examples: <code>15:25:15</code>, <code>03:16:45</code>
*/
TOPADDED24HOURTIME("toPadded24HourTime"),
/**
* String will have no seconds and be in 12 hour format:<code>[H]H:MM am|pm</code><br>
Example:
* <code>3:25 pm</code>
*/
TOSHORTTIME("toShortTime"),
/**
* String will have no seconds and be in 24 hour format: <code>[H]H:MM</code><br>
* Example:<code>15:25</code>
*/
TOSHORT24HOURTIME("toShort24HourTime"),
/**
* String will have no seconds and will display a 2 digit hour, in 12 hour clock format:
<code>HH:MM
* am|pm</code><br>
Exmaple: <code>03:25 pm</code>
*/
TOSHORTPADDEDTIME("toShortPaddedTime"),
/**
* String will have no seconds and will display with a 2 digit hour in 24 hour clock format:
* <code>HH:MM</code><br>
Examples: <code>15:25</code>, <code>03:16</code>
*/
TOSHORTPADDED24HOURTIME("toShortPadded24HourTime");
private String value;
TimeDisplayFormat(String value) {
this.value = value;
}
public String getValue() {
return this.value;
}
}