2 // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
4 #ifndef __javax_swing_JColorChooser__
5 #define __javax_swing_JColorChooser__
9 #include <javax/swing/JComponent.h>
10 #include <gcj/array.h>
28 namespace accessibility
30 class AccessibleContext
;
37 namespace colorchooser
39 class AbstractColorChooserPanel
;
40 class ColorSelectionModel
;
50 class javax::swing::JColorChooser
: public ::javax::swing::JComponent
55 JColorChooser(::java::awt::Color
*);
56 JColorChooser(::javax::swing::colorchooser::ColorSelectionModel
*);
57 virtual void setColor(::java::awt::Color
*);
58 virtual void setColor(jint
, jint
, jint
);
59 virtual void setColor(jint
);
60 static ::java::awt::Color
* showDialog(::java::awt::Component
*, ::java::lang::String
*, ::java::awt::Color
*);
61 public: // actually package-private
62 static void makeModal(::javax::swing::JDialog
*);
64 static ::java::awt::Component
* findParent(::java::awt::Component
*);
66 static ::javax::swing::JDialog
* createDialog(::java::awt::Component
*, ::java::lang::String
*, jboolean
, ::javax::swing::JColorChooser
*, ::java::awt::event::ActionListener
*, ::java::awt::event::ActionListener
*);
67 virtual ::javax::swing::plaf::ColorChooserUI
* getUI();
68 virtual void setUI(::javax::swing::plaf::ColorChooserUI
*);
69 virtual void updateUI();
70 virtual ::java::lang::String
* getUIClassID();
71 virtual ::java::awt::Color
* getColor();
72 virtual void setPreviewPanel(::javax::swing::JComponent
*);
73 virtual ::javax::swing::JComponent
* getPreviewPanel();
74 virtual void addChooserPanel(::javax::swing::colorchooser::AbstractColorChooserPanel
*);
75 virtual ::javax::swing::colorchooser::AbstractColorChooserPanel
* removeChooserPanel(::javax::swing::colorchooser::AbstractColorChooserPanel
*);
76 virtual void setChooserPanels(JArray
< ::javax::swing::colorchooser::AbstractColorChooserPanel
* > *);
77 virtual JArray
< ::javax::swing::colorchooser::AbstractColorChooserPanel
* > * getChooserPanels();
78 virtual ::javax::swing::colorchooser::ColorSelectionModel
* getSelectionModel();
79 virtual void setSelectionModel(::javax::swing::colorchooser::ColorSelectionModel
*);
80 virtual jboolean
getDragEnabled();
81 virtual void setDragEnabled(jboolean
);
82 public: // actually protected
83 virtual ::java::lang::String
* paramString();
85 virtual ::javax::accessibility::AccessibleContext
* getAccessibleContext();
87 static const jlong serialVersionUID
= 9168066781620640889LL;
88 ::javax::swing::colorchooser::ColorSelectionModel
* __attribute__((aligned(__alignof__( ::javax::swing::JComponent
)))) selectionModel
;
89 ::javax::swing::JComponent
* previewPanel
;
90 JArray
< ::javax::swing::colorchooser::AbstractColorChooserPanel
* > * chooserPanels
;
93 static ::java::lang::String
* SELECTION_MODEL_PROPERTY
;
94 static ::java::lang::String
* PREVIEW_PANEL_PROPERTY
;
95 static ::java::lang::String
* CHOOSER_PANELS_PROPERTY
;
96 public: // actually protected
97 ::javax::accessibility::AccessibleContext
* accessibleContext
;
99 static ::java::lang::Class
class$
;
102 #endif // __javax_swing_JColorChooser__