1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    2
    Vote Rating
    0
    cnapagoda is on a distinguished road

      0  

    Default Unanswered: Save portal layout

    Unanswered: Save portal layout


    Hi all,

    I faced some problem with when saving current status of Portal. I have add PortalEvent listener. But There I am unable to get all Portlet's position information. Is there any specific methods to get current portal status?

    Thank you

  2. #2
    Sencha User
    Join Date
    Nov 2009
    Posts
    51
    Answers
    1
    Vote Rating
    0
    smiletolead is on a distinguished road

      0  

    Default


    PortalEvent object gives you details of old row, old column, new row and new column of the portlet which is moved. It also has portlet object reference using which you can get the absolute left and top position of the portlet.

    Code:
      portal.addListener(Events.Drop, new Listener<PortalEvent>(){
    
            @Override
            public void handleEvent(PortalEvent be) {
                GWT.log("Start "+be.getStartRow()+" Column "+be.getStartColumn()+" New Row "+be.getRow()
                        +" New Column "+be.getColumn());
                
                //Displays the current position of the moved portlet
                GWT.log(" Position "+be.getPortlet().getAbsoluteLeft()+" "+be.getPortlet().getAbsoluteTop());
            }
            
        });
    Hope it helps you
    Ganesh

Thread Participants: 1

Tags for this Thread