src/windows/native/sun/windows/awt_List.h

Print this page




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef AWT_LIST_H
  27 #define AWT_LIST_H
  28 
  29 #include "awt_Component.h"
  30 
  31 #include "java_awt_List.h"
  32 #include "sun_awt_windows_WListPeer.h"
  33 
  34 
  35 /************************************************************************
  36  * AwtList class
  37  */
  38 
  39 class AwtList : public AwtComponent {
  40 public:
  41     AwtList();
  42     virtual ~AwtList();
  43 
  44     virtual LPCTSTR GetClassName();
  45 
  46     static AwtList* Create(jobject peer, jobject parent);
  47 
  48     virtual BOOL NeedDblClick() { return TRUE; }
  49 
  50     INLINE void Select(int pos) {
  51         if (isMultiSelect) {




  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 #ifndef AWT_LIST_H
  27 #define AWT_LIST_H
  28 
  29 #include "awt_Component.h"
  30 

  31 #include "sun_awt_windows_WListPeer.h"
  32 
  33 
  34 /************************************************************************
  35  * AwtList class
  36  */
  37 
  38 class AwtList : public AwtComponent {
  39 public:
  40     AwtList();
  41     virtual ~AwtList();
  42 
  43     virtual LPCTSTR GetClassName();
  44 
  45     static AwtList* Create(jobject peer, jobject parent);
  46 
  47     virtual BOOL NeedDblClick() { return TRUE; }
  48 
  49     INLINE void Select(int pos) {
  50         if (isMultiSelect) {