public class IltLinkPortFunction extends IlvCSSFunction
IltLinkPortFunction
is a function to create or retrieve link
ports.
The function should be defined as follows:
linkPorts[0] : '@|linkPort("Top")'; linkPorts[1] : '@|linkPort("RightAboveMiddle", 1.0, 0.2, 1, 0, -1)'; linkPorts[2] : '@|linkPort("RightBelowMiddle", 1.0, 0.8, 1, 0, -1)';This definition creates a link port with the corresponding configuration. If a link port with the given name already exists, it is returned despite the value of the remaining arguments. The first argument is mandatory and is the name of the link port. The following arguments are optional:
1
=
right and -1
= left.
1
=
bottom and -1
= top.
Note: The function must be fully quoted in order to be parsed
correctly.
If the function argument is not valid or cannot be parsed, an
IllegalArgumentException
is thrown.
ANY, ANY_PROPERTIES, ANY_PSEUDOCLASSES
Constructor and Description |
---|
IltLinkPortFunction()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
call(Object[] args,
Class type,
ilog.views.util.css.IlvCSSModel model,
Object node,
Object target,
Object closure)
Called to execute the function.
|
String |
getDelimiters()
Returns the function parameter delimiter.
|
String |
getName()
Retrieves the name of the function.
|
boolean |
returnDelimitersAsToken()
If the delimiters are also returned as a token,
true is
returned. |
getDependencies, getImportance, getShortDescription
public String getName()
getName
in class IlvCSSFunction
public String getDelimiters()
getDelimiters
in class IlvCSSFunction
public boolean returnDelimitersAsToken()
true
is
returned.returnDelimitersAsToken
in class IlvCSSFunction
false
.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 list of arguments passed to the function.type
- The expected type of the object that will be returned by the
function.model
- The CSS model being used.node
- The current model object being called on.target
- The target object where the returned object will be applied.closure
- An object set by
IlvCSSBeans.setFunctionClosure(java.lang.Object)
Color
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.