sf.net.kayestry.components.combo
Class Combo

java.lang.Object
  extended by org.apache.tapestry.spec.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by sf.net.kayestry.components.combo.Combo
All Implemented Interfaces:
org.apache.tapestry.IComponent, org.apache.tapestry.ILocatable, org.apache.tapestry.ILocationHolder, org.apache.tapestry.IRender

public abstract class Combo
extends org.apache.tapestry.BaseComponent

Crea un combo a partir de una Lista o una enumeracion.

Los parametros model, label y returnId son cuando los datos se sacan de una lista (ver la documentacion de GenericSelectionModel).

En el caso de generar el combo desde una enumeracion se pasa la clase que la define. Por ejemplo: si la clase que define la enumeracion es ar.org.ejemplo.Enum, el se usaria en la definicion del componente:
<binding name="model" expression="@ar.org.ejemplo.Enum@class"/>
En este ultimo caso, el parametro returnId no se usa.

Author:
lparra
See Also:
GenericSelectionModel, EnumSelectionModel

Constructor Summary
Combo()
           
 
Method Summary
protected abstract  boolean getEnumTranslateLabels()
           
protected abstract  java.lang.String getLabel()
           
protected abstract  java.lang.Object getModel()
           
 org.apache.tapestry.form.IPropertySelectionModel getModelData()
           
protected abstract  boolean getReturnId()
           
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, cleanupAfterRender, finishLoad, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, fireObservedChange, format, format, format, format, formatString, formatString, formatString, formatString, generateAttributes, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getChangeObserver, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, getString, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainer, setId, setNamespace, setPage, setProperty, setSpecification, toString
 
Methods inherited from class org.apache.tapestry.spec.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.ILocationHolder
setLocation
 
Methods inherited from interface org.apache.tapestry.ILocatable
getLocation
 

Constructor Detail

Combo

public Combo()
Method Detail

getModel

protected abstract java.lang.Object getModel()

getLabel

protected abstract java.lang.String getLabel()

getReturnId

protected abstract boolean getReturnId()

getEnumTranslateLabels

protected abstract boolean getEnumTranslateLabels()

getModelData

public org.apache.tapestry.form.IPropertySelectionModel getModelData()


Copyright © 2006 Kaya. All Rights Reserved.