Package net.sf.gridarta.utils
Class AppPreferencesModel
- java.lang.Object
-
- net.sf.gridarta.utils.AppPreferencesModel
-
public class AppPreferencesModel extends java.lang.ObjectMaintains the application preferences state.
-
-
Constructor Summary
Constructors Constructor Description AppPreferencesModel(@NotNull java.lang.String serverDefault, @NotNull java.lang.String clientDefault, @NotNull java.lang.String editorDefault)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.StringgetClient()Returns the client setting.@NotNull java.lang.StringgetClientDefault()Returns the client setting's default value.@NotNull java.lang.StringgetEditor()Returns the editor setting.@NotNull java.lang.StringgetEditorDefault()Returns the editor setting's default value.@NotNull java.lang.StringgetServer()Returns the server setting.@NotNull java.lang.StringgetServerDefault()Returns the server setting's default value.static voidsetClient(@NotNull java.lang.CharSequence client)Sets the client setting.static voidsetEditor(@NotNull java.lang.CharSequence editor)Sets the editor setting.static voidsetServer(@NotNull java.lang.CharSequence server)Sets the server setting.static @NotNull java.util.List<java.lang.String>splitCommand(@NotNull java.lang.String command)Splits a command string into an array.
-
-
-
Constructor Detail
-
AppPreferencesModel
public AppPreferencesModel(@NotNull @NotNull java.lang.String serverDefault, @NotNull @NotNull java.lang.String clientDefault, @NotNull @NotNull java.lang.String editorDefault)Creates a new instance.- Parameters:
serverDefault- the default value for the server settingclientDefault- the default value for the client settingeditorDefault- the default value for the editor setting
-
-
Method Detail
-
setServer
public static void setServer(@NotNull @NotNull java.lang.CharSequence server)Sets the server setting.- Parameters:
server- the server setting
-
setClient
public static void setClient(@NotNull @NotNull java.lang.CharSequence client)Sets the client setting.- Parameters:
client- the client setting
-
setEditor
public static void setEditor(@NotNull @NotNull java.lang.CharSequence editor)Sets the editor setting.- Parameters:
editor- the editor setting
-
getServer
@NotNull public @NotNull java.lang.String getServer()
Returns the server setting.- Returns:
- the server setting
-
getClient
@NotNull public @NotNull java.lang.String getClient()
Returns the client setting.- Returns:
- the client setting
-
getEditor
@NotNull public @NotNull java.lang.String getEditor()
Returns the editor setting.- Returns:
- the editor setting
-
splitCommand
@NotNull public static @NotNull java.util.List<java.lang.String> splitCommand(@NotNull @NotNull java.lang.String command)Splits a command string into an array.- Parameters:
command- the command to split- Returns:
- the split command string
-
getServerDefault
@NotNull public @NotNull java.lang.String getServerDefault()
Returns the server setting's default value.- Returns:
- the server setting's default value
-
getClientDefault
@NotNull public @NotNull java.lang.String getClientDefault()
Returns the client setting's default value.- Returns:
- the client setting's default value
-
getEditorDefault
@NotNull public @NotNull java.lang.String getEditorDefault()
Returns the editor setting's default value.- Returns:
- the editor setting's default value
-
-