001/* 002 * This library is part of OpenCms - 003 * the Open Source Content Management System 004 * 005 * Copyright (C) Alkacon Software (http://www.alkacon.com) 006 * 007 * This library is free software; you can redistribute it and/or 008 * modify it under the terms of the GNU Lesser General Public 009 * License as published by the Free Software Foundation; either 010 * version 2.1 of the License, or (at your option) any later version. 011 * 012 * This library is distributed in the hope that it will be useful, 013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 015 * Lesser General Public License for more details. 016 * 017 * For further information about Alkacon Software, please see the 018 * company website: http://www.alkacon.com 019 * 020 * For further information about OpenCms, please see the 021 * project website: http://www.opencms.org 022 * 023 * You should have received a copy of the GNU Lesser General Public 024 * License along with this library; if not, write to the Free Software 025 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 026 */ 027 028package org.opencms.gwt.client.property.definition; 029 030import org.opencms.gwt.client.Messages; 031 032/** 033 * Messages for the property definition dialog.<p> 034 */ 035public class CmsPropertyDefinitionMessages { 036 037 /** 038 * Hidden default constructor.<p> 039 */ 040 protected CmsPropertyDefinitionMessages() { 041 042 } 043 044 /** 045 * Message accessor.<p> 046 * 047 * @return the message 048 */ 049 public static String alreadyExists() { 050 051 return Messages.get().key(Messages.ERR_PROPERTY_EXISTS_0); 052 } 053 054 /** 055 * Message accessor.<p> 056 * 057 * @return the message 058 */ 059 public static String cancel() { 060 061 return Messages.get().key(Messages.GUI_CANCEL_0); 062 } 063 064 /** 065 * Message accessor.<p> 066 * 067 * @return the message 068 */ 069 public static String labelExistingProperties() { 070 071 return Messages.get().key(Messages.GUI_LABEL_EXISTING_PROPERTIES_0); 072 } 073 074 /** 075 * Message accessor.<p> 076 * 077 * @return the message 078 */ 079 public static String labelNewProperty() { 080 081 return Messages.get().key(Messages.GUI_LABEL_NEW_PROPERTY_0); 082 } 083 084 /** 085 * Message accessor.<p> 086 * 087 * @return the message 088 */ 089 public static String messageDialogCaption() { 090 091 return Messages.get().key(Messages.GUI_CAPTION_DEFINE_PROPERTY_0); 092 } 093 094 /** 095 * Message accessor.<p> 096 * 097 * @return the message 098 */ 099 public static final String messageEmpty() { 100 101 return Messages.get().key(Messages.ERR_EMPTY_PROPERTY_NAME_0); 102 } 103 104 /** 105 * Message accessor.<p> 106 * 107 * @return the message 108 */ 109 public static String messageInvalidName() { 110 111 return Messages.get().key(Messages.ERR_INVALID_PROPERTY_NAME_0); 112 113 // return "Valid characters are only letters, digits and \"-._~$\"."; 114 } 115 116 /** 117 * Message accessor.<p> 118 * 119 * @return the message 120 */ 121 public static String ok() { 122 123 return Messages.get().key(Messages.GUI_OK_0); 124 125 } 126 127}