info.magnolia.ui.vaadin.gwt.client.editor.dom.processor
Class AreaProcessor

java.lang.Object
  extended by info.magnolia.ui.vaadin.gwt.client.editor.dom.processor.AbstractMgnlElementProcessor
      extended by info.magnolia.ui.vaadin.gwt.client.editor.dom.processor.AreaProcessor

public class AreaProcessor
extends AbstractMgnlElementProcessor

Processor for MgnlAreas. Extends the AbstractMgnlElementProcessor for handling widgets associated with areas. Removes areas which do not contain any AreaBar from the Model.

See Also:
AreaBar, AreaEndBar, ComponentPlaceHolder

Field Summary
static String ATTRIBUTE_AVAILABLE_COMPONENTS
           
static String ATTRIBUTE_CREATED
           
static String ATTRIBUTE_DIALOG
           
static String ATTRIBUTE_EDITABLE
           
static String ATTRIBUTE_OPTIONAL
           
static String ATTRIBUTE_SHOW_NEW_COMPONENT_AREA
           
static String ATTRIBUTE_TYPE
           
 
Constructor Summary
AreaProcessor(Model model, MgnlArea mgnlElement)
           
 
Method Summary
 MgnlArea getMgnlElement()
           
protected  boolean hasComponentPlaceHolder(Map<String,String> attributes)
           
protected  boolean hasControlBar(Map<String,String> attributes)
           
 void process()
           
 
Methods inherited from class info.magnolia.ui.vaadin.gwt.client.editor.dom.processor.AbstractMgnlElementProcessor
addToModel, attach, attach, attach, attachWidget, getEditBar, getModel, setEditBar, setMgnlElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ATTRIBUTE_OPTIONAL

public static final String ATTRIBUTE_OPTIONAL
See Also:
Constant Field Values

ATTRIBUTE_CREATED

public static final String ATTRIBUTE_CREATED
See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final String ATTRIBUTE_TYPE
See Also:
Constant Field Values

ATTRIBUTE_EDITABLE

public static final String ATTRIBUTE_EDITABLE
See Also:
Constant Field Values

ATTRIBUTE_AVAILABLE_COMPONENTS

public static final String ATTRIBUTE_AVAILABLE_COMPONENTS
See Also:
Constant Field Values

ATTRIBUTE_DIALOG

public static final String ATTRIBUTE_DIALOG
See Also:
Constant Field Values

ATTRIBUTE_SHOW_NEW_COMPONENT_AREA

public static final String ATTRIBUTE_SHOW_NEW_COMPONENT_AREA
See Also:
Constant Field Values
Constructor Detail

AreaProcessor

public AreaProcessor(Model model,
                     MgnlArea mgnlElement)
Method Detail

process

public void process()
Specified by:
process in class AbstractMgnlElementProcessor

hasComponentPlaceHolder

protected boolean hasComponentPlaceHolder(Map<String,String> attributes)

hasControlBar

protected boolean hasControlBar(Map<String,String> attributes)

getMgnlElement

public MgnlArea getMgnlElement()
Overrides:
getMgnlElement in class AbstractMgnlElementProcessor


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