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.
-
SCROLLBARS_BOTH
- Create and display both vertical and horizontal scrollbars.
-
SCROLLBARS_HORIZONTAL_ONLY
- Create and display horizontal scrollbar only.
-
SCROLLBARS_NONE
- Do not create or display any scrollbars for the text area.
-
SCROLLBARS_VERTICAL_ONLY
- Create and display vertical scrollbar only.
-
TextArea()
- Constructs a new TextField.
-
TextArea(int, int)
- Constructs a new empty TextArea with the specified number of
rows and columns.
-
TextArea(String)
- Constructs a new TextArea initialized with the specified text.
-
TextArea(String, int, int)
- Constructs a new TextArea with the specified text and number
of rows and columns.
-
TextArea(String, int, int, int)
- Constructs a new TextArea initialized with the specified text.
-
adjustmentValueChanged(AdjustmentEvent)
-
-
getMinimumSize()
- Gets the minimum size of this component.
-
getNumLines()
- How many lines of text does the TextBox currently hold?
-
getScrollbarVisibility()
- Get whether the east scrollbar is visible
-
getScrollEastVisible()
- Get whether the east scrollbar is visible
-
getScrollSouthVisible()
- Get whether the south scrollbar is visible
-
getTextWrap()
- Get whether the text wrapping is turned on
-
paint(Graphics)
-
Paints the component.
-
processMouseEvent(MouseEvent)
-
Processes mouse events occurring on this component by
dispatching them to any registered MouseListener objects.
-
select(int, int)
- Sets the new selected text value this TextField
-
setScrollEastVisible(boolean)
- Set whether the east scrollbar should be visible
-
setScrollSouthVisible(boolean)
- Set whether the south scrollbar should be visible
-
setText(String)
- Sets the new text value this TextArea
-
setTextNoRepaint(String)
- Sets the new text value this TextArea
-
setTextWrap(boolean)
- Set whether the text wrapping is turned on
-
update(Graphics)
-
Updates the component.
-
validate()
-
Ensures that a component has a valid layout.
SCROLLBARS_BOTH
public static final int SCROLLBARS_BOTH
- Create and display both vertical and horizontal scrollbars.
SCROLLBARS_VERTICAL_ONLY
public static final int SCROLLBARS_VERTICAL_ONLY
- Create and display vertical scrollbar only.
SCROLLBARS_HORIZONTAL_ONLY
public static final int SCROLLBARS_HORIZONTAL_ONLY
- Create and display horizontal scrollbar only.
SCROLLBARS_NONE
public static final int SCROLLBARS_NONE
- Do not create or display any scrollbars for the text area.
TextArea
public TextArea()
- Constructs a new TextField.
TextArea
public TextArea(String text)
- Constructs a new TextArea initialized with the specified text.
- Parameters:
- text - the text to be displayed
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
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
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
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
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
getScrollbarVisibility
public int getScrollbarVisibility()
- Get whether the east scrollbar is visible
- Returns:
- whether visible or not.
setScrollEastVisible
public void setScrollEastVisible(boolean visible)
- Set whether the east scrollbar should be visible
- Parameters:
- visible - flag.
getScrollEastVisible
public boolean getScrollEastVisible()
- Get whether the east scrollbar is visible
- Returns:
- whether visible or not.
setScrollSouthVisible
public void setScrollSouthVisible(boolean visible)
- Set whether the south scrollbar should be visible
- Parameters:
- visible - flag.
getScrollSouthVisible
public boolean getScrollSouthVisible()
- Get whether the south scrollbar is visible
- Returns:
- whether visible or not.
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
setTextWrap
public void setTextWrap(boolean wrap)
- Set whether the text wrapping is turned on
- Parameters:
- wrap - whether the text wrapping is turned on.
getTextWrap
public boolean getTextWrap()
- Get whether the text wrapping is turned on
- Returns:
- whether the text wrapping is turned on
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
validate
public void validate()
- Ensures that a component has a valid layout.
- Overrides:
- validate in class Component
update
public void update(Graphics g)
- Updates the component.
- Overrides:
- update in class TextField
paint
public synchronized void paint(Graphics g)
- Paints the component.
- Overrides:
- paint in class TextField
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
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
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