public String getPropertyKey(String id) { return "pop." + getId() + "." + id; }
String findBodyResourcePath() { String bodyResourcePath = getBodyResourcePath(); if (bodyResourcePath != null) { return bodyResourcePath; } else { return "pops/" + getId() + "/body.html"; } }
public String findName() { if (name_ != null) { return name_; } else { return "%pop." + getParent().getId() + "." + id_ + ".name"; } }
public String findName() { String name = getName(); if (name == null) { name = "%pop." + getId() + "." + PROP_NAME; } return name; }
public String findDescription() { String description = getDescription(); if (description == null) { description = "%pop." + getId() + "." + PROP_DESCRIPTION; } return description; }
String findImageResourcePath() { String imageResourcePath = getImageResourcePath(); if (imageResourcePath != null) { return imageResourcePath; } else { return "pops/" + getId() + "/image.jpg"; } }
public String findTitle() { String title = getTitle(); if (title == null) { title = "%pop." + getId() + "." + PROP_TITLE; } return title; }
public String findDescription() { if (description_ != null) { return description_; } else { return "%pop." + getParent().getId() + "." + id_ + ".description"; } }
protected boolean doStart() { popElements_ = getExtensionElements(PopElement.class); popElementMap_ = new LinkedHashMap<Object, PopElement>(); for (int i = 0; i < popElements_.length; i++) { PopElement element = popElements_[i]; element.init(contentPlugin_, this); String id = element.getId(); popElementMap_.put(id, element); String fullId = element.getFullId(); popElementMap_.put(fullId, element); if (id.endsWith(SUFFIX_POP)) { popElementMap_.put(id.substring(0, id.length() - SUFFIX_POP.length()), element); popElementMap_.put(fullId.substring(0, fullId.length() - SUFFIX_POP.length()), element); } } defaultPopImageResource_ = getHomeDirectory().getChildResource( PATH_DEFAULTPOPIMAGE); return true; }
String getOptionName(String value) { String name = element_.getParent().getPlugin().getProperty( "pop." + element_.getParent().getId() + "." + element_.getId() + ".option." + value + ".name", locale_); return (name != null ? name : value); }
PopElement popElement = XOMUtils.toBean(elements[j], PopElement.class); if (popId.equals(getPluginId() + "." + popElement.getId())) { popElement.setParent(extensions[i]); return initPopElement(popElement);