| 1 |
759 |
jeremybenn |
|
| 2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
| 3 |
|
|
|
| 4 |
|
|
#ifndef __javax_swing_plaf_basic_BasicListUI__
|
| 5 |
|
|
#define __javax_swing_plaf_basic_BasicListUI__
|
| 6 |
|
|
|
| 7 |
|
|
#pragma interface
|
| 8 |
|
|
|
| 9 |
|
|
#include <javax/swing/plaf/ListUI.h>
|
| 10 |
|
|
#include <gcj/array.h>
|
| 11 |
|
|
|
| 12 |
|
|
extern "Java"
|
| 13 |
|
|
{
|
| 14 |
|
|
namespace java
|
| 15 |
|
|
{
|
| 16 |
|
|
namespace awt
|
| 17 |
|
|
{
|
| 18 |
|
|
class Dimension;
|
| 19 |
|
|
class Graphics;
|
| 20 |
|
|
class Point;
|
| 21 |
|
|
class Rectangle;
|
| 22 |
|
|
namespace event
|
| 23 |
|
|
{
|
| 24 |
|
|
class FocusListener;
|
| 25 |
|
|
}
|
| 26 |
|
|
}
|
| 27 |
|
|
namespace beans
|
| 28 |
|
|
{
|
| 29 |
|
|
class PropertyChangeListener;
|
| 30 |
|
|
}
|
| 31 |
|
|
}
|
| 32 |
|
|
namespace javax
|
| 33 |
|
|
{
|
| 34 |
|
|
namespace swing
|
| 35 |
|
|
{
|
| 36 |
|
|
class CellRendererPane;
|
| 37 |
|
|
class JComponent;
|
| 38 |
|
|
class JList;
|
| 39 |
|
|
class ListCellRenderer;
|
| 40 |
|
|
class ListModel;
|
| 41 |
|
|
class ListSelectionModel;
|
| 42 |
|
|
namespace event
|
| 43 |
|
|
{
|
| 44 |
|
|
class ListDataListener;
|
| 45 |
|
|
class ListSelectionListener;
|
| 46 |
|
|
class MouseInputListener;
|
| 47 |
|
|
}
|
| 48 |
|
|
namespace plaf
|
| 49 |
|
|
{
|
| 50 |
|
|
class ComponentUI;
|
| 51 |
|
|
namespace basic
|
| 52 |
|
|
{
|
| 53 |
|
|
class BasicListUI;
|
| 54 |
|
|
class BasicListUI$ListAction;
|
| 55 |
|
|
}
|
| 56 |
|
|
}
|
| 57 |
|
|
}
|
| 58 |
|
|
}
|
| 59 |
|
|
}
|
| 60 |
|
|
|
| 61 |
|
|
class javax::swing::plaf::basic::BasicListUI : public ::javax::swing::plaf::ListUI
|
| 62 |
|
|
{
|
| 63 |
|
|
|
| 64 |
|
|
public:
|
| 65 |
|
|
static ::javax::swing::plaf::ComponentUI * createUI(::javax::swing::JComponent *);
|
| 66 |
|
|
public: // actually protected
|
| 67 |
|
|
virtual jint getRowHeight(jint);
|
| 68 |
|
|
public:
|
| 69 |
|
|
virtual ::java::awt::Rectangle * getCellBounds(::javax::swing::JList *, jint, jint);
|
| 70 |
|
|
private:
|
| 71 |
|
|
jint getCellHeight(jint);
|
| 72 |
|
|
public: // actually protected
|
| 73 |
|
|
virtual jint convertRowToY(jint);
|
| 74 |
|
|
virtual jint convertYToRow(jint);
|
| 75 |
|
|
virtual void updateLayoutState();
|
| 76 |
|
|
virtual void maybeUpdateLayoutState();
|
| 77 |
|
|
public:
|
| 78 |
|
|
BasicListUI();
|
| 79 |
|
|
public: // actually protected
|
| 80 |
|
|
virtual void installDefaults();
|
| 81 |
|
|
virtual void uninstallDefaults();
|
| 82 |
|
|
virtual void installListeners();
|
| 83 |
|
|
virtual void uninstallListeners();
|
| 84 |
|
|
virtual void installKeyboardActions();
|
| 85 |
|
|
virtual void uninstallKeyboardActions();
|
| 86 |
|
|
public:
|
| 87 |
|
|
virtual void installUI(::javax::swing::JComponent *);
|
| 88 |
|
|
virtual void uninstallUI(::javax::swing::JComponent *);
|
| 89 |
|
|
virtual ::java::awt::Dimension * getPreferredSize(::javax::swing::JComponent *);
|
| 90 |
|
|
public: // actually protected
|
| 91 |
|
|
virtual void paintCell(::java::awt::Graphics *, jint, ::java::awt::Rectangle *, ::javax::swing::ListCellRenderer *, ::javax::swing::ListModel *, ::javax::swing::ListSelectionModel *, jint);
|
| 92 |
|
|
public:
|
| 93 |
|
|
virtual void paint(::java::awt::Graphics *, ::javax::swing::JComponent *);
|
| 94 |
|
|
virtual jint locationToIndex(::javax::swing::JList *, ::java::awt::Point *);
|
| 95 |
|
|
virtual ::java::awt::Point * indexToLocation(::javax::swing::JList *, jint);
|
| 96 |
|
|
public: // actually protected
|
| 97 |
|
|
virtual ::java::awt::event::FocusListener * createFocusListener();
|
| 98 |
|
|
virtual ::javax::swing::event::ListDataListener * createListDataListener();
|
| 99 |
|
|
virtual ::javax::swing::event::ListSelectionListener * createListSelectionListener();
|
| 100 |
|
|
virtual ::javax::swing::event::MouseInputListener * createMouseInputListener();
|
| 101 |
|
|
virtual ::java::beans::PropertyChangeListener * createPropertyChangeListener();
|
| 102 |
|
|
virtual void selectNextIndex();
|
| 103 |
|
|
virtual void selectPreviousIndex();
|
| 104 |
|
|
static const jint modelChanged = 1;
|
| 105 |
|
|
static const jint selectionModelChanged = 2;
|
| 106 |
|
|
static const jint fontChanged = 4;
|
| 107 |
|
|
static const jint fixedCellWidthChanged = 8;
|
| 108 |
|
|
static const jint fixedCellHeightChanged = 16;
|
| 109 |
|
|
static const jint prototypeCellValueChanged = 32;
|
| 110 |
|
|
static const jint cellRendererChanged = 64;
|
| 111 |
|
|
::java::awt::event::FocusListener * __attribute__((aligned(__alignof__( ::javax::swing::plaf::ListUI)))) focusListener;
|
| 112 |
|
|
::javax::swing::event::ListDataListener * listDataListener;
|
| 113 |
|
|
::javax::swing::event::ListSelectionListener * listSelectionListener;
|
| 114 |
|
|
::javax::swing::event::MouseInputListener * mouseInputListener;
|
| 115 |
|
|
::java::beans::PropertyChangeListener * propertyChangeListener;
|
| 116 |
|
|
::javax::swing::JList * list;
|
| 117 |
|
|
jint cellHeight;
|
| 118 |
|
|
jint cellWidth;
|
| 119 |
|
|
JArray< jint > * cellHeights;
|
| 120 |
|
|
jint updateLayoutStateNeeded;
|
| 121 |
|
|
::javax::swing::CellRendererPane * rendererPane;
|
| 122 |
|
|
public: // actually package-private
|
| 123 |
|
|
::javax::swing::plaf::basic::BasicListUI$ListAction * action;
|
| 124 |
|
|
public:
|
| 125 |
|
|
static ::java::lang::Class class$;
|
| 126 |
|
|
};
|
| 127 |
|
|
|
| 128 |
|
|
#endif // __javax_swing_plaf_basic_BasicListUI__
|