org.netbeans.modules.extexecution/2 1.25.1

org.netbeans.api.extexecution.print
Class ConvertedLine

java.lang.Object
  extended by org.netbeans.api.extexecution.print.ConvertedLine

public final class ConvertedLine
extends Object

Converted line prepared for output window. Wraps the line itself and corresponding listener (if any).


Method Summary
static ConvertedLine forText(String text, OutputListener listener)
          Returns the converted line presenting the given text and with the given listener registered when it is diplayed.
 OutputListener getListener()
          Returns the corresponding listener for actions taken on the line or null.
 String getText()
          Returns the text to display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forText

@NonNull
public static ConvertedLine forText(@NonNull
                                            String text,
                                            @NullAllowed
                                            OutputListener listener)
Returns the converted line presenting the given text and with the given listener registered when it is diplayed.

Parameters:
text - line text
listener - line listener to register, may be null
Returns:
converted line

getText

@NonNull
public String getText()
Returns the text to display.

Returns:
the text to display

getListener

@CheckForNull
public OutputListener getListener()
Returns the corresponding listener for actions taken on the line or null.

Returns:
the corresponding listener for actions taken on the line or null

org.netbeans.modules.extexecution/2 1.25.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.