|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.reporting.engine.classic.core.modules.misc.bsf.BSFScriptableLanguagesPropertyEditor
public class BSFScriptableLanguagesPropertyEditor
Todo: Document me!
Date: 30.06.2009 Time: 20:01:27
| Constructor Summary | |
|---|---|
BSFScriptableLanguagesPropertyEditor()
|
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register a listener for the PropertyChange event. |
String |
getAsText()
Gets the property value as text. |
Component |
getCustomEditor()
A PropertyEditor may choose to make available a full custom Component that edits its property value. |
String |
getJavaInitializationString()
Returns a fragment of Java code that can be used to set a property to match the editors current state. |
String[] |
getTags()
If the property value must be one of a set of known tagged values, then this method should return an array of the tags. |
Object |
getValue()
Gets the property value. |
boolean |
isPaintable()
Determines whether this property editor is paintable. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a listener for the PropertyChange event. |
void |
setAsText(String text)
Set the property value by parsing a given String. |
void |
setValue(Object value)
Set (or change) the object that is to be edited. |
boolean |
supportsCustomEditor()
Determines whether this property editor supports a custom editor. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BSFScriptableLanguagesPropertyEditor()
| Method Detail |
|---|
public void setValue(Object value)
setValue in interface PropertyEditorvalue - The new target object to be edited. Note that this
object should not be modified by the PropertyEditor, rather
the PropertyEditor should create a new object to hold any
modified value.public Object getValue()
getValue in interface PropertyEditorpublic boolean isPaintable()
isPaintable in interface PropertyEditor
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorgfx - Graphics object to paint into.box - Rectangle within graphics object into which we should paint.public String getJavaInitializationString()
2
new java.awt.Color(127,127,34)
java.awt.Color.orange
javax.swing.Box.createRigidArea(new
java.awt.Dimension(0, 5))
getJavaInitializationString in interface PropertyEditor;') to end the expression.public String getAsText()
getAsText in interface PropertyEditorReturns null if the value can't be expressed as an editable string.
If a non-null value is returned, then the PropertyEditor should be prepared to parse that string back in setAsText().
public void setAsText(String text)
throws IllegalArgumentException
setAsText in interface PropertyEditortext - The string to be parsed.
IllegalArgumentExceptionpublic String[] getTags()
getTags in interface PropertyEditorpublic Component getCustomEditor()
getCustomEditor in interface PropertyEditorpublic boolean supportsCustomEditor()
supportsCustomEditor in interface PropertyEditorpublic void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener in interface PropertyEditorlistener - An object to be invoked when a PropertyChange
event is fired.public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener in interface PropertyEditorlistener - The PropertyChange listener to be removed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||