Class LinkedItemFormatter
- java.lang.Object
-
- net.sf.basedb.clients.web.formatter.LinkedItemFormatter
-
public class LinkedItemFormatter extends Object implements Formatter<Nameable>
Formatter implementation that generates a HTML output linking a nameable item. EDIT links are created by default.- Since:
- 3.12
- Author:
- nicklas
- See Also:
Base.getLinkedName(String, Nameable, boolean, boolean)
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
enableEditLink
-
Constructor Summary
Constructors Constructor Description LinkedItemFormatter()
LinkedItemFormatter(boolean enableEditLink)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(Nameable item)
Format a value by converting it to a string.Nameable
parseString(String value)
Parse a string and return a value of the correct type.
-
-
-
Method Detail
-
format
public String format(Nameable item)
Description copied from interface:Formatter
Format a value by converting it to a string.
-
parseString
public Nameable parseString(String value)
Description copied from interface:Formatter
Parse a string and return a value of the correct type. A null input string should (unless otherwise documented by a specific formatter implementation) be allowed and may return null or any other "default" value.- Specified by:
parseString
in interfaceFormatter<Nameable>
- Parameters:
value
- The string to parse- Returns:
- An object
-
-