File | Line |
---|
info/magnolia/cms/gui/dialog/DialogButtonSet.java | 105 |
info/magnolia/cms/gui/dialog/DialogSelect.java | 95 |
options.add(option);
}
}
catch (RepositoryException e) {
if (log.isDebugEnabled()) {
log.debug("Exception caught: " + e.getMessage(), e); //$NON-NLS-1$
}
}
this.setOptions(options);
}
protected Collection getOptionNodes(Content configNode) throws PathNotFoundException, RepositoryException, AccessDeniedException {
Content optionsNode = null;
if(configNode.hasContent("options")){
optionsNode = configNode.getContent("options"); //$NON-NLS-1$
}
else{
String repository = this.getConfigValue("repository", RepositoryConstants.WEBSITE);
String path = this.getConfigValue("path");
if(StringUtils.isNotEmpty(path)){
optionsNode = ContentUtil.getContent(repository, path);
}
}
if(optionsNode != null){
return ContentUtil.getAllChildren(optionsNode);
}
return new ArrayList();
} |
File | Line |
---|
info/magnolia/cms/gui/dialog/DialogEditWithButton.java | 93 |
info/magnolia/cms/gui/dialog/DialogEditWithCustomButtons.java | 139 |
Edit control = new Edit(this.getName(), this.getValue());
control.setType(this.getConfigValue("type", PropertyType.TYPENAME_STRING)); //$NON-NLS-1$
if (this.getConfigValue("saveInfo").equals("false")) { //$NON-NLS-1$ //$NON-NLS-2$
control.setSaveInfo(false);
}
control.setCssClass(CssConstants.CSSCLASS_EDIT);
control.setRows(this.getConfigValue("rows", "1")); //$NON-NLS-1$ //$NON-NLS-2$
control.setCssStyles("width", "100%"); //$NON-NLS-1$ //$NON-NLS-2$
if (this.getConfigValue("onchange", null) != null) { //$NON-NLS-1$
control.setEvent("onchange", this.getConfigValue("onchange")); //$NON-NLS-1$ //$NON-NLS-2$
}
this.drawHtmlPre(out);
String width = this.getConfigValue("width", "95%"); //$NON-NLS-1$ //$NON-NLS-2$
out.write("<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"" + width + "\">"); //$NON-NLS-1$ //$NON-NLS-2$
out.write("<tr><td width=\"100%\" class=\"" + CssConstants.CSSCLASS_EDITWITHBUTTON + "\">"); //$NON-NLS-1$ //$NON-NLS-2$ |
File | Line |
---|
info/magnolia/cms/gui/inline/BarEdit.java | 196 |
info/magnolia/cms/gui/inline/BarNew.java | 147 |
}
/**
* @deprecated use drawHtml(Writer out) instead.
*/
@Deprecated
public void drawHtml(JspWriter out) throws IOException {
drawHtml((Writer) out);
}
/**
* Draws the main bar (incl. all magnolia specific js and css sources).
*/
public void drawHtml(Writer out) throws IOException {
final AggregationState aggregationState = MgnlContext.getAggregationState();
final Node mainContent = aggregationState.getMainContent().getJCRNode();
boolean isGranted;
try {
isGranted = PermissionUtil.isGranted(mainContent.getSession(), mainContent.getPath(), Permission.SET);
} catch (RepositoryException e) {
// TODO dlipp - apply consistent ExceptionHandling
throw new RuntimeException(e);
}
if (!aggregationState.isPreviewMode() && isGranted) { |