public class ViewProperties extends Object implements Iterable<String>, JSONEnabled
Constructor and Description |
---|
ViewProperties() |
ViewProperties(boolean visibility)
Convenience constructor that initializes the "dmx.topicmaps.visibility" standard view property.
|
ViewProperties(int x,
int y)
Convenience constructor that initializes the "dmx.topicmaps.x" and "dmx.topicmaps.y" standard view properties.
|
ViewProperties(int x,
int y,
boolean visibility,
boolean pinned)
Convenience constructor that initializes the "dmx.topicmaps.x", "dmx.topicmaps.y", "dmx.topicmaps.visibility",
and "dmx.topicmaps.pinned" standard view properties.
|
ViewProperties(org.codehaus.jettison.json.JSONObject viewProps)
Note: invoked from JAX-RS message body reader (see Webservice's ObjectProvider.java).
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String propUri) |
boolean |
getBoolean(String propUri)
Convenience getter.
|
int |
getInt(String propUri)
Convenience getter.
|
private void |
initPinned(boolean pinned) |
private void |
initPos(int x,
int y) |
private void |
initVisibility(boolean visibility) |
Iterator<String> |
iterator() |
ViewProperties |
put(String propUri,
Object value) |
org.codehaus.jettison.json.JSONObject |
toJSON() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public ViewProperties(org.codehaus.jettison.json.JSONObject viewProps)
public ViewProperties()
public ViewProperties(int x, int y, boolean visibility, boolean pinned)
public ViewProperties(int x, int y)
public ViewProperties(boolean visibility)
public ViewProperties put(String propUri, Object value)
public boolean getBoolean(String propUri)
public org.codehaus.jettison.json.JSONObject toJSON()
toJSON
in interface JSONEnabled
private void initPos(int x, int y)
private void initVisibility(boolean visibility)
private void initPinned(boolean pinned)
Copyright © 2018. All Rights Reserved.