001package org.gwtbootstrap3.extras.datepicker.client.ui.base.constants;
002
003/*
004 * #%L
005 * GwtBootstrap3
006 * %%
007 * Copyright (C) 2013 GwtBootstrap3
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/**
024 * String. Default: 'mm/dd/yyyy'
025 * <p/>
026 * The date format, combination of p, P, h, hh, i, ii, s, ss, d, dd, m, mm, M, MM, yy, yyyy.
027 * p : meridian in lower case ('am' or 'pm') - according to locale file
028 * P : meridian in upper case ('AM' or 'PM') - according to locale file
029 * s : seconds without leading zeros
030 * ss : seconds, 2 digits with leading zeros
031 * i : minutes without leading zeros
032 * ii : minutes, 2 digits with leading zeros
033 * h : hour without leading zeros - 24-hour format
034 * hh : hour, 2 digits with leading zeros - 24-hour format
035 * H : hour without leading zeros - 12-hour format
036 * HH : hour, 2 digits with leading zeros - 12-hour format
037 * d : day of the month without leading zeros
038 * dd : day of the month, 2 digits with leading zeros
039 * m : numeric representation of month without leading zeros
040 * mm : numeric representation of the month, 2 digits with leading zeros
041 * M : short textual representation of a month, three letters
042 * MM : full textual representation of a month, such as January or March
043 * yy : two digit representation of a year
044 * yyyy : full numeric representation of a year, 4 digits
045 *
046 * @author Joshua Godi
047 */
048public interface HasFormat {
049    void setFormat(String format);
050}