|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IlpCSSFunction
This interface defines functions used by the JTGO style sheets.
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";
}
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||