hudson.console
Class ExpandableDetailsNote
java.lang.Object
hudson.console.ConsoleNote
hudson.console.ExpandableDetailsNote
- All Implemented Interfaces:
- ExtensionPoint, Describable, Serializable
public class ExpandableDetailsNote
- extends ConsoleNote
Renders a button that can be clicked to reveal additional block tag (and HTML inside it.)
Useful if you want the user to be able to see additional details.
- Since:
- 1.395
- Author:
- Kohsuke Kawaguchi
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpandableDetailsNote
public ExpandableDetailsNote(String caption,
String html)
annotate
public ConsoleAnnotator annotate(Object context,
MarkupText text,
int charPos)
- Description copied from class:
ConsoleNote
- When the line of a console output that this annotation is attached is read by someone,
a new
ConsoleNote
is de-serialized and this method is invoked to annotate that line.
- Specified by:
annotate
in class ConsoleNote
- Parameters:
context
- The object that owns the console output in question.text
- Represents a line of the console output being annotated.charPos
- The character position in 'text' where this annotation is attached.
- Returns:
- if non-null value is returned, this annotator will handle the next line.
this mechanism can be used to annotate multiple lines starting at the annotated position.
encodeTo
public static String encodeTo(String buttonCaption,
String html)
Copyright © 2004-2013. All Rights Reserved.