Class BeanListHeaderHandler<O>

java.lang.Object
jaxx.runtime.swing.editor.bean.BeanListHeaderHandler<O>
Type Parameters:
O - le type des objet contenus dans le modèle du composant.
All Implemented Interfaces:
java.beans.PropertyChangeListener, java.util.EventListener

public class BeanListHeaderHandler<O>
extends java.lang.Object
implements java.beans.PropertyChangeListener
Le handler d'un BeanListHeader. Note: ce handler n'est pas stateless et n'est donc pas partageable entre plusieurs ui.
Since:
2.2
Author:
Tony Chemit - chemit@codelutin.com
See Also:
BeanListHeader
  • Field Summary

    Fields
    Modifier and Type Field Description
    protected org.nuiton.decorator.MultiJXPathDecorator<O> decorator
    the decorator of data
    protected boolean init
    flag to mark when handler was init (it can be init only once).
    static org.apache.commons.logging.Log log  
    protected BeanListHeader<O> ui
    ui if the handler
  • Constructor Summary

    Constructors
    Constructor Description
    BeanListHeaderHandler​(BeanListHeader<O> ui)  
  • Method Summary

    Modifier and Type Method Description
    org.nuiton.decorator.MultiJXPathDecorator<O> getDecorator()  
    O getSelectedValue()  
    void init​(org.nuiton.decorator.JXPathDecorator<O> decorator, java.util.List<O> data)
    Initialise le handler de l'ui
    void propertyChange​(java.beans.PropertyChangeEvent evt)  
    protected void setIndex​(java.lang.Integer oldValue, java.lang.Integer newValue)
    Modifie l'index du décorateur
    protected void setSortOrder​(java.lang.Boolean oldValue, java.lang.Boolean newValue)
    Modifie l'index du décorateur
    void togglePopup()
    Toggle the popup visible state.
    protected void updateUI​(int index, boolean reverseSort)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • log

      public static final org.apache.commons.logging.Log log
    • ui

      protected BeanListHeader<O> ui
      ui if the handler
    • decorator

      protected org.nuiton.decorator.MultiJXPathDecorator<O> decorator
      the decorator of data
    • init

      protected boolean init
      flag to mark when handler was init (it can be init only once).
  • Constructor Details

    • BeanListHeaderHandler

      public BeanListHeaderHandler​(BeanListHeader<O> ui)
  • Method Details

    • init

      public void init​(org.nuiton.decorator.JXPathDecorator<O> decorator, java.util.List<O> data)
      Initialise le handler de l'ui
      Parameters:
      decorator - le decorateur a utiliser
      data - la liste des données a gérer
    • togglePopup

      public void togglePopup()
      Toggle the popup visible state.
    • setIndex

      protected void setIndex​(java.lang.Integer oldValue, java.lang.Integer newValue)
      Modifie l'index du décorateur
      Parameters:
      oldValue - l'ancienne valeur
      newValue - la nouvelle valeur
    • setSortOrder

      protected void setSortOrder​(java.lang.Boolean oldValue, java.lang.Boolean newValue)
      Modifie l'index du décorateur
      Parameters:
      oldValue - l'ancienne valeur
      newValue - la nouvelle valeur
    • updateUI

      protected void updateUI​(int index, boolean reverseSort)
    • getDecorator

      public org.nuiton.decorator.MultiJXPathDecorator<O> getDecorator()
    • propertyChange

      public void propertyChange​(java.beans.PropertyChangeEvent evt)
      Specified by:
      propertyChange in interface java.beans.PropertyChangeListener
    • getSelectedValue

      public O getSelectedValue()