public class TabCreateServerPack
extends javax.swing.JPanel
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
TabCreateServerPack(I18n injectedI18n,
ConfigurationHandler injectedConfigurationHandler,
ServerPackHandler injectedServerPackHandler,
VersionMeta injectedVersionMeta,
ApplicationProperties injectedApplicationProperties,
ServerPackCreatorWindow injectedServerPackCreatorFrame,
Utilities injectedUtilities,
DarkTheme injectedDarkTheme,
LightTheme injectedLightTheme,
ApplicationAddons injectedApplicationAddons)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
checkMinecraftServer()
Check whether the selected Minecraft version has a server available.
|
protected void |
clearInterface()
Load default values for textfields so the user can start with a new configuration.
|
void |
clearScriptVariables()
Clear any available data in the script variables table.
|
ConfigurationModel |
currentConfigAsModel()
Acquire the current settings in the GUI as a
ConfigurationModel. |
java.lang.String |
getClientsideMods()
Get the list of clientside-only mods to exclude from the server pack.
|
java.util.List<java.lang.String> |
getClientsideModsList()
Get the list of clientside-only mods to exclude from the server pack.
|
java.lang.String |
getCopyDirectories()
Get the list of files and directories to include in the server pack.
|
java.util.List<java.lang.String> |
getCopyDirectoriesList()
Get the list of files and directories to include in the server pack.
|
java.lang.String |
getJavaArgs()
Getter for the currently set JVM flags / Java args.
|
java.lang.String |
getMinecraftVersion()
Get the Minecraft version currently selected in the GUI.
|
java.lang.String |
getModloader()
Get the modloader selected in the GUI.
|
java.lang.String |
getModloaderVersion()
Get the modloader version selected in the GUI.
|
java.lang.String |
getModpackDirectory()
Get the modpack directory.
|
java.util.HashMap<java.lang.String,java.lang.String> |
getScriptSettings()
Get a hashmap of the data available in the script variables table.
|
java.lang.String |
getServerIconPath()
Getter for the text in the custom server-icon textfield.
|
java.lang.String |
getServerpackSuffix()
Get the server pack suffix text.
|
java.lang.String |
getServerPropertiesPath()
Getter for the text in the custom server.properties textfield
|
de.griefed.larsonscanner.LarsonScanner.ScannerConfig |
getStatusBarSettings()
Get the currently loaded configuration of the status bar.
|
java.awt.Color |
getThemeErrorColor()
Get the current themes error-text colour.
|
java.awt.Color |
getThemeTextColor()
The current themes default text colour.
|
boolean |
isServerIconInclusionTicked()
Is the inclusion of a server-icon.png desired?
|
boolean |
isServerInstallationTicked()
Is the modloader server installation desired?
|
boolean |
isServerPropertiesInclusionTicked()
Is the inclusion of a server.properties-file desired?
|
boolean |
isZipCreationTicked()
Is the creation of a server pack ZIP-archive desired?
|
protected void |
openServerPacksFolder(java.awt.event.ActionEvent actionEvent)
Upon button-press, open the folder containing generated server packs in the users
file-explorer.
|
java.lang.String |
reticulate()
Get a random reticulation from
ReticulatingSplines. |
void |
setAikarsFlags()
Sets the text of the Java args textarea to the popular Aikar flags.
|
void |
setClientsideMods(java.util.List<java.lang.String> mods)
Set the list of clientside-only mods to exclude from the server pack.
|
void |
setCopyDirectories(java.util.List<java.lang.String> directoriesAndFiles)
Set the list of files and directories to include in the server pack.
|
void |
setJavaArgs(java.lang.String javaArgs)
Setter for the JVM flags / Java args.
|
void |
setMinecraftVersion(java.lang.String minecraftVersion)
Set the Minecraft version selected in the GUI.
|
void |
setModloader(java.lang.String modloader)
Set the modloader selected in the GUI.
|
void |
setModloaderVersion(java.lang.String version)
Set the modloader version selected in the GUI.
|
void |
setModpackDirectory(java.lang.String directory)
Set the modpack directory.
|
void |
setScriptVariables(java.util.HashMap<java.lang.String,java.lang.String> data)
Load the hashmap into the script variables table.
|
void |
setServerIconPath(java.lang.String path)
Getter for the text in the custom server-icon textfield.
|
void |
setServerIconSelection(boolean selected)
Change the selection of the server icon checkbox.
|
void |
setServerInstallationSelection(boolean selected)
Change the selection of the server installation checkbox.
|
void |
setServerpackSuffix(java.lang.String suffix)
Set the server pack suffix text.
|
void |
setServerPropertiesPath(java.lang.String path)
Getter for the text in the custom server.properties textfield
|
void |
setServerPropertiesSelection(boolean selected)
Change the selection of the server properties checkbox.
|
void |
setServerZipArchiveSelection(boolean selected)
Change the selection of the server ZIP-archive checkbox.
|
void |
setStatusBarSettings(de.griefed.larsonscanner.LarsonScanner.ScannerConfig config)
set the configuration for the status bar in the GUI.
|
protected void |
updatePanelTheme()
Update the status labels with the current themes font-color and alpha.
|
void |
validateInputFields()
Validate all text-based input fields.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic TabCreateServerPack(I18n injectedI18n, ConfigurationHandler injectedConfigurationHandler, ServerPackHandler injectedServerPackHandler, VersionMeta injectedVersionMeta, ApplicationProperties injectedApplicationProperties, ServerPackCreatorWindow injectedServerPackCreatorFrame, Utilities injectedUtilities, DarkTheme injectedDarkTheme, LightTheme injectedLightTheme, ApplicationAddons injectedApplicationAddons) throws java.io.IOException
Used for Dependency Injection.
Receives an instance of I18n or creates one if the received one is null. Required
for use of localization.
Receives an instance of ConfigurationHandler required to successfully and correctly
create the server pack.
Receives an instance of ServerPackHandler which is required to generate a server
pack.
injectedI18n - Instance of I18n.injectedConfigurationHandler - Instance of ConfigurationHandler.injectedServerPackHandler - Instance of ServerPackHandler.injectedVersionMeta - Instance of VersionMeta.injectedApplicationProperties - Instance of Properties.injectedServerPackCreatorFrame - Our parent frame which contains all of
ServerPackCreator.injectedUtilities - Instance of Utilities.injectedDarkTheme - Instance of DarkTheme.injectedLightTheme - Instance of LightTheme.injectedApplicationAddons - Instance of ApplicationAddons.java.io.IOException - if the VersionMeta could not be instantiated.protected void updatePanelTheme()
protected void openServerPacksFolder(java.awt.event.ActionEvent actionEvent)
actionEvent - The event which triggers this method.public void validateInputFields()
public void setAikarsFlags()
public void checkMinecraftServer()
public ConfigurationModel currentConfigAsModel()
ConfigurationModel.public java.util.List<java.lang.String> getClientsideModsList()
public java.util.List<java.lang.String> getCopyDirectoriesList()
public java.lang.String getModpackDirectory()
public java.lang.String getMinecraftVersion()
public void setMinecraftVersion(java.lang.String minecraftVersion)
minecraftVersion - The Minecraft version to select.public java.lang.String getModloader()
public void setModloader(java.lang.String modloader)
modloader - The modloader to select.public java.lang.String getModloaderVersion()
public java.lang.String getJavaArgs()
public void setJavaArgs(java.lang.String javaArgs)
javaArgs - The javaargs to set.public java.lang.String getServerpackSuffix()
public java.lang.String getServerIconPath()
public void setServerIconPath(java.lang.String path)
path - The path to the server icon file.public java.lang.String getServerPropertiesPath()
public void setServerPropertiesPath(java.lang.String path)
path - The path to the server properties file.public boolean isServerInstallationTicked()
true if it is.public boolean isServerIconInclusionTicked()
true if it is.public boolean isServerPropertiesInclusionTicked()
true if it is.public boolean isZipCreationTicked()
true if it is.public java.util.HashMap<java.lang.String,java.lang.String> getScriptSettings()
public java.lang.String getClientsideMods()
public void setClientsideMods(java.util.List<java.lang.String> mods)
mods - the list of clientside-only mods.public java.lang.String getCopyDirectories()
public void setCopyDirectories(java.util.List<java.lang.String> directoriesAndFiles)
directoriesAndFiles - The list of files and directories to include in the server pack.public void setServerpackSuffix(java.lang.String suffix)
suffix - The suffix to append to the server pack folder and ZIP-archive.public void setModloaderVersion(java.lang.String version)
version - The modloader version to select.public void setModpackDirectory(java.lang.String directory)
directory - The directory which holds the modpack.protected void clearInterface()
public void setServerInstallationSelection(boolean selected)
selected - Whether the checkbox should be ticked.public void setServerIconSelection(boolean selected)
selected - Whether the checkbox should be ticked.public void setServerPropertiesSelection(boolean selected)
selected - Whether the checkbox should be ticked.public void setServerZipArchiveSelection(boolean selected)
selected - Whether the checkbox should be ticked.public void clearScriptVariables()
public java.awt.Color getThemeErrorColor()
public java.awt.Color getThemeTextColor()
public de.griefed.larsonscanner.LarsonScanner.ScannerConfig getStatusBarSettings()
public void setStatusBarSettings(de.griefed.larsonscanner.LarsonScanner.ScannerConfig config)
config - The configuration to load into the status bar.public void setScriptVariables(java.util.HashMap<java.lang.String,java.lang.String> data)
data - The new map of placeholder-value pairs to set the table to.public java.lang.String reticulate()
ReticulatingSplines.