@@ -0,0 +1,1763 @@
+package com.alexrnl.commons.translation;%0A%0A%0A/**%0A * This class is defining the translation for a dialog.%3Cbr /%3E%0A * A standard dialog is composed of a title and a message, this class factorise the definition of%0A * the keys for these data and uses the %7B@link #toString()%7D method to build the key.%3Cbr /%3E%0A * This class also implements the %7B@link ParametrableTranslation%7D interface which returns an empty%0A * parameter array by default (i.e. no parameter are accepted by this dialog); override the method%0A * %7B@link #getParameters()%7D if necessary.%0A * Example of implementation (with the use of the parameters):%0A * %3Cpre%3E%0A * public class HelloDialog extends AbstractDialog %7B%0A * %09private helloKey;%0A * %09private parameters;%0A * %0A * %09public HelloDialog (String name) %7B%0A * %09%09super();%0A * %09%09this.helloKey = %22commons.dialogs.hello%22;%0A * %09%09this.parameters = new Object%5B1%5D;%0A * %09%09Object%5B0%5D = name;%0A * %09%7D%0A * %0A *%09public String toString () %7B%0A *%09%09return helloKey;%0A *%09%7D%0A *%0A *%09public Object%5B%5D getParameters () %7B%0A *%09%09return parameters%0A *%09%7D%0A *%09%0A * %7D%0A * %3C/pre%3E%0A * @author Alex%0A */%0Apublic abstract class AbstractDialog implements ParametrableTranslation %7B%0A%09%0A%09/**%0A%09 * The title of the dialog.%0A%09 * @return the translation of the dialog's title.%0A%09 */%0A%09public String title () %7B%0A%09%09return toString() + %22.%22 + %22title%22;%0A%09%7D%0A%09%0A%09/**%0A%09 * The message of the dialog.%0A%09 * @return the translation of the dialog's message.%0A%09 */%0A%09public String message () %7B%0A%09%09return toString() + %22.%22 + %22message%22;%0A%09%7D%0A%0A%09/**%0A%09 * Provide the key to the dialog, which allow to define the %7B@link #title()%7D and%0A%09 * %7B@link #message()%7D method at this level.%0A%09 */%0A%09@Override%0A%09public abstract String toString ();%0A%0A%09/**%0A%09 * By default, all dialogs are parametrable%0A%09 */%0A%09@Override%0A%09public Object%5B%5D getParameters () %7B%0A%09%09return new Object%5B0%5D;%0A%09%7D%0A%7D%0A

Add the AbstractDialog class