public abstract class Element extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Element.Type |
Modifier and Type | Field and Description |
---|---|
protected String |
color |
protected Boolean |
hidden |
protected int |
id |
protected String |
label |
protected Boolean |
trace |
protected Element.Type |
type |
Constructor and Description |
---|
Element(int id,
String label,
String color,
Boolean hidden,
Element.Type type,
Boolean trace) |
Element(org.apache.wicket.ajax.json.JSONObject object) |
Modifier and Type | Method and Description |
---|---|
String |
getColor() |
int |
getId() |
abstract org.apache.wicket.ajax.json.JSONObject |
getJSON() |
org.apache.wicket.ajax.json.JSONObject |
getJSON(org.apache.wicket.ajax.json.JSONObject obj)
Return a JSON object which represent the Element
|
String |
getLabel() |
Element.Type |
getType() |
Boolean |
isHidden() |
Boolean |
isTrace() |
void |
setColor(String color) |
void |
setHidden(Boolean hidden) |
void |
setId(int id) |
void |
setLabel(String label) |
void |
setTrace(Boolean trace) |
void |
setType(Element.Type type) |
protected int id
protected String label
protected String color
protected Boolean trace
protected Boolean hidden
protected Element.Type type
public Element(int id, String label, String color, Boolean hidden, Element.Type type, Boolean trace)
public Element(org.apache.wicket.ajax.json.JSONObject object) throws org.apache.wicket.ajax.json.JSONException
org.apache.wicket.ajax.json.JSONException
public abstract org.apache.wicket.ajax.json.JSONObject getJSON() throws org.apache.wicket.ajax.json.JSONException
org.apache.wicket.ajax.json.JSONException
public org.apache.wicket.ajax.json.JSONObject getJSON(org.apache.wicket.ajax.json.JSONObject obj) throws org.apache.wicket.ajax.json.JSONException
obj
- JSON object which will will be used to add field valuesorg.apache.wicket.ajax.json.JSONException
public int getId()
public void setId(int id)
public String getLabel()
public void setLabel(String label)
public String getColor()
public void setColor(String color)
public Boolean isTrace()
public void setTrace(Boolean trace)
public Boolean isHidden()
public void setHidden(Boolean hidden)
public Element.Type getType()
public void setType(Element.Type type)
Copyright © 2015. All rights reserved.