- All Superinterfaces:
Accessory
,Accessory
,Accessory
,Member
,ReadOnlyInterface
,Trigger
,Trigger
,WritableInterface
- All Known Subinterfaces:
CheckButton
,DoublePlayer
,DoubleSlider
,DoubleSpinBox
,DoubleTrigger
,IntegerTrigger
,Player
,PushButton
,Slider
,SpinBox
,TriggerArray<T>
public interface Trigger extends Accessory, Trigger
-
Method Summary
Modifier and Type Method Description Method
getConnectedMethod()
Returns the method which is called by this trigger.List<? extends TriggerItem>
getDiagramItems()
List<? extends TriggerItem>
getDiagramItems(Diagram diagram)
void
invoke(Object... parameters)
Allows to initiate a trigger without user interaction.void
setEnabled(boolean enabled)
Trigger
toReadOnly()
Methods inherited from interface omix.plugin.model.writable.accessory.Accessory
getField, owner, setLabel, setTooltip, setVisible
Methods inherited from interface omix.lang.reflect.Member
getAnnotation, getAnnotations, getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotations, getDeclaredAnnotationsByType, getName, getNamespace, isAnnotationPresent
-
Method Details
-
setEnabled
- Throws:
IllegalChangeException
-
getDiagramItems
List<? extends TriggerItem> getDiagramItems()- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceTrigger
-
getDiagramItems
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceAccessory
- Specified by:
getDiagramItems
in interfaceTrigger
- Throws:
IllegalComponentException
-
getConnectedMethod
Returns the method which is called by this trigger.- Returns:
- method connected to the trigger
- Throws:
IllegalAccessException
NoSuchMethodException
-
invoke
void invoke(Object... parameters) throws IllegalAccessException, NoSuchMethodException, InvocationTargetExceptionAllows to initiate a trigger without user interaction.- Parameters:
parameters
- matching to the type of trigger- Throws:
IllegalAccessException
NoSuchMethodException
InvocationTargetException
-
toReadOnly
Trigger toReadOnly()- Specified by:
toReadOnly
in interfaceAccessory
- Specified by:
toReadOnly
in interfaceWritableInterface
-