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

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.DocEditAttachments
All Implemented Interfaces:
IComponent, ILocatable, ILocationHolder, IRender

public abstract class DocEditAttachments
extends BaseComponent

Componente para manejar los attachments 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
DocEditAttachments()
           
 
Method Summary
 void addFile(IRequestCycle cycle)
          Agrega un nuevo attachment al documento.
abstract  IUploadFile getAttFile()
          Devuelve el archivo que sube el usuario.
abstract  String getAttName()
          Devuelve el nombre del attachment que se va a agregar.
 DocumentDAO getDao()
          Devuelve el DAO de documentos (lo obtiene de Global).
abstract  Attachment getFile()
          Devuelve el attachment actual (en el Foreach).
 String getFileSize()
          Devuelve una descripcion del tamaño del archivo.
 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

DocEditAttachments

public DocEditAttachments()
Method Detail

getFile

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


getAttName

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


getAttFile

public abstract IUploadFile getAttFile()
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.