[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Grid item - setSelected(...) is deprecated - Why?  XML
Forum Index -> Development
Author Message
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

FROM MAIL:

I always use setSelected() as an override in a tree to create or check lock sets and then set the value accordingly.

So that the line is not locked when e.g. B. can move. Is there an alternative here because your function seems to be deprecated by now. Thanks.

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5521
Offline

Hi,

FIXGRID(Tree)Item.setSelected(...) always has been on "deprecated", because it's a function that is only to be used internally by inner grid functions.

Please use the selection methods on the grid itself (i.e. the FIXGRIDListBinding or the FIXGRIDTreeBinding instance):

Code:
 FIXGRIDTreeBinding m_tree = ...
 
 m_tree.selectItem(...);
 


Kind regards! Björn



FYI: The JavaDoc behind FIXGRIDItem.setSelected is:
Code:
     /**
      * Internal use only.<br><br>
      * Do not set the selection directly on item level. Use method
      * {@link FIXGRIDListBinding#selectItem(IFIXGRIDItem)} or 
      * {@link FIXGRIDTreeBinding#selectItem(IFIXGRIDItem)} to do so.
      */
     @Deprecated
     public void setSelected(boolean value) 
     {
     ....
     }
 

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team