public AbstractImagePrototype getIcon(ModelData model) {
if (model.get("icon") != null) {
return Resources.ICONS.lock();
} else {
return null;
}
}
in this line of code:
return Resources.ICONS.lock();
I need to change lock() for a String, e.g.
String text = "lock()";
return Resources.ICONS.text;
How do I do this?
you can do
at leas if ICONS is an object. If it is a class it could be
(untested).
I hope you know what you are doing, because that could have a number of effects you don’t want.