javauis/eswt_akn/org.eclipse.ercp.swt.s60/native/src/swttable.cpp
branchRCL_3
changeset 60 6c158198356e
parent 34 71c436fe3ce0
equal deleted inserted replaced
59:e5618cc85d74 60:6c158198356e
  1902 // From MSwtControl
  1902 // From MSwtControl
  1903 // ---------------------------------------------------------------------------
  1903 // ---------------------------------------------------------------------------
  1904 //
  1904 //
  1905 TInt CSwtTable::FocusBackgroundPolicy() const
  1905 TInt CSwtTable::FocusBackgroundPolicy() const
  1906 {
  1906 {
       
  1907 #ifdef RD_JAVA_S60_RELEASE_9_2
       
  1908     return ENoFocusBackgroundInCaptionedControl;
       
  1909 #else
  1907     return ASwtControlBase::FocusBackgroundPolicy();
  1910     return ASwtControlBase::FocusBackgroundPolicy();
  1908 };
  1911 #endif // RD_JAVA_S60_RELEASE_9_2
  1909 
  1912 }
  1910 // ---------------------------------------------------------------------------
  1913 // ---------------------------------------------------------------------------
  1911 // From MSwtControl
  1914 // From MSwtControl
  1912 // ---------------------------------------------------------------------------
  1915 // ---------------------------------------------------------------------------
  1913 //
  1916 //
  1914 TSize CSwtTable::ComputeSizeL(TInt aWHint, TInt aHHint)
  1917 TSize CSwtTable::ComputeSizeL(TInt aWHint, TInt aHHint)
  2195         }
  2198         }
  2196     }
  2199     }
  2197 }
  2200 }
  2198 #endif //RD_JAVA_S60_RELEASE_9_2
  2201 #endif //RD_JAVA_S60_RELEASE_9_2
  2199 
  2202 
       
  2203 // ---------------------------------------------------------------------------
       
  2204 // CSwtTable::PrepareForTraverse
       
  2205 // From MSwtControl
       
  2206 // ---------------------------------------------------------------------------
       
  2207 //
       
  2208 void CSwtTable::PrepareForTraverse()
       
  2209 {
       
  2210     ASSERT(iTableListBox);
       
  2211     ASSERT(iTableListBox->View());
       
  2212 
       
  2213 #ifdef RD_JAVA_S60_RELEASE_9_2
       
  2214     // AvKon enables highlight only when key event is recieved.
       
  2215     // When traversing, no key event is sent to AvKon, so we
       
  2216     // have to enable highlight by ourselves.
       
  2217     CListItemDrawer* itemDrawer = iTableListBox->View()->ItemDrawer();
       
  2218     if (itemDrawer)
       
  2219     {
       
  2220         itemDrawer->ClearFlags(CListItemDrawer::ESingleClickDisabledHighlight);
       
  2221     }
       
  2222 #endif //RD_JAVA_S60_RELEASE_9_2
       
  2223 }
  2200 
  2224 
  2201 // ---------------------------------------------------------------------------
  2225 // ---------------------------------------------------------------------------
  2202 // From ASwtScrollableBase
  2226 // From ASwtScrollableBase
  2203 // Scrollbar frame is created and owned by the listbox component.
  2227 // Scrollbar frame is created and owned by the listbox component.
  2204 // ---------------------------------------------------------------------------
  2228 // ---------------------------------------------------------------------------