|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.GenericServlet atg.droplet.Tag atg.droplet.ComplexTag atg.droplet.EventSender atg.droplet.FormTag
public class FormTag
This class implements functionality of an HTML form tag. A FormTag has Java Bean properties for each HTML attribute. It stores its content as Strings, Servlets and other Tags.
Field Summary | |
---|---|
static java.lang.String |
BOGUS_DEFAULT_IS_STATIC_ON_IE
Is the default the same as the static value... |
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
DEFAULT_IS_NULL
Is the default null? |
static java.lang.String |
DEFAULT_IS_STATIC
Is the default the same as the static value |
static java.lang.String |
METHOD_GET
Values for the setMethod property |
static java.lang.String |
METHOD_POST
|
java.lang.String |
mFormId
A unique string name to use for identifying this form |
java.lang.String |
mSyncPath
If not null, the path name of a component to synchronize on before delivering form arguments |
static java.lang.String |
OUTPUT_IS_XML
Flat used by dsp jsp to set whether our output is XML. |
static java.lang.String |
SUBMIT_VALUE_IS_NULL
Is the submit value null? |
static java.lang.String |
TAG_NAME
|
Constructor Summary | |
---|---|
FormTag()
|
|
FormTag(java.lang.String pFormId,
DropletEventServlet pServlet)
|
|
FormTag(java.lang.String pFormId,
DropletEventServlet pServlet,
java.lang.String pSyncPath)
|
Method Summary | |
---|---|
void |
addActionURL(java.lang.String pActionURL)
Adds a new action/anchor to the list |
void |
addFormEventReceiver(FormEventReceiver pReceiver)
This method is called by the event receiver. |
FormEventReceiver |
addTag(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.String pName,
java.lang.String pPropertyPath,
java.lang.String pType,
java.lang.String pDefault,
int pPriority)
Adds a new tag to this form. |
FormEventReceiver |
addTag(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.String pName,
java.lang.String pPropertyPath,
java.lang.String pType,
java.lang.String pDefault,
int pPriority,
java.lang.String pSubmitValue,
boolean pUseWriter)
This version is to remain compatible with old compiled pages that needed to explictily tell us whether to use the Writer or OutputStream. |
FormEventReceiver |
addTag(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.String pName,
java.lang.String pPropertyPath,
java.lang.String pType,
java.lang.String pDefault,
int pPriority,
java.lang.String pSubmitValue,
TagConverter pConverter,
java.util.Properties pConverterArgs)
Adds a new tag to this form. |
FormEventReceiver |
addTag(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.String pName,
java.lang.String pPropertyPath,
java.lang.String pType,
java.lang.String pDefault,
int pPriority,
java.lang.String pSubmitValue,
TagConverter pConverter,
java.util.Properties pConverterArgs,
boolean pUsePostField)
Adds a new tag to this form. |
FormEventReceiver |
addTag(java.lang.String pName,
java.lang.String pPropertyPath,
java.lang.String pType,
java.lang.String pDefault,
int pPriority,
java.lang.String pSubmitValue,
TagConverter pConverter,
java.util.Properties pConverterArgs)
Adds a new tag to this form. |
java.lang.String |
getAction()
|
java.util.Set |
getActionURL()
Returns the actionsURL |
java.lang.String |
getEncType()
|
java.lang.String[] |
getFormEventProperties()
Return the names of the form event servers. |
FormEventReceiver |
getFormEventReceiver(java.lang.String pName)
Return the FormEventReceiver with the specified name. |
java.lang.String[] |
getFormEventSenderNames()
Return the names of the form event servers. |
java.lang.String |
getMethod()
|
boolean |
getRequiresSessionConfirmation()
Whether this form requires session confirmation. |
java.lang.String |
getSynchronized()
|
FormTag |
getTag(java.lang.String pName)
|
java.lang.String |
getTagName()
Returns the name of this tag or null if no name has been specified. |
boolean |
hasActionURL(java.lang.String pActionURL)
Returns true if the attribute with the specified name exists, false if not. |
boolean |
isXMLMimeType(DynamoHttpServletRequest pReq)
|
boolean |
needsEvents()
Returns true if the form has no stuff in it. |
int |
numActions()
Returns the number of actions |
void |
removeEventReceiver(EventReceiver pEventReceiver)
|
void |
service(DynamoHttpServletRequest pReq,
DynamoHttpServletResponse pRes)
Renders the tag and its content. |
void |
setAction(java.lang.String pAction)
|
void |
setEncType(java.lang.String pEncType)
|
void |
setMethod(java.lang.String pMethod)
|
void |
setNeedsEvents(boolean pNeedsEvents)
Makes this form handle events |
void |
setRequiresSessionConfirmation(boolean pRequiresSessionConfirmation)
Whether this form requires session confirmation. |
void |
setSynchronized(java.lang.String pSync)
Sets the path name of the component used to synchronize this form. |
protected void |
updateTagOrder(java.lang.String pNewName)
Called when we change the Droplet handler list. |
Methods inherited from class atg.droplet.EventSender |
---|
getImageRequestValue, getRequestValue |
Methods inherited from class atg.droplet.ComplexTag |
---|
addContent, addContent, addContent, getContent, serviceContent, setContent |
Methods inherited from class atg.droplet.Tag |
---|
getAttribute, getAttributes, service, serviceAttributes, setAttribute, setAttributes, setTagName |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String TAG_NAME
public static final java.lang.String METHOD_GET
public static final java.lang.String METHOD_POST
public static final java.lang.String DEFAULT_IS_STATIC
public static final java.lang.String BOGUS_DEFAULT_IS_STATIC_ON_IE
public static final java.lang.String DEFAULT_IS_NULL
public static final java.lang.String SUBMIT_VALUE_IS_NULL
public static final java.lang.String OUTPUT_IS_XML
public java.lang.String mFormId
public java.lang.String mSyncPath
Constructor Detail |
---|
public FormTag(java.lang.String pFormId, DropletEventServlet pServlet)
public FormTag(java.lang.String pFormId, DropletEventServlet pServlet, java.lang.String pSyncPath)
public FormTag()
Method Detail |
---|
public void addActionURL(java.lang.String pActionURL)
pActionURL
- the action to be addedpublic boolean hasActionURL(java.lang.String pActionURL)
public int numActions()
public java.util.Set getActionURL()
public void setAction(java.lang.String pAction)
public java.lang.String getAction()
public void setMethod(java.lang.String pMethod)
public java.lang.String getMethod()
public void setEncType(java.lang.String pEncType)
public java.lang.String getEncType()
public java.lang.String getTagName()
Tag
getTagName
in class Tag
public FormTag getTag(java.lang.String pName)
public FormEventReceiver getFormEventReceiver(java.lang.String pName)
pName
- the name of the FormEventReceiver to return
public boolean needsEvents()
public void setNeedsEvents(boolean pNeedsEvents)
public void setSynchronized(java.lang.String pSync)
public java.lang.String getSynchronized()
public void setRequiresSessionConfirmation(boolean pRequiresSessionConfirmation)
public boolean getRequiresSessionConfirmation()
public void addFormEventReceiver(FormEventReceiver pReceiver)
public void removeEventReceiver(EventReceiver pEventReceiver)
public FormEventReceiver addTag(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.String pName, java.lang.String pPropertyPath, java.lang.String pType, java.lang.String pDefault, int pPriority) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public FormEventReceiver addTag(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.String pName, java.lang.String pPropertyPath, java.lang.String pType, java.lang.String pDefault, int pPriority, java.lang.String pSubmitValue, boolean pUseWriter) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public FormEventReceiver addTag(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.String pName, java.lang.String pPropertyPath, java.lang.String pType, java.lang.String pDefault, int pPriority, java.lang.String pSubmitValue, TagConverter pConverter, java.util.Properties pConverterArgs) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public FormEventReceiver addTag(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.String pName, java.lang.String pPropertyPath, java.lang.String pType, java.lang.String pDefault, int pPriority, java.lang.String pSubmitValue, TagConverter pConverter, java.util.Properties pConverterArgs, boolean pUsePostField) throws java.io.IOException, javax.servlet.ServletException
java.io.IOException
javax.servlet.ServletException
public FormEventReceiver addTag(java.lang.String pName, java.lang.String pPropertyPath, java.lang.String pType, java.lang.String pDefault, int pPriority, java.lang.String pSubmitValue, TagConverter pConverter, java.util.Properties pConverterArgs) throws javax.servlet.ServletException
javax.servlet.ServletException
protected void updateTagOrder(java.lang.String pNewName)
public void service(DynamoHttpServletRequest pReq, DynamoHttpServletResponse pRes) throws javax.servlet.ServletException, java.io.IOException
service
in class ComplexTag
javax.servlet.ServletException
java.io.IOException
public boolean isXMLMimeType(DynamoHttpServletRequest pReq)
public java.lang.String[] getFormEventSenderNames()
public java.lang.String[] getFormEventProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |