com.sapportals.htmlb

Class FileUpload

java.lang.Object
  extended bycom.sapportals.htmlb.Component
      extended bycom.sapportals.htmlb.FileUpload

public class FileUpload
extends Component

Copyright 2004 SAP AG


Field Summary
static String UI_ID
           
 
Constructor Summary
FileUpload(String name)
           
 
Method Summary
 String getAccept()
           
 IFileParam getFile()
           
 int getMaxLength()
           
 int getSize()
           
 ForcedTextDirection getTextDirection()
          Gets the text direction for the component
 String getTooltip()
           
 String getUI()
          get a identification String for the renderer that is unique across all supported components.
protected  void initFromPageContext(IPageContext pc, String baseId)
          internal use only.
 void setAccept(String accept)
           
 void setFile(IFileParam file)
           
 void setMaxLength(int maxlength)
           
 void setSize(int size)
           
 void setTextDirection(ForcedTextDirection textDirection)
          Sets the text direction for the component
 void setTooltip(String tooltip)
           
 
Methods inherited from class com.sapportals.htmlb.Component
getEncodedIdForForm, getId, getParent, initFromShortId, initializeFromId, isJsObjectNeeded, preRender, render, renderAsString, requiresForm, setId, setJsObjectNeeded, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UI_ID

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

FileUpload

public FileUpload(String name)
Method Detail

getUI

public String getUI()
Description copied from class: Component
get a identification String for the renderer that is unique across all supported components. E.g. you could simply return the class name of the component class. The reason for using a separate method and not some internal reflection method is that you can more easily extend the functionality or your Component class without having to rewrite the view class.

Specified by:
getUI in class Component
Returns:
a unique identification string for this Component

getSize

public int getSize()

setSize

public void setSize(int size)

getMaxLength

public int getMaxLength()

setMaxLength

public void setMaxLength(int maxlength)

getAccept

public String getAccept()

setAccept

public void setAccept(String accept)

setFile

public void setFile(IFileParam file)

getFile

public IFileParam getFile()

initFromPageContext

protected void initFromPageContext(IPageContext pc,
                                   String baseId)
Description copied from class: Component
internal use only. Components should override this method to analyse the parameters from the request object (via IPageContext) and set their internal data structures accordingly.

Overrides:
initFromPageContext in class Component
Parameters:
pc - the context, including the parameters
baseId - the prefix used for the component. (The result of a former RenderUtil.getIdForForm(rc, c);)

setTooltip

public void setTooltip(String tooltip)

getTooltip

public String getTooltip()

getTextDirection

public ForcedTextDirection getTextDirection()
Gets the text direction for the component

Returns:
com.sapportals.htmlb.enum.ForcedTextDirection

setTextDirection

public void setTextDirection(ForcedTextDirection textDirection)
Sets the text direction for the component

Parameters:
textDirection - com.sapportals.htmlb.enum.ForcedTextDirection


Copyright 2006 SAP AG Complete Copyright Notice