|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
wt.templateutil.table.HTMLTableServiceEvent
This class represents the event fired off when a call from Windchill script of the form
tableService action=...
is performed.
The information from the Windchill script call, namely the parameter, the locale, and the OutputStream, are passed into this event along with an instance of a TemplateProcessorTableService as the source object.
The TemplateProcessorTableService encapsulates additional information that can be used by the implementors of the HTMLTableServiceEventListener interface. Some of the additional information that is maintained by the TemplateProcessorTableService instance is
To get the instance of the TemplateProcessorTableService used, call the getSource method.
Field Summary | |
private String |
action
|
private Locale |
locale
|
private OutputStream |
outputStream
|
private Properties |
parameters
|
private HTTPState |
state
|
Fields inherited from class java.util.EventObject |
source |
Constructor Summary | |
HTMLTableServiceEvent(Object source)
Constructor required by inheritence. |
Method Summary | |
String |
getAction()
Gets the action that is defined in the Windchill script call for the tableService. |
Locale |
getLocale()
Gets the locale to be used in the HTML Table Service for a given Windchill script call. |
OutputStream |
getOutputStream()
|
Properties |
getParameters()
Gets the Properties to be used in the HTML Table Service for a given Windchill script call. |
HTTPState |
getState()
|
void |
refresh()
Refreshes the HTMLTableServiceEvent instance after each Windchill script call. |
void |
setAction(String newAction)
Sets the action that is defined in the Windchill script call for the tableService. |
void |
setEvent(String action,
Locale locale,
OutputStream os,
Properties props)
Sets the state of the event for each Windchill script call. |
void |
setLocale(Locale newlocale)
Sets the locale to be used in the HTML Table Service for a given Windchill script call. |
void |
setOutputStream(OutputStream newOutputStream)
|
void |
setParameters(Properties newParameters)
Sets the Properties to be used in the HTML Table Service for a given Windchill script call. |
void |
setState(HTTPState state)
|
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private String action
private Locale locale
private OutputStream outputStream
private Properties parameters
private HTTPState state
Constructor Detail |
public HTMLTableServiceEvent(Object source)
source
- - TemplateProcessorTableService instanceMethod Detail |
public void refresh()
The following items are "refreshed"
public void setEvent(String action, Locale locale, OutputStream os, Properties props)
action
- locale
- os
- props
- public void setAction(String newAction)
newAction
- public String getAction()
public void setLocale(Locale newlocale)
newlocale
- public Locale getLocale()
public void setOutputStream(OutputStream newOutputStream)
public OutputStream getOutputStream()
public void setParameters(Properties newParameters)
newParameters
- public Properties getParameters()
public void setState(HTTPState state)
public HTTPState getState()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |