|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ repere overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.fudaa.ebli.repere
Class BTransformationReperePropertyEditor

java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
org.fudaa.ebli.repere.BTransformationReperePropertyEditor
- All Implemented Interfaces:
- java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyEditor, java.io.Serializable
- public class BTransformationReperePropertyEditor
- extends javax.swing.JComponent
- implements java.beans.PropertyEditor
- extends javax.swing.JComponent
Un editeur de TransformationRepere.
- Version:
- $Revision: 1.5 $ $Date: 2001/09/11 15:29:21 $ by $Author: deniger $
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
private java.beans.PropertyChangeSupport |
changeListeners
|
private BTransformationRepere |
objet_
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
BTransformationReperePropertyEditor()
|
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a property change listener to this PropertyEditor. |
protected void |
firePropertyChange(java.lang.String _dsc,
java.lang.Object _avant,
java.lang.Object _apres)
Report a change in a bound property to any registered property listeners. |
java.lang.String |
getAsText()
Get the value of this property in String format. |
java.awt.Component |
getCustomEditor()
The RAD tool calls this to grab the component that can edit this type. |
java.lang.String |
getJavaInitializationString()
Get a Java language-specific String which could be used to create an Object of the specified type. |
java.lang.String[] |
getTags()
Get a list of possible Strings which this property type can have. |
java.lang.Object |
getValue()
Accessor method to get the current value the PropertyEditor is working with. |
boolean |
isPaintable()
The RAD tool calls this to find out whether the PropertyEditor can paint itself. |
void |
paintValue(java.awt.Graphics _gfx,
java.awt.Rectangle _box)
The RAD tool calls this to paint the actual value of the property. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a property change listener from this PropertyEditor. |
void |
setAsText(java.lang.String _texte)
Set the value of this property using a String. |
void |
setValue(java.lang.Object _value)
Called by the RAD tool to set the value of this property for the PropertyEditor. |
boolean |
supportsCustomEditor()
The RAD tool calls this to find out whether the PropertyEditor supports a custom component to edit and display itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
objet_
private BTransformationRepere objet_
changeListeners
private java.beans.PropertyChangeSupport changeListeners
| Constructor Detail |
BTransformationReperePropertyEditor
public BTransformationReperePropertyEditor()
| Method Detail |
setValue
public void setValue(java.lang.Object _value)
- Description copied from interface:
java.beans.PropertyEditor - Called by the RAD tool to set the value of this property for the PropertyEditor.
If the property type is native, it should be wrapped in the appropriate
wrapper type.
- Specified by:
setValuein interfacejava.beans.PropertyEditor
getValue
public java.lang.Object getValue()
- Description copied from interface:
java.beans.PropertyEditor - Accessor method to get the current value the PropertyEditor is working with.
If the property type is native, it will be wrapped in the appropriate
wrapper type.
- Specified by:
getValuein interfacejava.beans.PropertyEditor
isPaintable
public boolean isPaintable()
- Description copied from interface:
java.beans.PropertyEditor - The RAD tool calls this to find out whether the PropertyEditor can paint itself.
- Specified by:
isPaintablein interfacejava.beans.PropertyEditor
paintValue
public void paintValue(java.awt.Graphics _gfx, java.awt.Rectangle _box)
- Description copied from interface:
java.beans.PropertyEditor - The RAD tool calls this to paint the actual value of the property.
The Graphics context will have the same current font, color, etc. as the
parent Container. You may safely change the font, color, etc. and not
change them back.
This method should do a silent no-op if isPaintable() is false.
- Specified by:
paintValuein interfacejava.beans.PropertyEditor
getJavaInitializationString
public java.lang.String getJavaInitializationString()
- Description copied from interface:
java.beans.PropertyEditor - Get a Java language-specific String which could be used to create an Object
of the specified type. Every PropertyEditor must support this.
The reason for this is that while most RAD tools will serialize the Beans and deserialize them at runtime, some RAD tools will generate code that creates the Beans. Examples of Java initialization strings would be:
2"I am a String"new MyObject(2, "String", new StringBuffer())
- Specified by:
getJavaInitializationStringin interfacejava.beans.PropertyEditor
getAsText
public java.lang.String getAsText()
- Description copied from interface:
java.beans.PropertyEditor - Get the value of this property in String format.
Many times this can simply use Object.toString().
Return null if you do not support getAsText()/setAsText().
setAsText(getAsText())should be valid; i.e. the stuff you spit out in getAsText() should be able to go into setAsText().- Specified by:
getAsTextin interfacejava.beans.PropertyEditor
setAsText
public void setAsText(java.lang.String _texte) throws java.lang.IllegalArgumentException
- Description copied from interface:
java.beans.PropertyEditor - Set the value of this property using a String.
Whether or not this PropertyEditor is editing a String type, this converts
the String into the type of the PropertyEditor.
- Specified by:
setAsTextin interfacejava.beans.PropertyEditor
getTags
public java.lang.String[] getTags()
- Description copied from interface:
java.beans.PropertyEditor - Get a list of possible Strings which this property type can have.
The value of these will be used by the RAD tool to construct some sort
of list box or to check text box input, and the resulting String passed
to setAsText() should be one of these. Note, however, that like most things
with this mammoth, unwieldy interface, this is not guaranteed. Thus, you
must check the value in setAsText() anyway.
- Specified by:
getTagsin interfacejava.beans.PropertyEditor
getCustomEditor
public java.awt.Component getCustomEditor()
- Description copied from interface:
java.beans.PropertyEditor - The RAD tool calls this to grab the component that can edit this type.
The component may be painted anywhere the RAD tool wants to paint it--
even in its own window.
The component must hook up with the PropertyEditor and, whenever a change to the value is made, fire a PropertyChangeEvent to the source.
- Specified by:
getCustomEditorin interfacejava.beans.PropertyEditor
supportsCustomEditor
public boolean supportsCustomEditor()
- Description copied from interface:
java.beans.PropertyEditor - The RAD tool calls this to find out whether the PropertyEditor supports a custom component to edit and display itself.
- Specified by:
supportsCustomEditorin interfacejava.beans.PropertyEditor
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
- Description copied from interface:
java.beans.PropertyEditor - Adds a property change listener to this PropertyEditor.
- Specified by:
addPropertyChangeListenerin interfacejava.beans.PropertyEditor
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
- Description copied from interface:
java.beans.PropertyEditor - Removes a property change listener from this PropertyEditor.
- Specified by:
removePropertyChangeListenerin interfacejava.beans.PropertyEditor
firePropertyChange
protected void firePropertyChange(java.lang.String _dsc, java.lang.Object _avant, java.lang.Object _apres)
- Description copied from class:
java.awt.Component - Report a change in a bound property to any registered property listeners.
|
|||||||||
| Home >> All >> org >> fudaa >> ebli >> [ repere overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC