public class LayoutEvent extends Object
Fragment,
LayoutEventListener,
ColumnLayout| Modifier and Type | Field and Description |
|---|---|
static int |
ADDED
Event type value that notifies that a fragment has been added
|
static int |
MOVED_DOWN
Event type value that notifies that a fragment has been moved down
|
static int |
MOVED_LEFT
Event type value that notifies that a fragment has been moved left
|
static int |
MOVED_RIGHT
Event type value that notifies that a fragment has been moved right
|
static int |
MOVED_UP
Event type value that notifies that a fragment has been moved up
|
| Constructor and Description |
|---|
LayoutEvent(int eventType,
ContentFragment fragment,
LayoutCoordinate originalCoordinate,
LayoutCoordinate newCoordinate) |
LayoutEvent(int eventType,
ContentPage page,
String portletType,
String portletName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getEventType()
Returns the event type (see event constants)
|
ContentFragment |
getFragment()
Returns the fragment that is the target of this event.
|
LayoutCoordinate |
getNewCoordinate()
Returns the new/current coordinate of the Fragment targeted by this event.
|
LayoutCoordinate |
getOriginalCoordinate()
Returns the original (prior to the event) coordinate of the Fragment targeted by this event.
|
ContentPage |
getPage()
Returns the page that is the target of this event.
|
String |
getPortletName()
Returns the portlet name.
|
String |
getPortletType()
Returns the portlet type.
|
String |
toString() |
public static final int ADDED
public static final int MOVED_UP
public static final int MOVED_DOWN
public static final int MOVED_LEFT
public static final int MOVED_RIGHT
public LayoutEvent(int eventType,
ContentPage page,
String portletType,
String portletName)
eventType - The type of event (see the event constants)page - Page that is the target of this event.portletType - The new portlet type.portletName - The new portlet name.ContentFragmentpublic LayoutEvent(int eventType,
ContentFragment fragment,
LayoutCoordinate originalCoordinate,
LayoutCoordinate newCoordinate)
eventType - The type of event (see the event constants)fragment - Fragment that is the target of this event.originalCoordinate - the previous LayoutCoordinate of this FragmentnewCoordinate - the new and current coordinates of this fragment.ContentFragmentpublic int getEventType()
ColumnLayout#layoutTypepublic ContentPage getPage()
ContentPagepublic String getPortletType()
public String getPortletName()
public ContentFragment getFragment()
ContentFragmentpublic LayoutCoordinate getNewCoordinate()
LayoutCoordinatepublic LayoutCoordinate getOriginalCoordinate()
LayoutCoordinateCopyright © 1999–2015 The Apache Software Foundation. All rights reserved.