001    /*
002     * Copyright 2002-2004 the original author or authors.
003     * 
004     * Licensed under the Apache License, Version 2.0 (the "License"); you may not
005     * use this file except in compliance with the License. You may obtain a copy of
006     * the License at
007     * 
008     * http://www.apache.org/licenses/LICENSE-2.0
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
012     * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
013     * License for the specific language governing permissions and limitations under
014     * the License.
015     */
016    package org.springframework.richclient.core;
017    
018    /**
019     * Constants for swing user interface classes.
020     * 
021     * @author Keith Donald
022     */
023    public class UIConstants {
024        private UIConstants() {
025        }
026    
027        public static final String ELLIPSIS = "...";
028    
029        /**
030         * The Java look and Feel standard for one screen space between GUI
031         * Components.
032         */
033        public static final int ONE_SPACE = 5;
034    
035        /**
036         * The Java look and Feel standard for two screen spaces between GUI
037         * Components.
038         */
039        public static final int TWO_SPACES = 11;
040    
041        /**
042         * The Java look and Feel standard for three screen spaces between GUI
043         * Components.
044         */
045        public static final int THREE_SPACES = 17;
046    
047        /**
048         * The Java look and Feel standard for border spacing.
049         */
050        public static final int STANDARD_BORDER = TWO_SPACES;
051    
052        /**
053         * Symbolic name for absence of keystroke mask.
054         */
055        public static final int NO_KEYSTROKE_MASK = 0;
056    
057        /**
058         * Suggested width for a <code>JTextField</code>
059         */
060        public static final int SIMPLE_FIELD_WIDTH = 20;
061    
062        /**
063         * Suggested width for a <code>JTextField</code> storing a file path.
064         */
065        public static final int FILE_PATH_FIELD_WIDTH = 30;
066    
067        /**
068         * Maximum length for some <code>JLabel</code>s, beyond which the text
069         * will be truncated.
070         */
071        public static final int MAX_LABEL_LENGTH = 35;
072    
073    }