public class ResourcePropertyEditor extends Object implements org.pentaho.reporting.libraries.designtime.swing.propertyeditors.AdvancedPropertyEditor
Constructor and Description |
---|
ResourcePropertyEditor(ReportDocumentContext reportRenderContext)
Creates a ReportPropertyEditor while specifying a ReportRenderContext.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener) |
String |
getAsText()
Returns the current value as text.
|
Component |
getCustomEditor()
Returns the custom editor component for this property.
|
String |
getJavaInitializationString()
This property editor does not support java initialization string
|
String[] |
getTags()
Returns the valid set of tagged values for this property.
|
Object |
getValue()
Returns the value as a ResourceKey
|
boolean |
isPaintable()
This property editor does not support painting
|
void |
paintValue(Graphics gfx,
Rectangle box)
This property editor does not support painting
|
void |
removePropertyChangeListener(PropertyChangeListener listener) |
void |
setAsText(String text)
Sets the value as text
|
void |
setValue(Object newValue)
Sets the value - we need to handle all the possible datatypes that may be given to us.
|
boolean |
supportsCustomEditor()
Indicates if this property editor uses a customer editor (which it does)
|
boolean |
supportsText()
Indicates that this property editor can not be set as text since it it more complicated (it has to support linking
vs.
|
public ResourcePropertyEditor(ReportDocumentContext reportRenderContext)
reportRenderContext
- the current render context.public void setAsText(String text) throws IllegalArgumentException
setAsText
in interface PropertyEditor
IllegalArgumentException
public void setValue(Object newValue)
setValue
in interface PropertyEditor
public Object getValue()
getValue
in interface PropertyEditor
public boolean isPaintable()
isPaintable
in interface PropertyEditor
public void paintValue(Graphics gfx, Rectangle box)
paintValue
in interface PropertyEditor
public String getJavaInitializationString()
getJavaInitializationString
in interface PropertyEditor
public String getAsText()
getAsText
in interface PropertyEditor
public String[] getTags()
getTags
in interface PropertyEditor
public Component getCustomEditor()
getCustomEditor
in interface PropertyEditor
public boolean supportsCustomEditor()
supportsCustomEditor
in interface PropertyEditor
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface PropertyEditor
public void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface PropertyEditor
public boolean supportsText()
supportsText
in interface org.pentaho.reporting.libraries.designtime.swing.propertyeditors.AdvancedPropertyEditor