Returns a list of all objects, which are placed on the placeholder with the name placeholderName in this mechatronic component.
getPlaceholderObjects(String placeholderName) | |||
---|---|---|---|
Argument | String | placeholderName | The name of the placeholder of the component. |
Return value | List | List of mechatronic objects | |
Exceptions | Throws a PlaceholderNotExistingException, if no placeholder with the specified name exists. |
import org.foederal.util.ui.messages.UserMessageCollector;
import com.mind8.mechatronic.skill.api.PlaceholderNotExistingException;
try
{
objects = component.getPlaceholderObjects("Einfügeplatz");
}
catch (PlaceholderNotExistingException ex)
{
UserMessageCollector.addError(LIBRARY,self,null,"Skript",
"Fehler im Skript: Ein Einfügeplatz namens 'Einfügeplatz' existiert nicht!");
return;
}
Result:
[<<St01Einsetzen>>,<<St02Umsetzen>>,<<St03Ausschleusen>>]