Class DefaultScriptArchUtils
- java.lang.Object
-
- net.sf.gridarta.gui.scripts.AbstractScriptArchUtils
-
- net.sf.gridarta.var.crossfire.gui.scripts.DefaultScriptArchUtils
-
- All Implemented Interfaces:
ScriptArchUtils
public class DefaultScriptArchUtils extends AbstractScriptArchUtils
-
-
Constructor Summary
Constructors Constructor Description DefaultScriptArchUtils(@NotNull java.lang.Iterable<Pair<java.lang.Integer,java.lang.String>> eventTypes, @NotNull java.lang.String subtypeAttribute, int eventTypeNo)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetArchetypeNameForEventType(int eventType)Returns the archetype for an event type.-
Methods inherited from class net.sf.gridarta.gui.scripts.AbstractScriptArchUtils
addEventsToJList, getEventNames, getEventType, indexToEventType, typeName
-
-
-
-
Constructor Detail
-
DefaultScriptArchUtils
public DefaultScriptArchUtils(@NotNull @NotNull java.lang.Iterable<Pair<java.lang.Integer,java.lang.String>> eventTypes, @NotNull @NotNull java.lang.String subtypeAttribute, int eventTypeNo)Creates a new instance.- Parameters:
eventTypes- the event typessubtypeAttribute- the attribute name for the subtype fieldeventTypeNo- the object type for event objects
-
-
Method Detail
-
getArchetypeNameForEventType
@NotNull public @NotNull java.lang.String getArchetypeNameForEventType(int eventType) throws UndefinedEventArchetypeTypeExceptionDescription copied from interface:ScriptArchUtilsReturns the archetype for an event type.- Parameters:
eventType- the event type- Returns:
- the archetype name
- Throws:
UndefinedEventArchetypeTypeException- if the event type is undefined
-
-