info.magnolia.module.shop.dialog
Class QueryDialogButtonSet

java.lang.Object
  extended by info.magnolia.cms.gui.dialog.DialogControlImpl
      extended by info.magnolia.cms.gui.dialog.DialogBox
          extended by info.magnolia.cms.gui.dialog.DialogButtonSet
              extended by info.magnolia.module.shop.dialog.QueryDialogButtonSet
All Implemented Interfaces:
info.magnolia.cms.gui.dialog.DialogControl
Direct Known Subclasses:
ProductCategoryQueryDialogButtonSet

public class QueryDialogButtonSet
extends info.magnolia.cms.gui.dialog.DialogButtonSet

This "button set" dialog will get its buttons by querying the repository instead of reading them from the configuration. The configuration options are:

Author:
will

Field Summary
 
Fields inherited from class info.magnolia.cms.gui.dialog.DialogBox
BOXTYPE_1COL, BOXTYPE_2COLS
 
Fields inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl
DEFAULT_VALUE_PROPERTY, SESSION_ATTRIBUTENAME_DIALOGOBJECT, SESSION_ATTRIBUTENAME_DIALOGOBJECT_REMOVE, VALIDATION_PATTERN_PROPERTY, value
 
Constructor Summary
QueryDialogButtonSet()
           
 
Method Summary
protected  Collection getOptionNodes(info.magnolia.cms.core.Content configNode)
           
 void init(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, info.magnolia.cms.core.Content websiteNode, info.magnolia.cms.core.Content configNode)
           
 void setOptions(info.magnolia.cms.core.Content configNode, boolean setDefaultSelected)
           
 
Methods inherited from class info.magnolia.cms.gui.dialog.DialogButtonSet
drawHtml, drawHtmlPostSubs, drawHtmlPreSubs, getButtonType, setButtonType, setOption
 
Methods inherited from class info.magnolia.cms.gui.dialog.DialogBox
drawHtmlPost, drawHtmlPre, getBoxType, getHtmlDescription, setBoxType
 
Methods inherited from class info.magnolia.cms.gui.dialog.DialogControlImpl
addOption, addSub, clearWebsiteNode, drawSubs, getConfigValue, getConfigValue, getDescription, getId, getLabel, getMessage, getMessage, getMessages, getName, getOptions, getParent, getRequest, getResponse, getStorageNode, getSub, getSubs, getTopParent, getValidationPattern, getValue, getValues, getWebsiteNode, isRequired, readValue, readValues, removeSessionAttribute, setConfig, setConfig, setConfig, setDescription, setLabel, setName, setOptions, setRequired, setSaveInfo, setSessionAttribute, setTopParent, setValidationMessage, setValue, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryDialogButtonSet

public QueryDialogButtonSet()
Method Detail

setOptions

public void setOptions(info.magnolia.cms.core.Content configNode,
                       boolean setDefaultSelected)
Overrides:
setOptions in class info.magnolia.cms.gui.dialog.DialogButtonSet

getOptionNodes

protected Collection getOptionNodes(info.magnolia.cms.core.Content configNode)
                             throws javax.jcr.PathNotFoundException,
                                    javax.jcr.RepositoryException,
                                    info.magnolia.cms.security.AccessDeniedException
Overrides:
getOptionNodes in class info.magnolia.cms.gui.dialog.DialogButtonSet
Throws:
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException

init

public void init(javax.servlet.http.HttpServletRequest request,
                 javax.servlet.http.HttpServletResponse response,
                 info.magnolia.cms.core.Content websiteNode,
                 info.magnolia.cms.core.Content configNode)
          throws javax.jcr.RepositoryException
Specified by:
init in interface info.magnolia.cms.gui.dialog.DialogControl
Overrides:
init in class info.magnolia.cms.gui.dialog.DialogButtonSet
Throws:
javax.jcr.RepositoryException


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.