Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Controls module for Magnolia CMS (http://www.openmindlab.com/lab/products/controls.html) Copyright(C) 2008-2013, Openmind S.r.l. http://www.openmindonline.it This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 
 package net.sourceforge.openutils.mgnlcontrols.dialog;
 
 import  info.magnolia.cms.core.Content;
 import  info.magnolia.cms.gui.dialog.DialogControl;
 
 import java.util.Map;
 
 

Author(s):
diego
 
 {
 
 
     private DialogRadioGroup radioGroup;

    
 
     {
     }

    
Returns the dependentSelectList.

Returns:
the dependentSelectList
 
     {
         if ( == null)
         {
              = new DialogDependentSelectList();
         }
         return ;
     }

    
Returns the radioGroup.

Returns:
the radioGroup
 
     public DialogRadioGroup getRadioGroup()
     {
         if ( == null)
         {
              = new DialogRadioGroup()
             {

                
 
                 @Override
                 protected DialogControl getThisDialogControl()
                 {
                     return DialogDependentSelectListAndRadioGroup.this;
                 }
 
             };
         }
         return ;
     }

    
 
     @Override
     public void setName(String s)
     {
         super.setName(s);
         getDependentSelectList().setName(s);
         getRadioGroup().setName(s);
     }

    
    @Override
    protected String getPath()
    {
        return "dialogs/dependentSelectListAndRadioGroup.ftl";
    }

    
    @Override
    public void init(HttpServletRequest requestHttpServletResponse response, Content websiteNode, Content configNode)
        throws RepositoryException
    {
        super.init(requestresponsewebsiteNodeconfigNode);
        getDependentSelectList().init(requestresponsewebsiteNodeconfigNode);
        getRadioGroup().init(requestresponsewebsiteNodeconfigNode);
        if (StringUtils.isEmpty(getConfigValue("saveHandler")))
        {
            setConfig(
                "saveHandler",
                "net.sourceforge.openutils.mgnlcontrols.dialog.DialogDependentSelectListSaveHandler");
        }
    }

    
    @Override
    protected void addToParameters(Map<StringObjectparameters)
    {
        super.addToParameters(parameters);
        getDependentSelectList().addToParameters(parameters);
        getRadioGroup().addToParameters(parameters);
    }
New to GrepCode? Check out our FAQ X