| 1 |
759 |
jeremybenn |
|
| 2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
| 3 |
|
|
|
| 4 |
|
|
#ifndef __javax_swing_tree_DefaultTreeSelectionModel__
|
| 5 |
|
|
#define __javax_swing_tree_DefaultTreeSelectionModel__
|
| 6 |
|
|
|
| 7 |
|
|
#pragma interface
|
| 8 |
|
|
|
| 9 |
|
|
#include <java/lang/Object.h>
|
| 10 |
|
|
#include <gcj/array.h>
|
| 11 |
|
|
|
| 12 |
|
|
extern "Java"
|
| 13 |
|
|
{
|
| 14 |
|
|
namespace java
|
| 15 |
|
|
{
|
| 16 |
|
|
namespace beans
|
| 17 |
|
|
{
|
| 18 |
|
|
class PropertyChangeListener;
|
| 19 |
|
|
}
|
| 20 |
|
|
}
|
| 21 |
|
|
namespace javax
|
| 22 |
|
|
{
|
| 23 |
|
|
namespace swing
|
| 24 |
|
|
{
|
| 25 |
|
|
class DefaultListSelectionModel;
|
| 26 |
|
|
namespace event
|
| 27 |
|
|
{
|
| 28 |
|
|
class EventListenerList;
|
| 29 |
|
|
class SwingPropertyChangeSupport;
|
| 30 |
|
|
class TreeSelectionEvent;
|
| 31 |
|
|
class TreeSelectionListener;
|
| 32 |
|
|
}
|
| 33 |
|
|
namespace tree
|
| 34 |
|
|
{
|
| 35 |
|
|
class DefaultTreeSelectionModel;
|
| 36 |
|
|
class RowMapper;
|
| 37 |
|
|
class TreePath;
|
| 38 |
|
|
}
|
| 39 |
|
|
}
|
| 40 |
|
|
}
|
| 41 |
|
|
}
|
| 42 |
|
|
|
| 43 |
|
|
class javax::swing::tree::DefaultTreeSelectionModel : public ::java::lang::Object
|
| 44 |
|
|
{
|
| 45 |
|
|
|
| 46 |
|
|
public:
|
| 47 |
|
|
DefaultTreeSelectionModel();
|
| 48 |
|
|
virtual ::java::lang::Object * clone();
|
| 49 |
|
|
virtual ::java::lang::String * toString();
|
| 50 |
|
|
private:
|
| 51 |
|
|
void writeObject(::java::io::ObjectOutputStream *);
|
| 52 |
|
|
void readObject(::java::io::ObjectInputStream *);
|
| 53 |
|
|
public:
|
| 54 |
|
|
virtual void setRowMapper(::javax::swing::tree::RowMapper *);
|
| 55 |
|
|
virtual ::javax::swing::tree::RowMapper * getRowMapper();
|
| 56 |
|
|
virtual void setSelectionMode(jint);
|
| 57 |
|
|
virtual jint getSelectionMode();
|
| 58 |
|
|
virtual void setSelectionPath(::javax::swing::tree::TreePath *);
|
| 59 |
|
|
public: // actually package-private
|
| 60 |
|
|
virtual jint getRow(::javax::swing::tree::TreePath *);
|
| 61 |
|
|
public:
|
| 62 |
|
|
virtual void setSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
|
| 63 |
|
|
virtual void addSelectionPath(::javax::swing::tree::TreePath *);
|
| 64 |
|
|
virtual void addSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
|
| 65 |
|
|
virtual void removeSelectionPath(::javax::swing::tree::TreePath *);
|
| 66 |
|
|
virtual void removeSelectionPaths(JArray< ::javax::swing::tree::TreePath * > *);
|
| 67 |
|
|
virtual ::javax::swing::tree::TreePath * getSelectionPath();
|
| 68 |
|
|
virtual JArray< ::javax::swing::tree::TreePath * > * getSelectionPaths();
|
| 69 |
|
|
virtual jint getSelectionCount();
|
| 70 |
|
|
virtual jboolean isPathSelected(::javax::swing::tree::TreePath *);
|
| 71 |
|
|
virtual jboolean isSelectionEmpty();
|
| 72 |
|
|
virtual void clearSelection();
|
| 73 |
|
|
virtual void addTreeSelectionListener(::javax::swing::event::TreeSelectionListener *);
|
| 74 |
|
|
virtual void removeTreeSelectionListener(::javax::swing::event::TreeSelectionListener *);
|
| 75 |
|
|
virtual JArray< ::javax::swing::event::TreeSelectionListener * > * getTreeSelectionListeners();
|
| 76 |
|
|
public: // actually protected
|
| 77 |
|
|
virtual void fireValueChanged(::javax::swing::event::TreeSelectionEvent *);
|
| 78 |
|
|
public:
|
| 79 |
|
|
virtual JArray< ::java::util::EventListener * > * getListeners(::java::lang::Class *);
|
| 80 |
|
|
virtual JArray< jint > * getSelectionRows();
|
| 81 |
|
|
virtual jint getMinSelectionRow();
|
| 82 |
|
|
virtual jint getMaxSelectionRow();
|
| 83 |
|
|
virtual jboolean isRowSelected(jint);
|
| 84 |
|
|
virtual void resetRowSelection();
|
| 85 |
|
|
virtual jint getLeadSelectionRow();
|
| 86 |
|
|
virtual ::javax::swing::tree::TreePath * getLeadSelectionPath();
|
| 87 |
|
|
virtual void addPropertyChangeListener(::java::beans::PropertyChangeListener *);
|
| 88 |
|
|
virtual void removePropertyChangeListener(::java::beans::PropertyChangeListener *);
|
| 89 |
|
|
virtual JArray< ::java::beans::PropertyChangeListener * > * getPropertyChangeListeners();
|
| 90 |
|
|
public: // actually protected
|
| 91 |
|
|
virtual void insureRowContinuity();
|
| 92 |
|
|
virtual jboolean arePathsContiguous(JArray< ::javax::swing::tree::TreePath * > *);
|
| 93 |
|
|
virtual jboolean canPathsBeAdded(JArray< ::javax::swing::tree::TreePath * > *);
|
| 94 |
|
|
virtual jboolean canPathsBeRemoved(JArray< ::javax::swing::tree::TreePath * > *);
|
| 95 |
|
|
virtual void notifyPathChange(::java::util::Vector *, ::javax::swing::tree::TreePath *);
|
| 96 |
|
|
virtual void updateLeadIndex();
|
| 97 |
|
|
virtual void insureUniqueness();
|
| 98 |
|
|
public: // actually package-private
|
| 99 |
|
|
static const jlong serialVersionUID = 3288129636638950196LL;
|
| 100 |
|
|
public:
|
| 101 |
|
|
static ::java::lang::String * SELECTION_MODE_PROPERTY;
|
| 102 |
|
|
public: // actually protected
|
| 103 |
|
|
::javax::swing::event::SwingPropertyChangeSupport * __attribute__((aligned(__alignof__( ::java::lang::Object)))) changeSupport;
|
| 104 |
|
|
JArray< ::javax::swing::tree::TreePath * > * selection;
|
| 105 |
|
|
::javax::swing::event::EventListenerList * listenerList;
|
| 106 |
|
|
::javax::swing::tree::RowMapper * rowMapper;
|
| 107 |
|
|
::javax::swing::DefaultListSelectionModel * listSelectionModel;
|
| 108 |
|
|
jint selectionMode;
|
| 109 |
|
|
::javax::swing::tree::TreePath * leadPath;
|
| 110 |
|
|
jint leadIndex;
|
| 111 |
|
|
jint leadRow;
|
| 112 |
|
|
private:
|
| 113 |
|
|
::java::util::HashSet * selectedPaths;
|
| 114 |
|
|
::java::util::HashSet * tmpPaths;
|
| 115 |
|
|
public:
|
| 116 |
|
|
static ::java::lang::Class class$;
|
| 117 |
|
|
};
|
| 118 |
|
|
|
| 119 |
|
|
#endif // __javax_swing_tree_DefaultTreeSelectionModel__
|