|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.portlets.layout.LayoutEvent
public class LayoutEvent
A LayoutEvent is used by ColumnLayout to notify its LayoutAeventListeners that there have been a change in the position of a fragment within the layout.
Fragment,
LayoutEventListener,
ColumnLayout| Field Summary | |
|---|---|
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 Summary | |
|---|---|
LayoutEvent(int eventType,
Fragment fragment,
LayoutCoordinate originalCoordinate,
LayoutCoordinate newCoordinate)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
int |
getEventType()
Returns the event type (see event constants) |
Fragment |
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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public LayoutEvent(int eventType,
Fragment 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.Fragment| Method Detail |
|---|
public int getEventType()
ColumnLayout#layoutTypepublic Fragment getFragment()
Fragmentpublic LayoutCoordinate getNewCoordinate()
LayoutCoordinatepublic LayoutCoordinate getOriginalCoordinate()
LayoutCoordinatepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||