summaryrefslogtreecommitdiff
path: root/libjava/javax/swing/JList.h
blob: 2e68ae501bddc82e5c84ab5177a3fb96aac6d08e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __javax_swing_JList__
#define __javax_swing_JList__

#pragma interface

#include <javax/swing/JComponent.h>
#include <gcj/array.h>

extern "Java"
{
  namespace java
  {
    namespace awt
    {
        class Color;
        class Dimension;
        class Point;
        class Rectangle;
    }
  }
  namespace javax
  {
    namespace accessibility
    {
        class AccessibleContext;
    }
    namespace swing
    {
        class JList;
        class JList$ListListener;
        class ListCellRenderer;
        class ListModel;
        class ListSelectionModel;
      namespace event
      {
          class ListSelectionListener;
      }
      namespace plaf
      {
          class ListUI;
      }
      namespace text
      {
          class Position$Bias;
      }
    }
  }
}

class javax::swing::JList : public ::javax::swing::JComponent
{

public: // actually protected
  virtual void fireSelectionValueChanged(jint, jint, jboolean);
public:
  JList();
  JList(JArray< ::java::lang::Object * > *);
  JList(::java::util::Vector *);
  JList(::javax::swing::ListModel *);
private:
  void init(::javax::swing::ListModel *);
public: // actually protected
  virtual ::javax::swing::ListSelectionModel * createSelectionModel();
public:
  virtual jint getFixedCellHeight();
  virtual void setFixedCellHeight(jint);
  virtual jint getFixedCellWidth();
  virtual void setFixedCellWidth(jint);
  virtual jint getVisibleRowCount();
  virtual void setVisibleRowCount(jint);
  virtual void addListSelectionListener(::javax::swing::event::ListSelectionListener *);
  virtual void removeListSelectionListener(::javax::swing::event::ListSelectionListener *);
  virtual JArray< ::javax::swing::event::ListSelectionListener * > * getListSelectionListeners();
  virtual jint getSelectionMode();
  virtual void setSelectionMode(jint);
  virtual void setSelectedIndex(jint);
  virtual void setSelectedIndices(JArray< jint > *);
  virtual jint getSelectedIndex();
  virtual jboolean isSelectionEmpty();
  virtual jint getFirstVisibleIndex();
  virtual jint locationToIndex(::java::awt::Point *);
  virtual ::java::awt::Point * indexToLocation(jint);
  virtual jint getLastVisibleIndex();
  virtual JArray< jint > * getSelectedIndices();
  virtual jboolean isSelectedIndex(jint);
  virtual ::java::lang::Object * getSelectedValue();
  virtual JArray< ::java::lang::Object * > * getSelectedValues();
  virtual ::java::awt::Color * getSelectionBackground();
  virtual void setSelectionBackground(::java::awt::Color *);
  virtual ::java::awt::Color * getSelectionForeground();
  virtual void setSelectionForeground(::java::awt::Color *);
  virtual void setSelectedValue(::java::lang::Object *, jboolean);
  virtual void ensureIndexIsVisible(jint);
  virtual void setListData(JArray< ::java::lang::Object * > *);
private:
  ::javax::swing::ListModel * createListModel(JArray< ::java::lang::Object * > *);
  ::javax::swing::ListModel * createListModel(::java::util::Vector *);
public:
  virtual void setListData(::java::util::Vector *);
  virtual ::javax::swing::ListCellRenderer * getCellRenderer();
  virtual void setCellRenderer(::javax::swing::ListCellRenderer *);
  virtual ::javax::swing::ListModel * getModel();
  virtual void setModel(::javax::swing::ListModel *);
  virtual ::javax::swing::ListSelectionModel * getSelectionModel();
  virtual void setSelectionModel(::javax::swing::ListSelectionModel *);
  virtual ::javax::swing::plaf::ListUI * getUI();
  virtual void setUI(::javax::swing::plaf::ListUI *);
  virtual void updateUI();
  virtual ::java::lang::String * getUIClassID();
  virtual ::java::lang::Object * getPrototypeCellValue();
  virtual void setPrototypeCellValue(::java::lang::Object *);
  virtual ::javax::accessibility::AccessibleContext * getAccessibleContext();
  virtual ::java::awt::Dimension * getPreferredScrollableViewportSize();
  virtual jint getScrollableUnitIncrement(::java::awt::Rectangle *, jint, jint);
  virtual jint getScrollableBlockIncrement(::java::awt::Rectangle *, jint, jint);
  virtual jboolean getScrollableTracksViewportWidth();
  virtual jboolean getScrollableTracksViewportHeight();
  virtual jint getAnchorSelectionIndex();
  virtual jint getLeadSelectionIndex();
  virtual jint getMinSelectionIndex();
  virtual jint getMaxSelectionIndex();
  virtual void clearSelection();
  virtual void setSelectionInterval(jint, jint);
  virtual void addSelectionInterval(jint, jint);
  virtual void removeSelectionInterval(jint, jint);
  virtual jboolean getValueIsAdjusting();
  virtual void setValueIsAdjusting(jboolean);
  virtual jboolean getDragEnabled();
  virtual void setDragEnabled(jboolean);
  virtual jint getLayoutOrientation();
  virtual void setLayoutOrientation(jint);
  virtual ::java::awt::Rectangle * getCellBounds(jint, jint);
  virtual jint getNextMatch(::java::lang::String *, jint, ::javax::swing::text::Position$Bias *);
public: // actually protected
  virtual ::java::lang::String * paramString();
private:
  static const jlong serialVersionUID = 4406629526391098046LL;
public:
  static const jint VERTICAL = 0;
  static const jint VERTICAL_WRAP = 1;
  static const jint HORIZONTAL_WRAP = 2;
public: // actually package-private
  jboolean __attribute__((aligned(__alignof__( ::javax::swing::JComponent)))) dragEnabled;
  ::javax::swing::ListCellRenderer * cellRenderer;
  jint fixedCellWidth;
  jint fixedCellHeight;
  jint layoutOrientation;
  ::javax::swing::ListModel * model;
  ::java::lang::Object * prototypeCellValue;
  ::java::awt::Color * selectionBackground;
  ::java::awt::Color * selectionForeground;
  ::javax::swing::ListSelectionModel * selectionModel;
  jint visibleRowCount;
  ::javax::swing::JList$ListListener * listListener;
public:
  static ::java::lang::Class class$;
};

#endif // __javax_swing_JList__