}
@Override
public void onComponentSelection() {
Map preferences = getGwtToolbarItem().getProperties();
final GWTJahiaProperty windowUrl = (GWTJahiaProperty) preferences.get(Constants.URL);
if (Log.isDebugEnabled()) {
Iterator it = preferences.keySet().iterator();
while (it.hasNext()) {
Log.debug("Found property: " + it.next());
}
}
String wOptions = "";
final GWTJahiaProperty noOptions = (GWTJahiaProperty) preferences.get(Constants.NO_OPTIONS);
if (noOptions == null) {
final GWTJahiaProperty windowWidth = (GWTJahiaProperty) preferences.get(Constants.WIDTH);
String wWidth = "";
if (windowWidth == null) {
Log.debug("Warning: width not found - nb. preferences:" + preferences.size());
wWidth = ",width=900";
} else {
wWidth = ",width=" + windowWidth.getValue();
}
final GWTJahiaProperty windowHeight = (GWTJahiaProperty) preferences.get(Constants.HEIGHT);
String wHeight = "";
if (windowHeight == null) {
wHeight = ",height=600";
} else {
wHeight = ",height=" + windowHeight.getValue();
}
wOptions = "scrollbars=yes,resizable=yes,status=no,location=no" + wWidth + wHeight;
}
String name = getPropertyValue(getGwtToolbarItem(), "target");