org.exoplatform.webui.commons
Class UISaveAttachment

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

public class UISaveAttachment
extends org.exoplatform.webui.form.UIForm
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 UISaveAttachment.CancelActionListener
           
static class UISaveAttachment.SaveFileActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected static String CANCEL
           
protected static String FIELD_INPUT
           
protected static String SAVEFILE
           
protected static String UIDOCUMENTSELECTOR
           
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISaveAttachment()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 String getFileName()
           
 String getFilePath()
           
 javax.jcr.Session getUserSession(String workspace)
           
 void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
           
 void setFileName(String fileName)
           
 void setFilePath(String filePath)
           
static void validate(String s)
           
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
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, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, 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

FIELD_INPUT

protected static final String FIELD_INPUT
See Also:
Constant Field Values

CANCEL

protected static final String CANCEL
See Also:
Constant Field Values

SAVEFILE

protected static final String SAVEFILE
See Also:
Constant Field Values
Constructor Detail

UISaveAttachment

public UISaveAttachment()
Method Detail

processRender

public void processRender(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception
Overrides:
processRender in class org.exoplatform.webui.form.UIForm
Throws:
Exception

getFileName

public String getFileName()

setFileName

public void setFileName(String fileName)

getFilePath

public String getFilePath()

setFilePath

public void setFilePath(String filePath)

getUserSession

public javax.jcr.Session getUserSession(String workspace)
                                 throws Exception
Throws:
Exception

validate

public static void validate(String s)
                     throws org.exoplatform.services.jcr.datamodel.IllegalNameException
Throws:
org.exoplatform.services.jcr.datamodel.IllegalNameException

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.