public class VelocityFormatter.VelocityAutoAlternator extends VelocityFormatter.VelocityAlternator
alternate()
automatically on rendering in a template.alternates, current| Constructor and Description |
|---|
VelocityAutoAlternator(String[] alternates)
Constructor takes an array of Strings.
|
| Modifier and Type | Method and Description |
|---|---|
String |
toString()
Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
|
alternatepublic VelocityAutoAlternator(String[] alternates)
alternates - A String[].public final String toString()
toString in class VelocityFormatter.VelocityAlternatorCopyright © 2000–2016. All rights reserved.