All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.bulletproof.gui.TextArea

java.lang.Object
   |
   +----com.bulletproof.gui.Component
           |
           +----com.bulletproof.gui.TextField
                   |
                   +----com.bulletproof.gui.TextArea

public class TextArea
extends TextField
implements AdjustmentListener
TextArea is a component that allows the editing of multiple lines of text.


Variable Index

 o SCROLLBARS_BOTH
Create and display both vertical and horizontal scrollbars.
 o SCROLLBARS_HORIZONTAL_ONLY
Create and display horizontal scrollbar only.
 o SCROLLBARS_NONE
Do not create or display any scrollbars for the text area.
 o SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.

Constructor Index

 o TextArea()
Constructs a new TextField.
 o TextArea(int, int)
Constructs a new empty TextArea with the specified number of rows and columns.
 o TextArea(String)
Constructs a new TextArea initialized with the specified text.
 o TextArea(String, int, int)
Constructs a new TextArea with the specified text and number of rows and columns.
 o TextArea(String, int, int, int)
Constructs a new TextArea initialized with the specified text.

Method Index

 o adjustmentValueChanged(AdjustmentEvent)
 o getMinimumSize()
Gets the minimum size of this component.
 o getNumLines()
How many lines of text does the TextBox currently hold?
 o getScrollbarVisibility()
Get whether the east scrollbar is visible
 o getScrollEastVisible()
Get whether the east scrollbar is visible
 o getScrollSouthVisible()
Get whether the south scrollbar is visible
 o getTextWrap()
Get whether the text wrapping is turned on
 o paint(Graphics)
Paints the component.
 o processMouseEvent(MouseEvent)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.
 o select(int, int)
Sets the new selected text value this TextField
 o setScrollEastVisible(boolean)
Set whether the east scrollbar should be visible
 o setScrollSouthVisible(boolean)
Set whether the south scrollbar should be visible
 o setText(String)
Sets the new text value this TextArea
 o setTextNoRepaint(String)
Sets the new text value this TextArea
 o setTextWrap(boolean)
Set whether the text wrapping is turned on
 o update(Graphics)
Updates the component.
 o validate()
Ensures that a component has a valid layout.

Variables

 o SCROLLBARS_BOTH
 public static final int SCROLLBARS_BOTH
Create and display both vertical and horizontal scrollbars.

 o SCROLLBARS_VERTICAL_ONLY
 public static final int SCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.

 o SCROLLBARS_HORIZONTAL_ONLY
 public static final int SCROLLBARS_HORIZONTAL_ONLY
Create and display horizontal scrollbar only.

 o SCROLLBARS_NONE
 public static final int SCROLLBARS_NONE
Do not create or display any scrollbars for the text area.

Constructors

 o TextArea
 public TextArea()
Constructs a new TextField.

 o TextArea
 public TextArea(String text)
Constructs a new TextArea initialized with the specified text.

Parameters:
text - the text to be displayed
 o TextArea
 public TextArea(int rows,
                 int columns)
Constructs a new empty TextArea with the specified number of rows and columns.

Parameters:
rows - the number of rows
columns - the number of columns
 o TextArea
 public TextArea(String text,
                 int rows,
                 int columns)
Constructs a new TextArea with the specified text and number of rows and columns.

Parameters:
text - the text to be displayed
rows - the number of rows
columns - the number of columns
 o TextArea
 public TextArea(String text,
                 int minRows,
                 int minWidth,
                 int scrollbars)
Constructs a new TextArea initialized with the specified text.

Parameters:
text - the text to be displayed
minRows - the minimum rows in this textarea
minWidth - the minimum width in pixels of this textarea

Methods

 o setTextNoRepaint
 public void setTextNoRepaint(String s)
Sets the new text value this TextArea

Parameters:
the - new text value this TextArea
Overrides:
setTextNoRepaint in class TextField
 o setText
 public void setText(String s)
Sets the new text value this TextArea

Parameters:
the - new text value this TextArea
Overrides:
setText in class TextField
 o getScrollbarVisibility
 public int getScrollbarVisibility()
Get whether the east scrollbar is visible

Returns:
whether visible or not.
 o setScrollEastVisible
 public void setScrollEastVisible(boolean visible)
Set whether the east scrollbar should be visible

Parameters:
visible - flag.
 o getScrollEastVisible
 public boolean getScrollEastVisible()
Get whether the east scrollbar is visible

Returns:
whether visible or not.
 o setScrollSouthVisible
 public void setScrollSouthVisible(boolean visible)
Set whether the south scrollbar should be visible

Parameters:
visible - flag.
 o getScrollSouthVisible
 public boolean getScrollSouthVisible()
Get whether the south scrollbar is visible

Returns:
whether visible or not.
 o select
 public void select(int s0,
                    int s1)
Sets the new selected text value this TextField

Parameters:
the - new selected text from value this TextField
the - new selected text to value this TextField
Overrides:
select in class TextField
 o setTextWrap
 public void setTextWrap(boolean wrap)
Set whether the text wrapping is turned on

Parameters:
wrap - whether the text wrapping is turned on.
 o getTextWrap
 public boolean getTextWrap()
Get whether the text wrapping is turned on

Returns:
whether the text wrapping is turned on
 o getNumLines
 public int getNumLines()
How many lines of text does the TextBox currently hold?

Returns:
the number of lines of text contained
Overrides:
getNumLines in class TextField
 o validate
 public void validate()
Ensures that a component has a valid layout.

Overrides:
validate in class Component
 o update
 public void update(Graphics g)
Updates the component.

Overrides:
update in class TextField
 o paint
 public synchronized void paint(Graphics g)
Paints the component.

Overrides:
paint in class TextField
 o processMouseEvent
 public synchronized void processMouseEvent(MouseEvent me)
Processes mouse events occurring on this component by dispatching them to any registered MouseListener objects.

Overrides:
processMouseEvent in class TextField
 o adjustmentValueChanged
 public void adjustmentValueChanged(AdjustmentEvent e)
 o getMinimumSize
 public Dimension getMinimumSize()
Gets the minimum size of this component.

Overrides:
getMinimumSize in class TextField

All Packages  Class Hierarchy  This Package  Previous  Next  Index