improving some methods
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>de.srsoftware</groupId>
|
<groupId>de.srsoftware</groupId>
|
||||||
<artifactId>web4rail</artifactId>
|
<artifactId>web4rail</artifactId>
|
||||||
<version>1.5.17</version>
|
<version>1.5.18</version>
|
||||||
<name>Web4Rail</name>
|
<name>Web4Rail</name>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<description>Java Model Railway Control</description>
|
<description>Java Model Railway Control</description>
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ public abstract class BaseClass implements Constants{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public class FormInput extends ArrayList<Map.Entry<String, Tag>>{
|
public static class FormInput extends ArrayList<Map.Entry<String, Tag>>{
|
||||||
|
|
||||||
private static final long serialVersionUID = -2371203388908395216L;
|
private static final long serialVersionUID = -2371203388908395216L;
|
||||||
|
|
||||||
@@ -352,7 +352,7 @@ public abstract class BaseClass implements Constants{
|
|||||||
return l+NBSP+unit;
|
return l+NBSP+unit;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Form form(String id,List<Map.Entry<String, Tag>> elements) {
|
public static Form form(String id,List<Map.Entry<String, Tag>> elements) {
|
||||||
Form form = new Form(id);
|
Form form = new Form(id);
|
||||||
|
|
||||||
Table table = new Table();
|
Table table = new Table();
|
||||||
@@ -383,8 +383,11 @@ public abstract class BaseClass implements Constants{
|
|||||||
return o==null;
|
return o==null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean isSet(Object o) {
|
public static boolean isSet(Object...o) {
|
||||||
return o != null;
|
for (Object x : o) {
|
||||||
|
if (x == null) return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public JSONObject json() {
|
public JSONObject json() {
|
||||||
|
|||||||
Reference in New Issue
Block a user