com::cosylab::gui::components::r2::SmartTextArea Class Reference

Collaboration diagram for com::cosylab::gui::components::r2::SmartTextArea:
Collaboration graph
[legend]

List of all members.

Classes

class  IvjEventHandler

Public Member Functions

 SmartTextArea ()
 SmartTextArea (int rows, int columns)
 SmartTextArea (String text)
 SmartTextArea (String text, int rows, int columns)
 SmartTextArea (javax.swing.text.Document doc)
 SmartTextArea (javax.swing.text.Document doc, String text, int rows, int columns)
void append (String text)
javax.swing.JFileChooser getFileChooser ()
int getMaxLines ()
javax.swing.JPopupMenu getPopup ()
void insert (String text, int pos)
boolean isAuto_cut ()
boolean isAuto_scroll ()
void saveTextToFile ()
void setAuto_cut (boolean newAuto_cut)
void setAuto_scroll (boolean newAuto_scroll)
void setFileChooser (javax.swing.JFileChooser newFileChooser)
void setMaxLines (int newMax_no_lines)
synchronized void showPopup (java.awt.event.MouseEvent mouseEvent)
void textInserted ()

Static Public Member Functions

static void main (java.lang.String[] args)

Package Attributes

IvjEventHandler ivjEventHandler = new IvjEventHandler()

Private Member Functions

void connEtoC1 (java.awt.event.MouseEvent arg1)
void connEtoC2 (java.awt.event.ActionEvent arg1)
javax.swing.JMenuItem getJMenuItem1 ()
void handleException (java.lang.Throwable exception)
void initConnections () throws java.lang.Exception
void initialize ()

Private Attributes

int max_no_lines = 500
boolean auto_scroll = true
boolean auto_cut = true
javax.swing.JFileChooser fileChooser = null
boolean popupInitialized = false
javax.swing.JMenuItem ivjJMenuItem1 = null
javax.swing.JPopupMenu ivjJPopupMenu1 = null

Detailed Description

Creation date: (23.10.2001 19:46:12)

Author:
:

Constructor & Destructor Documentation

com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea (  )  [inline]

SmartTextArea constructor comment.

References initialize().

Referenced by main().

com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea ( int  rows,
int  columns 
) [inline]

SmartTextArea constructor comment.

Parameters:
rows int
columns int
com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea ( String  text  )  [inline]

SmartTextArea constructor comment.

Parameters:
text java.lang.String
com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea ( String  text,
int  rows,
int  columns 
) [inline]

SmartTextArea constructor comment.

Parameters:
text java.lang.String
rows int
columns int
com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea ( javax.swing.text.Document  doc  )  [inline]

SmartTextArea constructor comment.

Parameters:
doc javax.swing.text.Document
com::cosylab::gui::components::r2::SmartTextArea::SmartTextArea ( javax.swing.text.Document  doc,
String  text,
int  rows,
int  columns 
) [inline]

SmartTextArea constructor comment.

Parameters:
doc javax.swing.text.Document
text java.lang.String
rows int
columns int

Member Function Documentation

void com::cosylab::gui::components::r2::SmartTextArea::append ( String  text  )  [inline]

Creation date: (23.10.2001 21:38:33)

Parameters:
text java.lang.String

References textInserted().

Referenced by main(), and com::cosylab::logging::LoggingClient::reportStatus().

void com::cosylab::gui::components::r2::SmartTextArea::connEtoC1 ( java.awt.event.MouseEvent  arg1  )  [inline, private]

connEtoC1: (SmartTextArea.mouse.mouseClicked(java.awt.event.MouseEvent) --> SmartTextArea.showPopup(Ljava.awt.event.MouseEvent;)V)

Parameters:
arg1 java.awt.event.MouseEvent

References handleException(), and showPopup().

Referenced by com::cosylab::gui::components::r2::SmartTextArea::IvjEventHandler::mouseClicked().

void com::cosylab::gui::components::r2::SmartTextArea::connEtoC2 ( java.awt.event.ActionEvent  arg1  )  [inline, private]

connEtoC2: (JMenuItem1.action.actionPerformed(java.awt.event.ActionEvent) --> SmartTextArea.saveTextToFile()V)

Parameters:
arg1 java.awt.event.ActionEvent

References handleException(), and saveTextToFile().

Referenced by com::cosylab::gui::components::r2::SmartTextArea::IvjEventHandler::actionPerformed().

javax.swing.JFileChooser com::cosylab::gui::components::r2::SmartTextArea::getFileChooser (  )  [inline]

Insert the method's description here. Creation date: (1.2.2002 16:35:09)

Returns:
javax.swing.JFileChooser

References fileChooser.

Referenced by saveTextToFile().

javax.swing.JMenuItem com::cosylab::gui::components::r2::SmartTextArea::getJMenuItem1 (  )  [inline, private]

Return the JMenuItem1 property value.

Returns:
javax.swing.JMenuItem

References handleException(), and ivjJMenuItem1.

Referenced by getPopup(), and initConnections().

int com::cosylab::gui::components::r2::SmartTextArea::getMaxLines (  )  [inline]

Creation date: (23.10.2001 19:58:56)

Returns:
int

References max_no_lines.

javax.swing.JPopupMenu com::cosylab::gui::components::r2::SmartTextArea::getPopup (  )  [inline]

References getJMenuItem1(), handleException(), and ivjJPopupMenu1.

Referenced by showPopup().

void com::cosylab::gui::components::r2::SmartTextArea::handleException ( java.lang.Throwable  exception  )  [inline, private]

Called whenever the part throws an exception.

Parameters:
exception java.lang.Throwable

Referenced by connEtoC1(), connEtoC2(), getJMenuItem1(), getPopup(), initialize(), and textInserted().

void com::cosylab::gui::components::r2::SmartTextArea::initConnections (  )  throws java.lang.Exception [inline, private]

Initializes connections

Exceptions:
java.lang.Exception The exception description.

References getJMenuItem1(), and ivjEventHandler.

Referenced by initialize().

void com::cosylab::gui::components::r2::SmartTextArea::initialize (  )  [inline, private]

Initialize the class.

References handleException(), and initConnections().

Referenced by SmartTextArea().

void com::cosylab::gui::components::r2::SmartTextArea::insert ( String  text,
int  pos 
) [inline]

Creation date: (23.10.2001 21:41:28)

Parameters:
text java.lang.String
pos int

References textInserted().

boolean com::cosylab::gui::components::r2::SmartTextArea::isAuto_cut (  )  [inline]

Creation date: (23.10.2001 19:58:56)

Returns:
boolean

References auto_cut.

boolean com::cosylab::gui::components::r2::SmartTextArea::isAuto_scroll (  )  [inline]

Creation date: (23.10.2001 19:58:56)

Returns:
boolean

References auto_scroll.

static void com::cosylab::gui::components::r2::SmartTextArea::main ( java.lang.String[]  args  )  [inline, static]

main entrypoint - starts the part when it is run as an application

Parameters:
args java.lang.String[]

References append(), and SmartTextArea().

void com::cosylab::gui::components::r2::SmartTextArea::saveTextToFile (  )  [inline]

Comment

References getFileChooser().

Referenced by connEtoC2().

void com::cosylab::gui::components::r2::SmartTextArea::setAuto_cut ( boolean  newAuto_cut  )  [inline]

Creation date: (23.10.2001 19:58:56)

Parameters:
newAuto_cut boolean

References auto_cut.

void com::cosylab::gui::components::r2::SmartTextArea::setAuto_scroll ( boolean  newAuto_scroll  )  [inline]

Creation date: (23.10.2001 19:58:56)

Parameters:
newAuto_scroll boolean

References auto_scroll.

void com::cosylab::gui::components::r2::SmartTextArea::setFileChooser ( javax.swing.JFileChooser  newFileChooser  )  [inline]

Insert the method's description here. Creation date: (1.2.2002 16:35:09)

Parameters:
newFileChooser javax.swing.JFileChooser

References fileChooser.

void com::cosylab::gui::components::r2::SmartTextArea::setMaxLines ( int  newMax_no_lines  )  [inline]

Creation date: (23.10.2001 19:58:56)

Parameters:
newMax_no_lines int

References max_no_lines.

synchronized void com::cosylab::gui::components::r2::SmartTextArea::showPopup ( java.awt.event.MouseEvent  mouseEvent  )  [inline]

Comment

References getPopup(), and popupInitialized.

Referenced by connEtoC1().

void com::cosylab::gui::components::r2::SmartTextArea::textInserted (  )  [inline]

Method should be called when text was inserted

References auto_cut, auto_scroll, handleException(), and max_no_lines.

Referenced by append(), and insert().


Member Data Documentation

javax.swing.JFileChooser com::cosylab::gui::components::r2::SmartTextArea::fileChooser = null [private]

Referenced by getFileChooser(), and setFileChooser().

Referenced by initConnections().

Referenced by getJMenuItem1().

Referenced by getPopup().

Referenced by showPopup().


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

Generated by  doxygen 1.6.2