net.ezcontent.web.admin.sections.docs
Class DocEditImages

java.lang.Object
  extended byorg.apache.tapestry.spec.BaseLocatable
      extended byorg.apache.tapestry.AbstractComponent
          extended byorg.apache.tapestry.BaseComponent
              extended bynet.ezcontent.web.admin.sections.docs.DocEditImages
All Implemented Interfaces:
IComponent, ILocatable, ILocationHolder, IRender

public abstract class DocEditImages
extends BaseComponent

Componente para administrar las imagenes de un documento.

Author:
Enrique Zamudio

Field Summary
 
Fields inherited from class org.apache.tapestry.BaseComponent
 
Fields inherited from class org.apache.tapestry.AbstractComponent
 
Fields inherited from class org.apache.tapestry.spec.BaseLocatable
 
Constructor Summary
DocEditImages()
           
 
Method Summary
 void addFile(IRequestCycle cycle)
          Agrega un nuevo attachment al documento.
 DocumentDAO getDao()
          Devuelve el DAO de documentos (lo obtiene de Global).
abstract  Image getFile()
          Devuelve el attachment actual (en el Foreach).
 String getFileSize()
          Devuelve una descripcion del tamaño del archivo.
abstract  IUploadFile getImgFile()
          Devuelve el archivo que sube el usuario.
abstract  String getImgName()
          Devuelve el nombre del attachment que se va a agregar.
 String getTipoImagen()
           
 void removeFile(IRequestCycle cycle)
          Elimina del documento el attachment seleccionado.
 
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

DocEditImages

public DocEditImages()
Method Detail

getFile

public abstract Image getFile()
Devuelve el attachment actual (en el Foreach).


getImgName

public abstract String getImgName()
Devuelve el nombre del attachment que se va a agregar.


getImgFile

public abstract IUploadFile getImgFile()
Devuelve el archivo que sube el usuario.


getDao

public DocumentDAO getDao()
Devuelve el DAO de documentos (lo obtiene de Global).


addFile

public void addFile(IRequestCycle cycle)
Agrega un nuevo attachment al documento.


removeFile

public void removeFile(IRequestCycle cycle)
Elimina del documento el attachment seleccionado.


getFileSize

public String getFileSize()
Devuelve una descripcion del tamaño del archivo.


getTipoImagen

public String getTipoImagen()