Package jaxx.runtime.swing.editor.bean
Class BeanUIUtil
java.lang.Object
jaxx.runtime.swing.editor.bean.BeanUIUtil
public class BeanUIUtil
extends java.lang.Object
Class with usefull methods used in bean uis.
- Since:
- 2.2
- Author:
- Tony Chemit - chemit@codelutin.com
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBeanUIUtil.PopupHandler -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_NOT_SELECTED_TOOLTIPstatic java.lang.StringDEFAULT_POPUP_LABELstatic java.lang.StringDEFAULT_SELECTED_TOOLTIPstatic java.lang.Object[]EMPTY_CLASS_ARRAY -
Constructor Summary
Constructors Constructor Description BeanUIUtil() -
Method Summary
Modifier and Type Method Description static <O> org.nuiton.decorator.MultiJXPathDecorator<O>createDecorator(org.nuiton.decorator.JXPathDecorator<O> decorator)static voiddecorate(javax.swing.JComboBox combo, org.jdesktop.swingx.autocomplete.ObjectToStringConverter convertor)Ajout l'auto-complétion sur une liste déroulante, en utilisant le converteur donné pour afficher les données.static voidinvokeMethod(java.lang.reflect.Method mut, java.lang.Object source, java.lang.Object... params)static org.jdesktop.swingx.autocomplete.ObjectToStringConverternewDecoratedObjectToStringConverter(org.nuiton.decorator.Decorator<?> decorator)Encapsule unDecoratordans unObjectToStringConverter.static voidundecorate(javax.swing.JComboBox comboBox, javax.swing.text.Document originalDocument)Désactive l'aut-complétion sur une liste déroulante, en y repositionnant le modèle du document d'édition d'avant auto-complétion.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
DEFAULT_POPUP_LABEL
public static final java.lang.String DEFAULT_POPUP_LABEL -
DEFAULT_SELECTED_TOOLTIP
public static final java.lang.String DEFAULT_SELECTED_TOOLTIP -
DEFAULT_NOT_SELECTED_TOOLTIP
public static final java.lang.String DEFAULT_NOT_SELECTED_TOOLTIP -
EMPTY_CLASS_ARRAY
public static final java.lang.Object[] EMPTY_CLASS_ARRAY
-
-
Constructor Details
-
BeanUIUtil
public BeanUIUtil()
-
-
Method Details
-
invokeMethod
public static void invokeMethod(java.lang.reflect.Method mut, java.lang.Object source, java.lang.Object... params) -
newDecoratedObjectToStringConverter
public static org.jdesktop.swingx.autocomplete.ObjectToStringConverter newDecoratedObjectToStringConverter(org.nuiton.decorator.Decorator<?> decorator)Encapsule unDecoratordans unObjectToStringConverter.- Parameters:
decorator- le decorateur a encapsuler.- Returns:
- le converter encapsule dans un
ObjectToStringConverter
-
decorate
public static void decorate(javax.swing.JComboBox combo, org.jdesktop.swingx.autocomplete.ObjectToStringConverter convertor)Ajout l'auto-complétion sur une liste déroulante, en utilisant le converteur donné pour afficher les données.- Parameters:
combo- la combo à décorerconvertor- le converter utilisé pour afficher les données.
-
undecorate
public static void undecorate(javax.swing.JComboBox comboBox, javax.swing.text.Document originalDocument)Désactive l'aut-complétion sur une liste déroulante, en y repositionnant le modèle du document d'édition d'avant auto-complétion.- Parameters:
comboBox- la liste déroulante à décoreroriginalDocument- le document original de l'édtieur de la liste déroulante.
-
createDecorator
public static <O> org.nuiton.decorator.MultiJXPathDecorator<O> createDecorator(org.nuiton.decorator.JXPathDecorator<O> decorator)
-