jaxx.runtime.swing.editor.bean
Class BeanListHeaderHandler<O>

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

public class BeanListHeaderHandler<O>
extends Object
implements 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:
tchemit
See Also:
BeanListHeader

Field Summary
protected  org.nuiton.util.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
BeanListHeaderHandler(BeanListHeader<O> ui)
           
 
Method Summary
 org.nuiton.util.decorator.MultiJXPathDecorator<O> getDecorator()
           
 O getSelectedValue()
           
 void init(org.nuiton.util.decorator.JXPathDecorator<O> decorator, List<O> data)
          Initialise le handler de l'ui
 void propertyChange(PropertyChangeEvent evt)
           
protected  void setIndex(Integer oldValue, Integer newValue)
          Modifie l'index du décorateur
protected  void setSortOrder(Boolean oldValue, 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 Detail

log

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

ui

protected BeanListHeader<O> ui
ui if the handler


decorator

protected org.nuiton.util.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 Detail

BeanListHeaderHandler

public BeanListHeaderHandler(BeanListHeader<O> ui)
Method Detail

init

public void init(org.nuiton.util.decorator.JXPathDecorator<O> decorator,
                 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(Integer oldValue,
                        Integer newValue)
Modifie l'index du décorateur

Parameters:
oldValue - l'ancienne valeur
newValue - la nouvelle valeur

setSortOrder

protected void setSortOrder(Boolean oldValue,
                            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.util.decorator.MultiJXPathDecorator<O> getDecorator()

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

getSelectedValue

public O getSelectedValue()


Copyright © 2008-2012 CodeLutin. All Rights Reserved.