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, getShortDescriptionpublic String getName()
getName in class IlvCSSFunctionpublic String getDelimiters()
getDelimiters in class IlvCSSFunctionpublic boolean returnDelimitersAsToken()
true is
returned.returnDelimitersAsToken in class IlvCSSFunctionfalse.public Object call(Object[] args, Class type, ilog.views.util.css.IlvCSSModel model, Object node, Object target, Object closure)
call in class IlvCSSFunctionargs - 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 Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.