Class RTFControl
java.lang.Object
com.nomagic.magicreport.engine.rtf.node.RTFControl
- All Implemented Interfaces:
RTFNode,Serializable
Node represent RTF control. A control is a specially formatted command that RTF uses to mark printer control
codes and information that applications use to manage documents. A node name cannot be longer than 32
characters.
Note that a backslash begins each control word.
- Since:
- Jun 19, 2007
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Return a node name.Return a node parameter.intReturn a node parameter in integer value.voidSet a node name.voidsetParameter(String parameter) Set a node parameter.toString()Returns a string representation of the node.
-
Constructor Details
-
RTFControl
public RTFControl()
-
-
Method Details
-
getName
Return a node name.- Returns:
- the node name
-
setName
Set a node name.- Parameters:
name- the node name to set
-
getParameter
Return a node parameter.- Returns:
- the node parameter
-
setParameter
Set a node parameter.- Parameters:
parameter- the node parameter to set
-
getParameterValue
public int getParameterValue()Return a node parameter in integer value.- Returns:
- the node parameter in integer value.
- Throws:
NumberFormatException- if the parameter does not contain a integer.
-
toString
Returns a string representation of the node. this method returns a string equal to the value of:"Node Name: " + name + ", Parameter: " + parameter;
-