|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.runtime.validator.BeanValidatorUtil
jaxx.runtime.validator.swing.SwingValidatorUtil
public class SwingValidatorUtil
The helper class for validation module.
| Constructor Summary | |
|---|---|
protected |
SwingValidatorUtil()
|
| Method Summary | |
|---|---|
static ImageIcon |
getErrorIcon()
|
static SwingValidatorMessageListMouseListener |
getErrorListMouseListener(JList list)
|
static SwingValidatorMessageTableMouseListener |
getErrorTableMouseListener(JTable table)
|
static String |
getFieldName(SwingValidatorMessage model,
String value)
|
static ImageIcon |
getIcon(BeanValidatorScope scope)
|
static ImageIcon |
getInfoIcon()
|
static String |
getMessage(SwingValidatorMessage model)
|
static ImageIcon |
getWarningIcon()
|
static void |
installUI(JTable errorTable,
SwingValidatorMessageTableRenderer render)
Prepare the ui where to display the validators messages. |
static void |
listenValidatorContextNameAndRefreshFields(SwingValidator<?> validator,
JAXXValidator ui)
Method to listen the modification of the context name and at each time reload fields of the ui. |
static SwingValidatorMessageListMouseListener |
registerErrorListMouseListener(JList list)
Register for a given validator list ui a validator mouse listener. |
static SwingValidatorMessageTableMouseListener |
registerErrorTableMouseListener(JTable table)
Register for a given validator table ui a validator mouse listener Note: there is onlt one listener registred for a givne table model, so invokin this method twice or more will have no effect. |
| Methods inherited from class jaxx.runtime.validator.BeanValidatorUtil |
|---|
convert, getPropertyChangeListenerDescriptor, getScopes, getScopesCount, getSharedValueStack, setValidatorBean, setValidatorChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SwingValidatorUtil()
| Method Detail |
|---|
public static ImageIcon getErrorIcon()
public static ImageIcon getInfoIcon()
public static ImageIcon getWarningIcon()
public static void installUI(JTable errorTable,
SwingValidatorMessageTableRenderer render)
errorTable - the table where to display validators messagesrender - renderer to usepublic static SwingValidatorMessageListMouseListener registerErrorListMouseListener(JList list)
list - the validation ui list
SwingValidatorMessageListMouseListenerpublic static SwingValidatorMessageTableMouseListener registerErrorTableMouseListener(JTable table)
table - the validator table ui
SwingValidatorMessageTableMouseListenerpublic static SwingValidatorMessageListMouseListener getErrorListMouseListener(JList list)
list - the validator list ui
null if not
foundSwingValidatorMessageListMouseListenerpublic static SwingValidatorMessageTableMouseListener getErrorTableMouseListener(JTable table)
table - the validator table ui
null if not
foundSwingValidatorMessageTableMouseListenerpublic static String getMessage(SwingValidatorMessage model)
public static String getFieldName(SwingValidatorMessage model,
String value)
public static ImageIcon getIcon(BeanValidatorScope scope)
public static void listenValidatorContextNameAndRefreshFields(SwingValidator<?> validator,
JAXXValidator ui)
validator - validator to listenui - ui to refresh when context name has changed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||