Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: EE-1.8.2.GA_P03
-
Fix Version/s: 3.0.RC1, 3.0, EE-1.8.2.GA_P04
-
Component/s: ICE-Components
-
Labels:None
-
Environment:-
-
Assignee Priority:P2
-
Affects:Documentation (User Guide, Ref. Guide, etc.)
Description
The user is using the ice:panelPositioned component and has requested the ability to cancel a drag event in the change method that takes a PanelPositionedEvent as a parameter.
As discussed added a new listener called "beforeChangeListener" and added a cancel() method on PanelPositionEvent.
<ice:panelPositioned
{panelPositioned.beforeChange}beforeChangelistener="#
"
{panelPositioned.changed}listener="#
">
public void beforeChange(PanelPositionedEvent event) {
{ event.cancel(); }if (this_condition_met)
}
//this method will only be invoked if cancel was not called from the beforeChangeListener.
{ //do whatever }public void changed(PanelPositionedEvent event)