essential-actions
Clone or download
Modified Files
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_11">
<output url="file://$MODULE_DIR$/target/classes" />
<output url="file://$MODULE_DIR$/target/classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<output-test url="file://$MODULE_DIR$/target/test-classes" />
<content url="file://$MODULE_DIR$">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<excludeFolder url="file://$MODULE_DIR$/target" />
<excludeFolder url="file://$MODULE_DIR$/target" />
</content>
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="Maven: com.stream_pi:util:1.0.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-fontawesome5-pack:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-javafx:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-controls:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-graphics:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: org.openjfx:javafx-base:linux:16-ea+6" level="project" />
<orderEntry type="library" name="Maven: com.stream_pi:action_api:1.0.0" level="project" />
<orderEntry type="library" name="Maven: com.stream-pi:action-api:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: com.stream-pi:util:1.0.0-SNAPSHOT" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-fontawesome5-pack:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-javafx:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-material-pack:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-material-pack:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-core:11.5.0" level="project" />
<orderEntry type="library" name="Maven: org.kordamp.ikonli:ikonli-core:11.5.0" level="project" />
</component>
</component>
</module>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>
<groupId>com.StreamPi</groupId>
<groupId>com.stream-pi</groupId>
<artifactId>DemoCustomNormalAction</artifactId>
<artifactId>DemoCustomNormalAction</artifactId>
<version>1.0.0</version>
<version>1.0.0</version>
<build>
<build>
<plugins>
<plugins>
<plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.1.0</version>
<version>3.1.0</version>
<executions>
<executions>
<execution>
<execution>
<id>test-jar</id>
<id>test-jar</id>
<phase>package</phase>
<phase>package</phase>
<goals>
<goals>
<goal>test-jar</goal>
<goal>test-jar</goal>
</goals>
</goals>
</execution>
</execution>
</executions>
</executions>
</plugin>
</plugin>
<plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<version>3.8.1</version>
<configuration>
<configuration>
<release>11</release>
<release>11</release>
</configuration>
</configuration>
</plugin>
</plugin>
</plugins>
</plugins>
</build>
</build>
<properties>
<properties>
<ActionAPIVersion>1.0.0</ActionAPIVersion>
<ActionAPIVersion>1.0.0-SNAPSHOT</ActionAPIVersion>
<UtilVersion>1.0.0</UtilVersion>
<JavaFXVersion>16-ea+6</JavaFXVersion>
<JavaFXVersion>16-ea+6</JavaFXVersion>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</properties>
<dependencies>
<dependencies>
<dependency>
<groupId>com.stream_pi</groupId>
<artifactId>util</artifactId>
<version>${UtilVersion}</version>
</dependency>
<dependency>
<dependency>
<groupId>org.openjfx</groupId>
<groupId>org.openjfx</groupId>
<artifactId>javafx-controls</artifactId>
<artifactId>javafx-controls</artifactId>
<version>${JavaFXVersion}</version>
<version>${JavaFXVersion}</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>org.openjfx</groupId>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<artifactId>javafx-graphics</artifactId>
<version>${JavaFXVersion}</version>
<version>${JavaFXVersion}</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>org.openjfx</groupId>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<artifactId>javafx-base</artifactId>
<version>${JavaFXVersion}</version>
<version>${JavaFXVersion}</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>com.stream_pi</groupId>
<groupId>com.stream-pi</groupId>
<artifactId>action_api</artifactId>
<artifactId>action-api</artifactId>
<version>${ActionAPIVersion}</version>
<version>${ActionAPIVersion}</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>org.kordamp.ikonli</groupId>
<groupId>org.kordamp.ikonli</groupId>
<artifactId>ikonli-material-pack</artifactId>
<artifactId>ikonli-material-pack</artifactId>
<version>11.5.0</version>
<version>11.5.0</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
package com.stream_pi.democustomnormalaction;
package com.stream_pi.democustomnormalaction;
import com.stream_pi.actionapi.actionproperty.property.ControlType;
import com.stream_pi.action_api.actionproperty.property.ControlType;
import com.stream_pi.actionapi.actionproperty.property.Property;
import com.stream_pi.action_api.actionproperty.property.Property;
import com.stream_pi.actionapi.actionproperty.property.Type;
import com.stream_pi.action_api.actionproperty.property.Type;
import com.stream_pi.actionapi.normalaction.NormalAction;
import com.stream_pi.action_api.normalaction.NormalAction;
import com.stream_pi.util.version.Version;
import com.stream_pi.util.version.Version;
import java.util.ArrayList;
import java.util.ArrayList;
public class DemoCustomNormalAction extends NormalAction
public class DemoCustomNormalAction extends NormalAction
{
{
public DemoCustomNormalAction()
public DemoCustomNormalAction()
{
{
setName("Demo Action");
setName("Demo Action");
setAuthor("dubbadhar");
setAuthor("dubbadhar");
setHelpLink("https://github.com/Stream-Pi/DemoCustomNormalAction");
setHelpLink("https://github.com/Stream-Pi/DemoCustomNormalAction");
setVersion(new Version(1,0,0));
setVersion(new Version(1,0,0));
setCategory("Custom Actions");
setCategory("Custom Actions");
}
}
@Override
@Override
public void initProperties() throws Exception {
public void initProperties() throws Exception {
//Called First
//Called First
Property privateProperty = new Property("InvisibleProperty", Type.STRING);
Property privateProperty = new Property("InvisibleProperty", Type.STRING);
privateProperty.setVisible(false);
privateProperty.setVisible(false);
Property sliderPropertyInt = new Property("SliderPropertyInt", Type.INTEGER);
Property sliderPropertyInt = new Property("SliderPropertyInt", Type.INTEGER);
sliderPropertyInt.setControlType(ControlType.SLIDER_INTEGER);
sliderPropertyInt.setControlType(ControlType.SLIDER_INTEGER);
sliderPropertyInt.setMaxIntValue(5);
sliderPropertyInt.setMaxIntValue(5);
Property sliderPropertyDouble= new Property("SliderPropertyDouble", Type.DOUBLE);
Property sliderPropertyDouble= new Property("SliderPropertyDouble", Type.DOUBLE);
sliderPropertyInt.setControlType(ControlType.SLIDER_DOUBLE);
sliderPropertyInt.setControlType(ControlType.SLIDER_DOUBLE);
Property comboBoxProperty = new Property("ComboBoxProperty", Type.LIST);
Property comboBoxProperty = new Property("ComboBoxProperty", Type.LIST);
ArrayList<String> arrayList = new ArrayList<>();
ArrayList<String> arrayList = new ArrayList<>();
arrayList.add("Choice 1");
arrayList.add("Choice 1");
arrayList.add("Choice 2");
arrayList.add("Choice 2");
comboBoxProperty.setListValue(arrayList);
comboBoxProperty.setListValue(arrayList);
Property property = new Property("ServerProperty2", Type.STRING);
Property property = new Property("ServerProperty2", Type.STRING);
property.setDisplayName("ServerProperty2 [Required]");
property.setDisplayName("ServerProperty2 [Required]");
property.setDefaultValueStr("test");
property.setDefaultValueStr("test");
property.setCanBeBlank(false);
property.setCanBeBlank(false);
Property property1 = new Property("ServerProperty1", Type.STRING);
Property property1 = new Property("ServerProperty1", Type.STRING);
property1.setDefaultValueStr("23");
property1.setDefaultValueStr("23");
Property booleanProperty = new Property("ServerBooleanProperty1", Type.BOOLEAN);
Property booleanProperty = new Property("ServerBooleanProperty1", Type.BOOLEAN);
booleanProperty.setDefaultValueBoolean(true);
booleanProperty.setDefaultValueBoolean(true);
addServerProperties(
addServerProperties(
property1,
property1,
property,
property,
booleanProperty,
booleanProperty,
privateProperty,
privateProperty,
comboBoxProperty,
comboBoxProperty,
sliderPropertyDouble,
sliderPropertyDouble,
sliderPropertyInt
sliderPropertyInt
);
);
Property clientProperty1 = new Property("ClientProperty1", Type.STRING);
Property clientProperty1 = new Property("ClientProperty1", Type.STRING);
clientProperty1.setDefaultValueStr("test");
clientProperty1.setDefaultValueStr("test");
clientProperty1.setCanBeBlank(false);
clientProperty1.setCanBeBlank(false);
Property clientProperty2 = new Property("ClientProperty2", Type.STRING);
Property clientProperty2 = new Property("ClientProperty2", Type.STRING);
clientProperty2.setDefaultValueStr("Default Prop");
clientProperty2.setDefaultValueStr("Default Prop");
addClientProperties(
addClientProperties(
clientProperty1,
clientProperty1,
clientProperty2,
clientProperty2,
new Property("ClientBooleanProperty1", Type.BOOLEAN),
new Property("ClientBooleanProperty1", Type.BOOLEAN),
privateProperty,
privateProperty,
comboBoxProperty,
comboBoxProperty,
sliderPropertyDouble,
sliderPropertyDouble,
sliderPropertyInt
sliderPropertyInt
);
);
}
}
@Override
@Override
public void initAction() {
public void initAction() {
// This is called after initProperties()
// This is called after initProperties()
}
}
@Override
@Override
public void onActionClicked()
public void onActionClicked()
{
{
//Called when action is clicked
//Called when action is clicked
System.out.println("Action Called!");
System.out.println("Action Called!");
}
}
@Override
@Override
public void onShutDown() throws Exception {
public void onShutDown() throws Exception {
// TODO Auto-generated method stub
// TODO Auto-generated method stub
}
}
}
}
module com.stream_pi.democustomnormalaction{
module com.stream_pi.democustomnormalaction{
requires com.stream_pi.actionapi;
requires com.stream_pi.action_api;
requires com.stream_pi.util;
requires org.kordamp.ikonli.javafx;
requires org.kordamp.ikonli.javafx;
provides com.stream_pi.action_api.normalaction.NormalAction with com.stream_pi.democustomnormalaction.DemoCustomNormalAction;
provides com.stream_pi.actionapi.normalaction.NormalAction with com.stream_pi.democustomnormalaction.DemoCustomNormalAction;
}
}
PK
PK