Class PageContentEvent
- java.lang.Object
-
- com.znize.platform.model.container.PageContentEvent
-
public class PageContentEvent extends java.lang.ObjectPageContentEvent that will be broadcast to the registered listeners of a PageContent if any beans are added to the PageContent or removed.- Since:
- 3.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPageContentEvent.TypeEvent types
-
Constructor Summary
Constructors Constructor Description PageContentEvent(PageContentEvent.Type type, ContainerBean containerBean, BackingBean backingBean, PageContent.BeanLocation beanLocation)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BackingBeangetBackingBean()Get the bean that is added or removed.PageContent.BeanLocationgetBeanLocation()Get the location of the bean added or removed.ContainerBeangetContainerBean()Get the ContainerBean of the PageContent where the bean is added or removed.PageContentEvent.TypegetType()Get event type
-
-
-
Constructor Detail
-
PageContentEvent
public PageContentEvent(PageContentEvent.Type type, ContainerBean containerBean, BackingBean backingBean, PageContent.BeanLocation beanLocation)
Constructor- Parameters:
type- event type: ADD or REMOVEcontainerBean- the ContainerBean of the PageContentbackingBean- the bean is added or removedbeanLocation- the location of the bean
-
-
Method Detail
-
getType
public PageContentEvent.Type getType()
Get event type- Returns:
- event type
-
getContainerBean
public ContainerBean getContainerBean()
Get the ContainerBean of the PageContent where the bean is added or removed.- Returns:
- ContainerBean instance
-
getBackingBean
public BackingBean getBackingBean()
Get the bean that is added or removed.- Returns:
- BackingBean instance
-
getBeanLocation
public PageContent.BeanLocation getBeanLocation()
Get the location of the bean added or removed.- Returns:
- BeanLocation instance
-
-