org.exoplatform.webui.commons
Class UIAddAttachment

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.commons.UIAddAttachment
All Implemented Interfaces:
org.exoplatform.webui.core.UIPopupComponent

public class UIAddAttachment
extends org.exoplatform.webui.core.UIContainer
implements org.exoplatform.webui.core.UIPopupComponent

Created by The eXo Platform SAS Author : Lai Trung Hieu hieu.lai@exoplatform.com 5 May 2011


Nested Class Summary
static class UIAddAttachment.AttachFileActionListener
           
static class UIAddAttachment.AttachLinkActionListener
           
static class UIAddAttachment.CancelActionListener
           
static class UIAddAttachment.GenericAttachActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected static String ATTACH
           
protected static String ATTACHLINK
           
protected static String CANCEL
           
static String ISATTACHFILE
           
static String SELECTEDFILE
           
protected static String UIDOCUMENTSELECTOR
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIAddAttachment()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 javax.jcr.Session getCurrentSession()
           
 String getFileURL(String path)
           
 EventUIComponent getTargetAttachEvent()
           
 void setTargetAttachEvent(EventUIComponent targetAttachEvent)
           
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UIDOCUMENTSELECTOR

protected static final String UIDOCUMENTSELECTOR
See Also:
Constant Field Values

CANCEL

protected static final String CANCEL
See Also:
Constant Field Values

ATTACH

protected static final String ATTACH
See Also:
Constant Field Values

ATTACHLINK

protected static final String ATTACHLINK
See Also:
Constant Field Values

SELECTEDFILE

public static final String SELECTEDFILE
See Also:
Constant Field Values

ISATTACHFILE

public static final String ISATTACHFILE
See Also:
Constant Field Values
Constructor Detail

UIAddAttachment

public UIAddAttachment()
Method Detail

getTargetAttachEvent

public EventUIComponent getTargetAttachEvent()

setTargetAttachEvent

public void setTargetAttachEvent(EventUIComponent targetAttachEvent)

getFileURL

public String getFileURL(String path)
                  throws Exception
Throws:
Exception

getCurrentSession

public javax.jcr.Session getCurrentSession()
                                    throws Exception
Throws:
Exception

activate

public void activate()
Specified by:
activate in interface org.exoplatform.webui.core.UIPopupComponent

deActivate

public void deActivate()
Specified by:
deActivate in interface org.exoplatform.webui.core.UIPopupComponent


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.