DefaultFileStatus Class

com.bea.ide.sourceeditor
DefaultFileStatus Class

public class DefaultFileStatus

    extends Object
    implements IFileStatus

A simple object for setting line and column information displayed in the status bar.


Hierarchy
Object
  DefaultFileStatus
All Implemented Interfaces

IFileStatus

Constructor Summary

DefaultFileStatus(IDocument doc)

Creates the IFileStatus object for the specified document.
 

Method Summary

public int
getColumn()
Returns the current column number as displayed in the status bar.
public int
getLine()
Returns the current line number as displayed in the status bar.
public void
setLineAndColumn(int line, int column)
Sets the line and column information displayed in the status bar.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.ide.ui.statusbar.IFileStatus
getColumn, getLine, setLineAndColumn
 

Constructor Detail

DefaultFileStatus

public DefaultFileStatus(IDocument doc)
Creates the IFileStatus object for the specified document.
 

Method Detail

getColumn() Method

public int getColumn()
Returns the current column number as displayed in the status bar. It is almost always preferable to call ISourceView.getCaretPosition, and then convert that offset to line and column information via the ISourceModel interface, since the status bar UI is not necessarily in sync with the actual caret position within the document.

Returns

The current column number as displayed in the status bar.

getLine() Method

public int getLine()
Returns the current line number as displayed in the status bar. It is almost always preferable to call ISourceView.getCaretPosition, and then convert that offset to line and column information via the ISourceModel interface, since the status bar UI is not necessarily in sync with the actual caret position within the document.

Returns

The current line number as displayed in the status bar.

setLineAndColumn(int, int) Method

public void setLineAndColumn(int line, 
                             int column)
Sets the line and column information displayed in the status bar. It is never necessary to call this method directly if the DefaultSourceDocument and built-in ISourceView implementations are used.