java - MVP Hold focus and list position with 2 Activities -



java - MVP Hold focus and list position with 2 Activities -

i haven application 2 activities, 1 datagrid list , other 1 details activity entry of list. both on same layout page:

__________________ | listview | | - entry 1 | | - entry 2 | | - entry 3 | | - .... | | - entry n | |------------------| | detailsview | |__________________|

the datagrid height fixed hence i'm having scrollpanel entries , if klick on entries.

when implemented function delete entry. send delete , after response ok new list get phone call , refill datagrid. when i, illustration delete entry 42, have scroll downwards bit, entry deleted , scrollpanel position stays same new loaded list, want to. next step alter details few, used placecontroller load new empty detailsview, because old selected 1 deleted. when phone call new detailsplace listview changes , scrollpanel position origin of list (scrollpanel default state, @ origin of list).

but thats not want accomplish, why scrollbar changing after goto(place) call. thx help.

update:

another aspect is, thought work 2 activies in same layout. or whould smarter compare both 1 activity , view:

kinda (uibinder):

<g:resizelayoutpanel ui:field="listcontent" width="100%" height="100%"> <g:scrollpanel ui:field="listscrollpanel" width="100%" height="250px"> <c:datagrid ui:field='datagrid' width="100%" height="250px" /> </g:scrollpanel> </g:resizelayoutpanel> <g:scrollpanel> <g:htmlpanel width="100%" height="100%"> <table border="0" width="100%" stylename="{style.detailstable}"> <!-- details table info --> </table><br/> </g:htmlpanel> </g:scrollpanel>

if activitymapper returns exact same activity instance returned previous time called, activity won't stopped , restarted, or "view" detached document , reattached.

if list area, should prepare scrolling issue.

fyi, filteredactivitymapper , cachingactivitymapper meant help in kind of situation: first 1 maps detailsplace listplace, , sec takes care of caching activity places equals(); way, real activitymapper can concentrate on creating new activity instances. beingness said, tend not utilize helpers , build caching within own activitymappers, ymmv.

java gwt datagrid mvp

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -