fr.paris.lutece.plugins.ods.ui.field
Class AbstractFieldDecorator<T>

java.lang.Object
  extended by fr.paris.lutece.plugins.ods.ui.field.AbstractField<T>
      extended by fr.paris.lutece.plugins.ods.ui.field.AbstractFieldDecorator<T>
Type Parameters:
T - le type de la valeur manipule par le champ
All Implemented Interfaces:
Field
Direct Known Subclasses:
RecomputeDecorator

public abstract class AbstractFieldDecorator<T>
extends AbstractField<T>

Classe abstraite pour la mise en oeuvre du pattern Decorator. Permet d'etendre les fonctinonalite d'affichage d'un champ de base par des controles supplementaires. Par exemple : pour l'ajout d'un bouton de type "Recalculer" lie a un champ date


Field Summary
protected  Field _field
           
 
Fields inherited from class fr.paris.lutece.plugins.ods.ui.field.AbstractField
_attributes, _bIsReadonly, _id, _jsEventMap, _value, ATTRIBUTE_COLS, ATTRIBUTE_MAXLENGTH, ATTRIBUTE_REQUIRED, ATTRIBUTE_ROWS, ATTRIBUTE_SIZE
 
Constructor Summary
protected AbstractFieldDecorator()
           
  AbstractFieldDecorator(Field field)
          Constructeur du Decorator
 
Method Summary
 java.lang.String getId()
          Permet d'identifier de maniere unique le champ
 boolean isReadonly()
          Permet de verifier si le champ est en lecture seule
 
Methods inherited from class fr.paris.lutece.plugins.ods.ui.field.AbstractField
equals, getAttributes, getJSTemplatePath, hashCode, init, renderHtml, renderJS, renderJS, setJsEventMap, setReadonly, setRequired
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.paris.lutece.plugins.ods.ui.field.Field
render
 

Field Detail

_field

protected Field _field
Constructor Detail

AbstractFieldDecorator

protected AbstractFieldDecorator()

AbstractFieldDecorator

public AbstractFieldDecorator(Field field)
Constructeur du Decorator

Parameters:
field -
Method Detail

getId

public java.lang.String getId()
Description copied from interface: Field
Permet d'identifier de maniere unique le champ

Specified by:
getId in interface Field
Overrides:
getId in class AbstractField<T>
Returns:
l'identifiant du champ

isReadonly

public boolean isReadonly()
Description copied from interface: Field
Permet de verifier si le champ est en lecture seule

Specified by:
isReadonly in interface Field
Overrides:
isReadonly in class AbstractField<T>


Copyright © 2010 Mairie de Paris. All Rights Reserved.