|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
wt.templateutil.processor.GenerateFormProcessor
wt.part.PartLocalSearchProcessor
Processor used for the PartLocalSearch html template
and for various customized search results templates.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private Hashtable |
criteria
|
static String |
CRITERIA_PREFIX
|
static long |
EXTERNALIZATION_VERSION_UID
|
private String[] |
hiddenFields
|
protected int |
nResults
|
protected static long |
OLD_FORMAT_VERSION_UID
|
private String[] |
otherFields
|
private String[] |
passThruFieldPrefixes
|
private static String |
query
|
private static String |
RESOURCE
|
protected SortedEnumeration |
results
|
(package private) static long |
serialVersionUID
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.templateutil.processor.GenerateFormProcessor |
DEFAULT_LIFECYCLE, ON_CHANGE_EVENT_NAME, TEAMTEMPLATE_INPUT_NAME |
Fields inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
ACTION, CLASS, CODEBASE, LINE_FEED_DELIMITER, MESSAGE_SEPARATOR, OID |
Fields inherited from interface wt.templateutil.processor.ContextTranslator |
CONTEXT_LIST_IN, CONTEXT_LIST_OUT |
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 | |
PartLocalSearchProcessor()
|
Method Summary | |
private void |
displayAttrLabelPDMLink(String attrib,
PropertyDescriptor pd,
Locale locale,
Class class_name,
PrintWriter out)
Generates the label for one search attribute |
private void |
displayAttrLabelWC(String attrib,
PropertyDescriptor pd,
Locale locale,
Class class_name,
PrintWriter out)
Generates the label for one search attribute |
void |
doObjectSearch(Properties parameters,
Locale locale,
OutputStream os)
doObjectSearch method Performs a local search for WTParts meeting user's criteria |
void |
generateModifyCriteriaButton(Properties parameters,
Locale locale,
OutputStream os)
Generates the Modify Search Criteria button for the Alternates Local Search Results html form |
void |
generatePartSearchForm(Properties parameters,
Locale locale,
OutputStream os)
Builds and launches the Part Local Search html form |
void |
generateResultsFormTag(Properties parameters,
Locale locale,
OutputStream os)
Generates the form tag for the Local Search Results html form |
void |
generateResultsSummary(Properties parameters,
Locale locale,
OutputStream os)
Displays the search results summary line: "Your search ... |
void |
generateSearchFormTag(Properties parameters,
Locale locale,
OutputStream os)
Generates the form tag for the Part Local Search html form |
protected String[] |
getHiddenFields()
|
Vector |
getLegalValueList(String method_name)
Generates a Vector of legal value strings to be used in the drop down list. |
protected String[] |
getOtherFields()
|
protected String[] |
getPassThruFieldPrefixes()
|
Vector |
getValueList(PropertyDescriptor pd,
Locale locale)
Tries to generate a Vector of legal value strings to be used in the drop down list. |
protected boolean |
hiddenField(String name)
|
protected boolean |
notOtherFields(String name)
|
protected boolean |
passThruData(String name)
|
private boolean |
queryValidate(String a_Query,
Vector OK_class_list)
|
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
private boolean |
readOldVersion(ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source, which is not the current version. |
protected boolean |
readVersion(PartLocalSearchProcessor thisObject,
ObjectInput input,
long readSerialVersionUID,
boolean passThrough,
boolean superDone)
Reads the non-transient fields of this class from an external source. |
void |
showObjectSearch(Properties parameters,
Locale locale,
OutputStream os)
Displays the search results in tabular form and writes out any form data passed to this form into hidden fields on this form |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
static final long serialVersionUID
public static final long EXTERNALIZATION_VERSION_UID
protected static final long OLD_FORMAT_VERSION_UID
protected SortedEnumeration results
protected int nResults
private String[] hiddenFields
private String[] otherFields
private String[] passThruFieldPrefixes
private Hashtable criteria
private static String query
public static final String CRITERIA_PREFIX
private static boolean VERBOSE
Constructor Detail |
public PartLocalSearchProcessor()
Method Detail |
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
writeExternal
in class GenerateFormProcessor
output
-
IOException
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
readExternal
in class GenerateFormProcessor
input
-
IOException
ClassNotFoundException
protected boolean readVersion(PartLocalSearchProcessor thisObject, ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
thisObject
- input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
private boolean readOldVersion(ObjectInput input, long readSerialVersionUID, boolean passThrough, boolean superDone) throws IOException, ClassNotFoundException
input
- readSerialVersionUID
- passThrough
- superDone
-
IOException
ClassNotFoundException
public void generateSearchFormTag(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void generatePartSearchForm(Properties parameters, Locale locale, OutputStream os) throws WTIntrospectionException, WTException, WTPropertyVetoException
WTIntrospectionException
WTException
WTPropertyVetoException
private void displayAttrLabelWC(String attrib, PropertyDescriptor pd, Locale locale, Class class_name, PrintWriter out)
private void displayAttrLabelPDMLink(String attrib, PropertyDescriptor pd, Locale locale, Class class_name, PrintWriter out)
public void generateResultsFormTag(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void doObjectSearch(Properties parameters, Locale locale, OutputStream os) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public void generateResultsSummary(Properties parameters, Locale locale, OutputStream os) throws WTIntrospectionException
WTIntrospectionException
public void generateModifyCriteriaButton(Properties parameters, Locale locale, OutputStream os) throws WTException
WTException
public void showObjectSearch(Properties parameters, Locale locale, OutputStream os) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public Vector getValueList(PropertyDescriptor pd, Locale locale)
public Vector getLegalValueList(String method_name) throws WTException
WTException
protected String[] getOtherFields()
protected boolean notOtherFields(String name)
protected String[] getHiddenFields()
protected boolean hiddenField(String name)
protected String[] getPassThruFieldPrefixes()
protected boolean passThruData(String name)
private boolean queryValidate(String a_Query, Vector OK_class_list) throws WTPropertyVetoException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |