Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
TextPanel Class Reference
Inheritance diagram for TextPanel:

Public Member Functions

 TextPanel ()
 
 TextPanel (String title)
 
synchronized void setColumnHeadings (String labels)
 
String getColumnHeadings ()
 
void setFont (Font font)
 
void appendLine (String data)
 
void append (String data)
 
void adjustmentValueChanged (AdjustmentEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mouseMoved (MouseEvent e)
 
void mouseDragged (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 
void mouseClicked (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void addKeyListener (KeyListener listener)
 
void keyPressed (KeyEvent e)
 
void keyReleased (KeyEvent e)
 
void keyTyped (KeyEvent e)
 
void actionPerformed (ActionEvent e)
 
void lostOwnership (Clipboard clip, Transferable cont)
 
int copySelection ()
 
void clearSelection ()
 
void selectAll ()
 
void resetSelection ()
 
void save (PrintWriter pw)
 
void saveAs (String path)
 
void setTitle (String title)
 
int getLineCount ()
 
String getLine (int index)
 

Detailed Description

This is an unlimited size text panel with tab-delimited, labeled and resizable columns. It is based on the hGrid class at http://www.lynx.ch/contacts/~/thomasm/Grid/index.html.

Definition at line 19 of file TextPanel.java.

Constructor & Destructor Documentation

TextPanel ( )
inline

Constructs a new TextPanel.

Definition at line 50 of file TextPanel.java.

TextPanel ( String  title)
inline

Constructs a new TextPanel.

Definition at line 69 of file TextPanel.java.

Member Function Documentation

void addKeyListener ( KeyListener  listener)
inline

Unused keyPressed events will be passed to 'listener'.

Definition at line 288 of file TextPanel.java.

void append ( String  data)
inline

Adds one or more lines to the end of this TextPanel.

Definition at line 154 of file TextPanel.java.

void appendLine ( String  data)
inline

Adds a single line to the end of this TextPanel.

Definition at line 138 of file TextPanel.java.

void clearSelection ( )
inline

Deletes the selected lines.

Definition at line 404 of file TextPanel.java.

int copySelection ( )
inline

Copies the current selection to the system clipboard. Returns the number of characters copied.

Definition at line 382 of file TextPanel.java.

String getColumnHeadings ( )
inline

Returns the column headings as a tab-delimited string.

Definition at line 129 of file TextPanel.java.

String getLine ( int  index)
inline

Returns the number of lines of text in this TextPanel. The argument must be greater than or equal to zero and less than the value returned by getLineCount().

Definition at line 473 of file TextPanel.java.

int getLineCount ( )
inline

Returns the number of lines of text in this TextPanel.

Definition at line 466 of file TextPanel.java.

void resetSelection ( )
inline

Clears the selection, if any.

Definition at line 436 of file TextPanel.java.

void save ( PrintWriter  pw)
inline

Writes all the text in this TextPanel to a file.

Definition at line 446 of file TextPanel.java.

void saveAs ( String  path)
inline

Saves all the text in this TextPanel to a file. Set 'path' to "" to display a save as dialog.

Definition at line 458 of file TextPanel.java.

void selectAll ( )
inline

Selects all the lines in this TextPanel.

Definition at line 427 of file TextPanel.java.

synchronized void setColumnHeadings ( String  labels)
inline

Clears this TextPanel and sets the column headings to those in the tab-delimited 'headings' String. Set 'headings' to "" to use a single column with no headings.

Definition at line 102 of file TextPanel.java.


The documentation for this class was generated from the following file: