|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.domains.ptera.lib.EventUtils
public class EventUtils
A set of static functions to be used by Ptera events.
| Red (tfeng) |
| Yellow (tfeng) |
| Constructor Summary | |
|---|---|
EventUtils()
|
|
| Method Summary | |
|---|---|
static void |
closeTableau(Tableau tableau)
Close the given tableau when the Java GUI thread is not busy. |
static Effigy |
findToplevelEffigy(NamedObj object)
Find the effigy associated with the top level of the object, and if not found but the top level has a ContainmentExtender attribute, use that attribute to find the containment extender of the top level and continue the search. |
static Tableau |
getTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
Get the tableau to be used by the event that requires a tableau in its actions. |
static TableauParameter |
getTableauParameter(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
Get the TableauParameter to be used by the event that requires a tableau in its actions. |
static void |
setTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau,
Tableau tableau)
Set the TableauParameter used by the event to represent the given tableau. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventUtils()
| Method Detail |
|---|
public static void closeTableau(Tableau tableau)
tableau - The tableau to be closed.
public static Effigy findToplevelEffigy(NamedObj object)
throws IllegalActionException
object - The object.
IllegalActionException - If attributes cannot be retrieved, or
the container that an attribute points to is invalid.
public static Tableau getTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
throws IllegalActionException
event - The event.referredTableau - The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau - The default TableauParameter to be used.
IllegalActionException - If the tableau cannot be retrieved.setTableau(Event, StringParameter, TableauParameter, Tableau)
public static TableauParameter getTableauParameter(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau)
throws IllegalActionException
event - The event.referredTableau - The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau - The default TableauParameter to be used.
IllegalActionException - If the TableauParameter cannot be
found.
public static void setTableau(Event event,
StringParameter referredTableau,
TableauParameter defaultTableau,
Tableau tableau)
throws IllegalActionException
event - The event.referredTableau - The parameter that contains the name of the
TableauParameter to be used, if not empty.defaultTableau - The default TableauParameter to be used.tableau - The tableau to be set in the TableauParameter.
IllegalActionException - If the TableauParameter cannot be
found.getTableau(Event, StringParameter, TableauParameter)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||