com.ptc.windchill.cadx.editattrs
Class EditAttributesFormTaskDelegate

java.lang.Object
  extended bywt.templateutil.processor.FormTaskDelegate
      extended bycom.ptc.windchill.cadx.editattrs.EditAttributesFormTaskDelegate
All Implemented Interfaces:
ContextHolder, Serializable

public class EditAttributesFormTaskDelegate
extends FormTaskDelegate
implements Serializable



Supported API: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static Comparator PERSISTABLE_COMPARATOR
           
private static String RESOURCE
           
protected static boolean VERBOSE
           
 
Fields inherited from class wt.templateutil.processor.FormTaskDelegate
 
Fields inherited from interface wt.templateutil.processor.ContextHolder
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS
 
Constructor Summary
EditAttributesFormTaskDelegate()
           
 
Method Summary
private  AbstractValueView createAttribute(AttributeDefDefaultView attrDef, String value)
           
private  Class getAttrValueClass(AttributeDefDefaultView attrDef)
           
private static Object getConvertedValue(String value, Class valueType)
           
static Double getDefaultUnitValue(AbstractValueView attributeValueView, Double displayValue)
           
private  Vector getSelectedObjects(String inputString)
           
 void processAction(ContentHTTPStream contentStream)
          Deprecated.  
private  void setRatioValues(AbstractValueView attributeValueView, Object numeratorValue, Object denominatorValue)
           
private  void setTimestampValues(AbstractValueView attributeValueView, Object timestampValue)
           
private  void setURLValues(AbstractValueView attributeValueView, Object linkValue, Object labelValue)
           
private  void setValue(AbstractValueView attributeValueView, Object newValue)
           
 
Methods inherited from class wt.templateutil.processor.FormTaskDelegate
addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, deleteFormDataFromSession, getContextAction, getContextClassName, getContextObj, getContextProperties, getFormData, getQueryData, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getState, getStatus, saveFormDataInSession, setContextAction, setContextClassName, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setState, setStatus, switchPages
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

VERBOSE

protected static boolean VERBOSE

PERSISTABLE_COMPARATOR

private static final Comparator PERSISTABLE_COMPARATOR
Constructor Detail

EditAttributesFormTaskDelegate

public EditAttributesFormTaskDelegate()
Method Detail

processAction

public void processAction(ContentHTTPStream contentStream)
                   throws Exception
Deprecated.  

Processed the desired action and then updates the state so that the desired response page can be generated.

Use the addToResponse methods to pass back messages on the status/results of the action.

Supported API: false

Specified by:
processAction in class FormTaskDelegate
Parameters:
contentStream -
Throws:
Exception

getSelectedObjects

private Vector getSelectedObjects(String inputString)
Returns:
Vector

getAttrValueClass

private Class getAttrValueClass(AttributeDefDefaultView attrDef)

createAttribute

private AbstractValueView createAttribute(AttributeDefDefaultView attrDef,
                                          String value)
                                   throws WTException,
                                          Exception
Throws:
WTException
Exception

getConvertedValue

private static Object getConvertedValue(String value,
                                        Class valueType)

setValue

private void setValue(AbstractValueView attributeValueView,
                      Object newValue)
               throws WTException
Throws:
WTException

setRatioValues

private void setRatioValues(AbstractValueView attributeValueView,
                            Object numeratorValue,
                            Object denominatorValue)
                     throws WTException
Throws:
WTException

setTimestampValues

private void setTimestampValues(AbstractValueView attributeValueView,
                                Object timestampValue)
                         throws WTException
Throws:
WTException

setURLValues

private void setURLValues(AbstractValueView attributeValueView,
                          Object linkValue,
                          Object labelValue)
                   throws WTException
Throws:
WTException

getDefaultUnitValue

public static Double getDefaultUnitValue(AbstractValueView attributeValueView,
                                         Double displayValue)
                                  throws IOException,
                                         UnitFormatException,
                                         IncompatibleUnitsException
Throws:
IOException
UnitFormatException
IncompatibleUnitsException