jaxx.runtime.swing.editor.bean
Class BeanUIUtil

java.lang.Object
  extended by jaxx.runtime.swing.editor.bean.BeanUIUtil

public class BeanUIUtil
extends Object

Class with usefull methods used in bean uis.

Since:
2.2
Author:
tchemit

Nested Class Summary
static class BeanUIUtil.PopupHandler
           
 
Field Summary
static String DEFAULT_NOT_SELECTED_TOOLTIP
           
static String DEFAULT_POPUP_LABEL
           
static String DEFAULT_SELECTED_TOOLTIP
           
 
Constructor Summary
BeanUIUtil()
           
 
Method Summary
static
<O> MultiJXPathDecorator<O>
createDecorator(JXPathDecorator<O> decorator)
           
static void decorate(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 org.jdesktop.swingx.autocomplete.ObjectToStringConverter newDecoratedObjectToStringConverter(Decorator<?> decorator)
          Encapsule un Decorator dans un ObjectToStringConverter.
static void undecorate(JComboBox comboBox, 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 Detail

DEFAULT_POPUP_LABEL

public static final String DEFAULT_POPUP_LABEL

DEFAULT_SELECTED_TOOLTIP

public static final String DEFAULT_SELECTED_TOOLTIP

DEFAULT_NOT_SELECTED_TOOLTIP

public static final String DEFAULT_NOT_SELECTED_TOOLTIP
Constructor Detail

BeanUIUtil

public BeanUIUtil()
Method Detail

newDecoratedObjectToStringConverter

public static org.jdesktop.swingx.autocomplete.ObjectToStringConverter newDecoratedObjectToStringConverter(Decorator<?> decorator)
Encapsule un Decorator dans un ObjectToStringConverter.

Parameters:
decorator - le decorateur a encapsuler.
Returns:
le converter encapsule dans un ObjectToStringConverter

decorate

public static void decorate(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écorer
convertor - le converter utilisé pour afficher les données.

undecorate

public static void undecorate(JComboBox comboBox,
                              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écorer
originalDocument - le document original de l'édtieur de la liste déroulante.

createDecorator

public static <O> MultiJXPathDecorator<O> createDecorator(JXPathDecorator<O> decorator)


Copyright © 2008-2011 CodeLutin. All Rights Reserved.