01: /*
02: * Copyright (C) 2005 Jeff Tassin
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 2.1 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */
18:
19: package com.jeta.swingbuilder.gui.properties;
20:
21: import java.awt.Component;
22: import java.beans.PropertyEditorSupport;
23:
24: /**
25: * @author Jeff Tassin
26: */
27: public abstract class JETAPropertyEditor extends PropertyEditorSupport {
28: /**
29: * Invokes a dialog used to update the property
30: *
31: * @param view
32: * the component that invokes the dialog. This is mainly used to
33: * set the parent of the dialog.
34: */
35: public void invokePropertyDialog(Component view) {
36: // no op
37: }
38:
39: /**
40: * @return true if this editor supports custom editing inline in the
41: * property table. Property types such as the Java primitives and
42: * Strings support inline editing.
43: */
44: public boolean supportsInlineEditing() {
45: return false;
46: }
47:
48: /**
49: * Determines whether this class renders itself using the
50: * paintValue(Graphics g, Rectangle rect) method. Generally, editors that
51: * are not JComponents are paintable.
52: */
53: public boolean isPaintable() {
54: return false;
55: }
56:
57: public String getJavaInitializationString() {
58: return "";
59: }
60:
61: }
|