public static class IlvGanttFunction.ActivityProperty extends IlvCSSFunction
ActivityProperty
implements an expression that can be used
in a style sheet to return the property of an IlvActivity
representation.ANY, ANY_PROPERTIES, ANY_PSEUDOCLASSES
Constructor and Description |
---|
ActivityProperty()
Builds a new
ActivityProperty CSS function. |
Modifier and Type | Method and Description |
---|---|
Object |
call(Object[] args,
Class type,
ilog.views.util.css.IlvCSSModel model,
Object node,
Object target,
Object closure)
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.
|
String |
getShortDescription()
Returns a short description of the function.
|
getDependencies, getImportance, returnDelimitersAsToken
public ActivityProperty()
ActivityProperty
CSS function.public String getName()
getName
in class IlvCSSFunction
public String getDelimiters()
Warning: css functions are processed inside an expression module which evaluates arithmetic operations before breaking the argument according to the delimiters. For example if "+" is a delimiter, the argument "3+1" will be evaluated to "4" instead of two arguments (3,1).
getDelimiters
in class IlvCSSFunction
null
or empty return value means there is no delimiter, so all the
parameters are returned as a single token.public Object call(Object[] args, Class type, ilog.views.util.css.IlvCSSModel model, Object node, Object target, Object closure)
call
in class IlvCSSFunction
args
- The parameters of the function.type
- The expected returned type, which may be null
.
It is wise
to return an object compatible with the expected type, or a
String.model
- The current model. Usually the model comes from
the engine, but there are some situations where it is a
new model.node
- The current node. This is the current model object
being called on. Inside a @# construct, node represents the
parent of the fake node indeed used to process the @#
construct, i.e. the real node of interest.target
- The current rendered object being called on.closure
- An object set by
IlvCSSBeans.setFunctionClosure(java.lang.Object)
public String getShortDescription()
IlvLocaleUtil.getCurrentLocale()
.getShortDescription
in class IlvCSSFunction
© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.