public interface IPropertyEditor extends IHandler
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXT_ATTRIBUTE_DHTML
True if browser supports DHTML(defaults to true).
|
static String |
CONTEXT_ATTRIBUTE_FORM
Form name.
|
static String |
CONTEXT_ATTRIBUTE_UNIQUE_ID
Random, unique script-safe ID [a-z,A-Z,0-9,_].
|
static String |
PARAMETER_DHTML
True if browser supports DHTML (defaults to true).
|
static String |
PARAMETER_DISABLED
True if field is disabled initially (defaults to false).
|
static String |
PARAMETER_FORM
Form name.
|
static String |
PARAMETER_NAMESPACE
Restful Form namespace
|
static String |
PARAMETER_ONCHANGE
JavaScript to execute when input value changes.
|
static String |
PARAMETER_READ_ONLY
True if field is read-only (defaults to false).
|
static String |
PARAMETER_STYLE
Picker CSS class (defaults to "medium").
|
static String |
PARAMETER_UNIQUE_ID
Random, unique script-safe ID [a-z,A-Z,0-9,_].
|
static String |
PARAMETER_VALIDATION_REGEXP
Client-side validation regular expression.
|
static String |
PARAMETER_VALIDATION_REGEXP_MSG
Message to display if the client-side validation regular expression does
not match exactly.
|
Modifier and Type | Method and Description |
---|---|
IPropertyEditorDescriptor |
getDescriptor(IContext context)
Descriptor for property-editor features.
|
void |
render(IContext context,
Writer out,
String name,
Object value,
Map<String,?> parameters)
Renders this property-editor with given name, value, and
property-editor-specific parameters.
|
getConfigElem, getHandlerBean, getName, getPerfToken, initialize, postInitialize, shutdown
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init
static final String CONTEXT_ATTRIBUTE_FORM
static final String CONTEXT_ATTRIBUTE_UNIQUE_ID
static final String CONTEXT_ATTRIBUTE_DHTML
static final String PARAMETER_FORM
static final String PARAMETER_UNIQUE_ID
static final String PARAMETER_DHTML
static final String PARAMETER_READ_ONLY
static final String PARAMETER_DISABLED
static final String PARAMETER_VALIDATION_REGEXP
static final String PARAMETER_VALIDATION_REGEXP_MSG
static final String PARAMETER_STYLE
static final String PARAMETER_ONCHANGE
static final String PARAMETER_NAMESPACE
void render(IContext context, Writer out, String name, Object value, Map<String,?> parameters) throws IllegalPropertyEditorNameException, IllegalPropertyEditorParameterException, DHTMLRequiredByPropertyEditorException, PortalException, IOException
context
- Portal context.out
- Rendering output stream.name
- Form field name.value
- Default value. May be null.parameters
- Property-editor-specific parameters. Never null.IllegalPropertyEditorNameException
IllegalPropertyEditorParameterException
DHTMLRequiredByPropertyEditorException
PortalException
IOException
IPropertyEditorDescriptor getDescriptor(IContext context) throws PortalException
PortalException