public String | format(String formatString, FxPaths paths) Uses the given format string to create an URI for the given tree path items.
If more than one path is contained in the given parameter, the paths are joined with
a ',' character.
Supported placeholders are:
DEFAULT_ADMIN_CONTENT | final public static String DEFAULT_ADMIN_CONTENT(Code) | | |
DEFAULT_ADMIN_ITEM | final public static String DEFAULT_ADMIN_ITEM(Code) | | |
ContentLinkFormatter | protected ContentLinkFormatter()(Code) | | Protected c'tor to avoid instantiation
|
format | public String format(String formatString, FxPK pk)(Code) | | Uses the given format string to create a hyperlink for the given primary key.
Supported placeholders are:
%{pk} |
The primary key in "dot" notation. For example, new FxPK(42, 1)
results in "42.1" being substituted in the URI. |
%{id} |
The object ID. |
%{version} |
The object version. |
Parameters: formatString - the input format string. For example, "/content/%{id}.html" Parameters: pk - the content PK to be formatted the resulting hyperlink |
format | public String format(String formatString, FxPaths paths)(Code) | | Uses the given format string to create an URI for the given tree path items.
If more than one path is contained in the given parameter, the paths are joined with
a ',' character.
Supported placeholders are:
%{pk} |
The primary key in "dot" notation. For example, new FxPK(42, 1)
results in "42.1" being substituted in the URI. |
%{id} |
The object ID. |
%{version} |
The object version. |
%{nodeId} |
The tree node ID. |
%{caption} |
The item caption (will be URL-escaped). |
Parameters: formatString - the input format string. For example, "/content/%{id}.html" Parameters: paths - the tree paths to be formatted the resulting URI string |
|