001    /*
002     * This file is part of the Echo Point Project.  This project is a
003     * collection of Components that have extended the Echo Web Application
004     * Framework Version 3.
005     *
006     * Version: MPL 1.1
007     *
008     * The contents of this file are subject to the Mozilla Public License Version
009     * 1.1 (the "License"); you may not use this file except in compliance with
010     * the License. You may obtain a copy of the License at
011     * http://www.mozilla.org/MPL/
012     *
013     * Software distributed under the License is distributed on an "AS IS" basis,
014     * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
015     * for the specific language governing rights and limitations under the
016     * License.
017     */
018    package echopoint.tucana;
019    
020    /**
021     * Enumeration of values for setting {@link FileUploadSelector#PROPERTY_BUTTON_DISPLAY}
022     *
023     * <p><b>Note:</b> Development of this component was sponsored by <a
024     * href='http://tcnbroadcasting.com/index.jsp' target='_top'>TCN
025     * Broadcasting</a>.  We are grateful for their support and sponsorship.</p>
026     *
027     * @author Rakesh 2008-11-9
028     * @version $Id: ButtonDisplay.java 92 2008-11-11 19:49:44Z sptrakesh $
029     */
030    public enum ButtonDisplay
031    {
032      /**
033       * Indicates that the submit button should be displayed
034       * to the right side of the file selection input.
035       */
036      right,
037    
038      /**
039       * Indicates that the submit button should be displayed
040       * to the left side of the file selection input.
041       */
042      left,
043    
044      /**
045       * Indicates that the submit button position relative to the file selection
046       * input should be treated using browser/platform defaults.  All browsers
047       * exception Safari will use {@link #right}.
048       */
049      auto,
050    
051      /**
052       * Indicates that no submit button is to be displayed.  The file upload
053       * should start as soon as it is selected in the file selection dialogue.
054       */
055      none
056    }