Class ResourcePropertyEditor
- java.lang.Object
-
- org.pentaho.reporting.designer.core.util.table.ResourcePropertyEditor
-
- All Implemented Interfaces:
PropertyEditor
,org.pentaho.reporting.libraries.designtime.swing.propertyeditors.AdvancedPropertyEditor
public class ResourcePropertyEditor extends Object implements org.pentaho.reporting.libraries.designtime.swing.propertyeditors.AdvancedPropertyEditor
Property editor for resource properties.- Author:
- Thomas Morgner, David Kincade
-
-
Constructor Summary
Constructors Constructor Description ResourcePropertyEditor(ReportDocumentContext reportRenderContext)
Creates a ReportPropertyEditor while specifying a ReportRenderContext.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 stringString[]
getTags()
Returns the valid set of tagged values for this property.Object
getValue()
Returns the value as a ResourceKeyboolean
isPaintable()
This property editor does not support paintingvoid
paintValue(Graphics gfx, Rectangle box)
This property editor does not support paintingvoid
removePropertyChangeListener(PropertyChangeListener listener)
void
setAsText(String text)
Sets the value as textvoid
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.
-
-
-
Constructor Detail
-
ResourcePropertyEditor
public ResourcePropertyEditor(ReportDocumentContext reportRenderContext)
Creates a ReportPropertyEditor while specifying a ReportRenderContext.- Parameters:
reportRenderContext
- the current render context.
-
-
Method Detail
-
setAsText
public void setAsText(String text) throws IllegalArgumentException
Sets the value as text- Specified by:
setAsText
in interfacePropertyEditor
- Throws:
IllegalArgumentException
-
setValue
public void setValue(Object newValue)
Sets the value - we need to handle all the possible datatypes that may be given to us.- Specified by:
setValue
in interfacePropertyEditor
-
getValue
public Object getValue()
Returns the value as a ResourceKey- Specified by:
getValue
in interfacePropertyEditor
-
isPaintable
public boolean isPaintable()
This property editor does not support painting- Specified by:
isPaintable
in interfacePropertyEditor
-
paintValue
public void paintValue(Graphics gfx, Rectangle box)
This property editor does not support painting- Specified by:
paintValue
in interfacePropertyEditor
-
getJavaInitializationString
public String getJavaInitializationString()
This property editor does not support java initialization string- Specified by:
getJavaInitializationString
in interfacePropertyEditor
-
getAsText
public String getAsText()
Returns the current value as text. If a value exists, check if it is embedded or linked. If it is linked, the identifier is fine. Otherwise we should specify the location where the embedded resource came from.- Specified by:
getAsText
in interfacePropertyEditor
-
getTags
public String[] getTags()
Returns the valid set of tagged values for this property. This is not supported.- Specified by:
getTags
in interfacePropertyEditor
-
getCustomEditor
public Component getCustomEditor()
Returns the custom editor component for this property.- Specified by:
getCustomEditor
in interfacePropertyEditor
-
supportsCustomEditor
public boolean supportsCustomEditor()
Indicates if this property editor uses a customer editor (which it does)- Specified by:
supportsCustomEditor
in interfacePropertyEditor
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
- Specified by:
addPropertyChangeListener
in interfacePropertyEditor
-
removePropertyChangeListener
public void removePropertyChangeListener(PropertyChangeListener listener)
- Specified by:
removePropertyChangeListener
in interfacePropertyEditor
-
supportsText
public boolean supportsText()
Indicates that this property editor can not be set as text since it it more complicated (it has to support linking vs. embedding.- Specified by:
supportsText
in interfaceorg.pentaho.reporting.libraries.designtime.swing.propertyeditors.AdvancedPropertyEditor
-
-