public class SwingEditorSupport
extends java.beans.PropertyEditorSupport
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
bean |
protected static java.awt.Insets |
BUTTON_MARGIN |
protected boolean |
canceled |
protected VisionDesignerInterface |
fpmi |
protected static java.awt.Dimension |
LARGE_DIMENSION |
protected static java.awt.Dimension |
MEDIUM_DIMENSION |
protected int |
modelColumn |
protected int |
modelRow |
protected javax.swing.JPanel |
panel
Component which holds the editor.
|
protected java.lang.String |
propertyName |
protected static java.awt.Dimension |
SMALL_DIMENSION |
protected javax.swing.table.TableModel |
tableModel |
protected static java.awt.Dimension |
TINY_DIMENSION |
Constructor and Description |
---|
SwingEditorSupport() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getBean() |
DesignerContext |
getContext() |
java.awt.Component |
getCustomEditor()
Returns the panel responsible for rendering the PropertyEditor.
|
VisionDesignerInterface |
getFPMIContext() |
java.lang.String |
getPropertyName() |
protected void |
init(java.beans.FeatureDescriptor descriptor) |
void |
init(VisionDesignerInterface fpmi,
java.beans.FeatureDescriptor descriptor,
java.lang.Object bean,
javax.swing.table.TableModel model,
int row,
int col)
For property editors that must be initialized with values from the property descriptor.
|
boolean |
isCanceled() |
protected void |
setAlignment(javax.swing.JComponent c) |
boolean |
supportsCustomEditor() |
protected javax.swing.JPanel panel
protected VisionDesignerInterface fpmi
protected java.lang.Object bean
protected java.lang.String propertyName
protected boolean canceled
protected javax.swing.table.TableModel tableModel
protected int modelRow
protected int modelColumn
protected static final java.awt.Dimension LARGE_DIMENSION
protected static final java.awt.Dimension MEDIUM_DIMENSION
protected static final java.awt.Dimension SMALL_DIMENSION
protected static final java.awt.Dimension TINY_DIMENSION
protected static final java.awt.Insets BUTTON_MARGIN
public java.awt.Component getCustomEditor()
getCustomEditor
in interface java.beans.PropertyEditor
getCustomEditor
in class java.beans.PropertyEditorSupport
public boolean supportsCustomEditor()
supportsCustomEditor
in interface java.beans.PropertyEditor
supportsCustomEditor
in class java.beans.PropertyEditorSupport
public DesignerContext getContext()
public VisionDesignerInterface getFPMIContext()
protected final void setAlignment(javax.swing.JComponent c)
public void init(VisionDesignerInterface fpmi, java.beans.FeatureDescriptor descriptor, java.lang.Object bean, javax.swing.table.TableModel model, int row, int col)
protected void init(java.beans.FeatureDescriptor descriptor)
public java.lang.Object getBean()
public java.lang.String getPropertyName()
public boolean isCanceled()