BlogUtil/values.java

53 lines
2.7 KiB
Java

package evanniederwerfer.blogapp.blogappv2;
import java.io.File;
import java.nio.file.Path;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
public interface values {
AtomicReference<String> AUTHOR = new AtomicReference<>(""); // The author for the post in blogPosts.php
AtomicReference<String> TITLE = new AtomicReference<>(""); // The post title in blogPosts.php
AtomicReference<String> POST_CONTENT = new AtomicReference<>(""); // The post content for blogPosts.php
AtomicInteger RT = new AtomicInteger(); // Read time (approx time it takes to read article) for blogPosts.php
// Files
AtomicReference<Path> file = new AtomicReference<>(); // Select the blog txt file
AtomicReference<Path> publishFile = new AtomicReference<>(); // The .HTML file to be published to the site
AtomicReference<Path> imageFile = new AtomicReference<>(); // The image to be displayed on published div
File tempFile = new File("tempFile.php"); // Temp .PHP file downloaded to update blogPosts.php
// HTML Strings
AtomicReference<String> Tag1Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag2Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag3Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag4Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag5Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag6Var = new AtomicReference<>(""); // Remains empty if user doesn't select
AtomicReference<String> Tag7Var = new AtomicReference<>(""); // Remains empty if user doesn't select
String Tag1String = "<a class=\"i1\">How-To</a>"; // The first blog post tag
String Tag2String = "<a class=\"i2\">Politics</a>"; // The second blog post tag
String Tag3String = "<a class=\"i3\">Tech</a>"; // The third blog post tag
String Tag4String = "<a class=\"i4\">Ethics</a>"; // The fourth blog post tag
String Tag5String = "<a class=\"i5\">VPA/SEG</a>"; // The fourth blog post tag
String Tag6String = "<a class=\"i6\">Personal</a>"; // The fourth blog post tag
String Tag7String = "<a class=\"i7\">Other</a>"; // The fourth blog post tag
// FTP Credentials
String host = "";
String user = "";
String password = "";
int port = 21;
// JavaFX Node Text
String headingLabel = "Create Blog"; // First heading label
String fileLabelTxt = "Blog File:"; // The blog file label text located by "Select File" button
String selectFileBtn = "Select File"; // The button to select a txt file with syntax to create blog
}