public interface IlpCSSFunction extends Serializable
An implemented function must be registered before it can be used.
Functions can be registered in your component directly in the style sheets, for instance:
StyleSheet {
functionList : "myPackage.RevertFunction,tests.RandomFunction";
}
or
StyleSheet {
functions[0]: "myPackage.RevertFunction";
functions[1]: "tests.RandomFunction";
}
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object[] args,
Class<?> type,
IlpContext appc,
IlpGraphicView view,
IlpRepresentationObject ro,
IlpAttribute attribute)
Calls the function.
|
String |
getDelimiters()
Returns the delimiters of the function parameters.
|
String |
getName()
Returns the name of the function that will be known in the
style sheet.
|
boolean |
returnDelimitersAsToken()
Returns
true if the delimiters are also returned as token. |
String getName()
String getDelimiters()
null
or empty return value means there is no delimiter, so all the
parameters are returned as a single token.boolean returnDelimitersAsToken()
true if the delimiters are also returned as token.true means the delimiters are returned as token;
false means the delimiters are discarded (default).Object call(Object[] args, Class<?> type, IlpContext appc, IlpGraphicView view, IlpRepresentationObject ro, IlpAttribute attribute)
args - The parameters of the functions.type - The expected type to be returned. It can be null.appc - The application context.view - The graphic view.ro - The current representation object.attribute - The business attribute.String.© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.