|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
com.bbn.openmap.util.propertyEditor.ColorPropertyEditor
public class ColorPropertyEditor
A PropertyEditor that brings up a JFileChooser panel to select a file.
| Field Summary | |
|---|---|
protected int |
icon_height
|
protected int |
icon_width
|
static java.lang.String |
title
|
| Constructor Summary | |
|---|---|
ColorPropertyEditor()
Create FilePropertyEditor. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Implement ActionListener interface. |
java.lang.String |
getAsText()
Implement PropertyEditor interface. |
java.awt.Component |
getCustomEditor()
Returns a JButton that will bring up a JFileChooser dialog. |
javax.swing.ImageIcon |
getIconForPaint(java.awt.Paint paint,
boolean fill)
|
protected void |
setButtonForColor(java.awt.Color color)
|
void |
setValue(java.lang.Object someObj)
Implement PropertyEditor interface. |
boolean |
supportsCustomEditor()
PropertyEditor interface. |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getJavaInitializationString, getSource, getTags, getValue, isPaintable, paintValue, removePropertyChangeListener, setAsText, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String title
protected int icon_width
protected int icon_height
| Constructor Detail |
|---|
public ColorPropertyEditor()
| Method Detail |
|---|
public boolean supportsCustomEditor()
supportsCustomEditor in interface java.beans.PropertyEditorsupportsCustomEditor in class java.beans.PropertyEditorSupportpublic java.awt.Component getCustomEditor()
getCustomEditor in interface java.beans.PropertyEditorgetCustomEditor in class java.beans.PropertyEditorSupport
public javax.swing.ImageIcon getIconForPaint(java.awt.Paint paint,
boolean fill)
public void setValue(java.lang.Object someObj)
setValue in interface java.beans.PropertyEditorsetValue in class java.beans.PropertyEditorSupportprotected void setButtonForColor(java.awt.Color color)
public java.lang.String getAsText()
getAsText in interface java.beans.PropertyEditorgetAsText in class java.beans.PropertyEditorSupportpublic void actionPerformed(java.awt.event.ActionEvent e)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||