Methods Summary |
---|
public boolean | getBooleanValue(java.lang.String key)
return (COConfigurationManager.getBooleanParameter(key));
|
public boolean | getBooleanValue(java.lang.String key, boolean def)
return (COConfigurationManager.getBooleanParameter(key, def));
|
public int | getIntValue(java.lang.String key)
return (COConfigurationManager.getIntParameter(key));
|
public int | getIntValue(java.lang.String key, int def)
return (COConfigurationManager.getIntParameter(key, def));
|
public void | informChanged(boolean internally)
if (owner.change_listeners != null) {
for (int i = 0; i < owner.change_listeners.size(); i++) {
try {
((ParameterChangeListener) owner.change_listeners.get(i)).parameterChanged(
owner, internally);
} catch (Exception e) {
Debug.out(e);
}
}
}
|
public void | informChanging(int toValue)
if (owner.change_listeners != null) {
for (int i = 0; i < owner.change_listeners.size(); i++) {
try {
ParameterChangeListener l = (ParameterChangeListener) owner.change_listeners.get(i);
l.intParameterChanging(owner, toValue);
} catch (Exception e) {
Debug.out(e);
}
}
}
|
public void | informChanging(boolean toValue)
if (owner.change_listeners != null) {
for (int i = 0; i < owner.change_listeners.size(); i++) {
try {
ParameterChangeListener l = (ParameterChangeListener) owner.change_listeners.get(i);
l.booleanParameterChanging(owner, toValue);
} catch (Exception e) {
Debug.out(e);
}
}
}
|
public void | informChanging(java.lang.String toValue)
if (owner.change_listeners != null) {
for (int i = 0; i < owner.change_listeners.size(); i++) {
try {
ParameterChangeListener l = (ParameterChangeListener) owner.change_listeners.get(i);
l.stringParameterChanging(owner, toValue);
} catch (Exception e) {
Debug.out(e);
}
}
}
|
public void | informChanging(double toValue)
if (owner.change_listeners != null) {
for (int i = 0; i < owner.change_listeners.size(); i++) {
try {
ParameterChangeListener l = (ParameterChangeListener) owner.change_listeners.get(i);
l.floatParameterChanging(owner, toValue);
} catch (Exception e) {
Debug.out(e);
}
}
}
|
public boolean | resetIntDefault(java.lang.String key)
if (COConfigurationManager.doesParameterDefaultExist(key)) {
COConfigurationManager.removeParameter(key);
return (true);
}
return (false);
|
public void | setBooleanValue(java.lang.String key, boolean value)
if (changingCount == 0) {
changedExternally = false;
}
changingCount++;
try {
if (getBooleanValue(key) == value) {
changedExternally = true;
return;
}
if (changingCount > CHANGINGCOUNT_BREAKER) {
Debug.out("Preventing StackOverflow on setting " + key + " to " + value
+ " (was " + getBooleanValue(key) + ") via "
+ Debug.getCompressedStackTrace());
changingCount = 1;
} else {
informChanging(value);
if (!changedExternally) {
COConfigurationManager.setParameter(key, value);
changedExternally = true;
}
}
} finally {
changingCount--;
}
|
public void | setIntValue(java.lang.String key, int value)
if (changingCount == 0) {
changedExternally = false;
}
changingCount++;
try {
if (getIntValue(key) == value) {
changedExternally = true;
return;
}
if (changingCount > CHANGINGCOUNT_BREAKER) {
Debug.out("Preventing StackOverflow on setting " + key + " to " + value
+ " (was " + getIntValue(key) + ") via "
+ Debug.getCompressedStackTrace());
changingCount = 1;
} else {
informChanging(value);
if (!changedExternally) {
COConfigurationManager.setParameter(key, value);
changedExternally = true;
}
}
} finally {
changingCount--;
}
|