Author: nbubna
Date: Tue Feb 3 19:39:24 2009
New Revision: 740391
URL: http://svn.apache.org/viewvc?rev=740391&view=rev
Log:
sync to recent showcase changes
Modified:
velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties
Modified:
velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties
URL:
http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties?rev=740391&r1=740390&r2=740391&view=diff
==============================================================================
--- velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties
(original)
+++ velocity/tools/trunk/examples/showcase/WEB-INF/src/resources.properties Tue
Feb 3 19:39:24 2009
@@ -94,9 +94,9 @@
demo.nullResult = null
demo.clear = Clear All
demo.description = Description
-demo.descriptionMissing = [TODO: add description]
-demo.try = Try it!
-demo.tryAgain = Try Again!
+demo.descriptionMissing = TODO: add {0} = [description] to resources.properties
+demo.try = Go
+demo.tryAgain = Go
demo.tryAnything = Try any code out here.
demo.thisPage = This page demonstrates functions of the {0}
demo.mainExampleHeader = Example Display
@@ -143,7 +143,7 @@
class.getSafeMode = Returns the current safeMode setting.
class.getType = Returns the actual <code>Class</code> being inspected.
class.getTypes = Returns a <code>Set</code> of all <code>Class</code>es that
are part of the signatures (i.e. parameters or return types) of the inspected
Class''s methods, constructors and fields.
-class.inspectSuper = Returns a new ClassTool instance that inspects the
immediate superclass of the class being inspected.
+class.getSuper = Returns a new ClassTool instance that inspects the immediate
superclass of the class being inspected.
class.inspect_Class = Returns a new ClassTool instance that inspects the
specified Class.
class.inspect_Class.param1 = $class.class
class.inspect_Object = Returns a new ClassTool instance that inspects the
Class of the specified object.
@@ -171,6 +171,75 @@
context.getToolbox = Returns a java.util.Map of the tools available in the
current request context and their context keys.
context.getValues = Returns a java.util.Set of the values available in the
current request context.
+# convert.vm resources
+convert.intro = This tool aids in converting Strings (or other objects) to
more useful types.
+convert.getDateFormat = The default configured Date format string.
+convert.getNumberFormat = The default configured Number format string.
+convert.getStringsDelimiter = The delimiter used to identify separate values
in any of the pluralized methods below.
+convert.getStringsTrim = Whether or not whitespace is trimmed off of Strings
passed in before they are used.
+convert.toString = Converts an object to an instance of String if the object
is not already an instance of String.
+convert.toString.param1 = $convert
+convert.toStrings = Converts an array, Collection, delimited String, or object
to an array of Strings.
+convert.toStrings.Object = [true,false]
+convert.toBoolean = Converts an object to an instance of Boolean if the object
is not already an instance of Boolean.
+convert.toBoolean.Object = ''true''
+convert.toBooleans = Converts an array, Collection, delimited String, or
object to an array of Booleans.
+convert.toBooleans.Object = ''false,true''
+convert.toLocale = Converts an object to an instance of Locale if the object
is not already an instance of Locale.
+convert.toLocale.Object = ''en_US''
+convert.toLocales = Converts an array, Collection, delimited String, or object
to an array of Locales.
+convert.toLocales.Object = ''en_US,fr''
+convert.toInteger = Converts an object to an instance of Integer using the
format returned by $convert.numberFormat and the Locale returned by
$convert.locale if the object is not already an instance of Integer.
+convert.toInteger.Object = 1.2
+convert.toInts = Converts an array, Collection, delimited String, or object to
an array of Ints.
+convert.toInts.Object = ''1.2,2.3,3.4''
+convert.toDouble = Converts an object to an instance of Double using the
format returned by $convert.numberFormat and the Locale returned by
$convert.locale if the object is not already an instance of Double.
+convert.toDouble.Object = 1
+convert.toDoubles = Converts an array, Collection, delimited String, or object
to an array of Doubles.
+convert.toDoubles.Object = ''1,2.3''
+convert.toNumber = Converts an object to an instance of Number using the
format returned by $convert.numberFormat and the Locale returned by
$convert.locale if the object is not already an instance of Number.
+convert.toNumber.Object = $date.date
+convert.toNumbers = Converts an array, Collection, delimited String, or object
to an array of Numbers.
+convert.toNumbers.Object = ''1,2.3''
+convert.parseNumber_String = Parses the specified String to an instance of
Number using the default Locale (as returned by $convert.locale).
+convert.parseNumber_String.param1 = ''10.2''
+convert.parseNumber_StringObject = Parses a String to an instance of Number
using the specified format and the Locale returned by $convert.locale.
+convert.parseNumber.String =
+convert.parseNumber_StringStringObject = Parses a String to an instance of
Number using the specified format and Locale.
+convert.toDate = Converts an object to an instance of Date using the format
returned by $convert.dateFormat and the Locale returned by $convert.locale.
+convert.toDate.Object = ''2009-01-31''
+convert.toDates = Converts an array, Collection, delimited String, or object
to an array of Dates.
+convert.toDates.Object = ''2009-01-31,2006-07-17''
+convert.parseDate_String = Parses the specified String to an instance of Date
using the default format and Locale.
+convert.parseDate_String.param1 = ''2006-07-17''
+convert.parseDate_StringObject = Parses a String to an instance of Date using
the specified format and the Locale returned by $convert.locale.
+convert.parseDate_StringObject.param1 = ''8-1-79''
+convert.parseDate_StringObject.param2 = ''M-d-yy''
+convert.parseDate_StringStringObject = Parses a String to an instance of Date
using the specified format and Locale
+convert.parseDate.String =
+convert.parseDate_StringStringObjectTimeZone = Parses a String to an instance
of Date using the specified format, Locale and TimeZone
+convert.toCalendar = Converts an object to an instance of Calendar using the
format returned by $convert.dateFormat and the Locale returned by
$convert.locale.
+convert.toCalendar.Object = $date
+convert.toCalendars = Converts an array, Collection, delimited String, or
object to an array of Calendars.
+convert.toCalendars.Object = ''2009-01-31,2006-07-17''
+
+# cookies.vm resources
+cookies.intro = Remember, when adding a cookie, it is <b>not</b> added \
+to the same request which does the adding. This means to see a cookie \
+you''ve added, you must add it, and then refresh the page again.
+cookies.getAll = Returns a list of Cookies for this request.
+cookies.get = Returns the Cookie with the specified name, if it exists.
+cookies.add_Cookie = Adds the cookie to the HttpServletResponse. This does
<b>NOT</b> add it to the current request.
+cookies.add_Cookie.param1 = $cookies.create(''test'',''test'')
+cookies.add_StringString = Adds a new Cookie with the specified name and value
to the HttpServletResponse. This does <b>not</b> add a Cookie to the current
request.
+cookies.add_StringStringObject = Convenience method to add a new Cookie to the
response and set an expiry time for it.
+cookies.create_StringString = Creates a new Cookie with the specified name and
value. This does <b>not</b> add the Cookie to the response, so the created
Cookie will not be set unless you do <code>$cookies.add($myCookie)</code>
+cookies.create_StringStringObject = Convenience method to create a new Cookie
and set an expiry time for it. The created cookie must then be manually added.
+cookies.delete_String = Instructs the browser to remove the specified cookie
by setting it with a Max-Age of 0.
+cookies.toString = If there are no Cookies in the request, this returns the
standard Object.toString output; otherwise, it returns a pretty printed list of
cookie names and values.
+cookies.custom = $cookies.JSESSIONID
+cookies.Object = 10
+
# display.vm resources
display.intro = This tool provides a variety of methods for controlling the
output \
displayed by various references in your templates.