|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
net.java.sip.communicator.util.swing.SIPCommTextField
public class SIPCommTextField
The SIPCommTextField is a JTextField that offers the possibility to specify a default (tip) text that explains what is the required data.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JTextField |
|---|
JTextField.AccessibleJTextField |
| Nested classes/interfaces inherited from class javax.swing.text.JTextComponent |
|---|
JTextComponent.AccessibleJTextComponent, JTextComponent.DropLocation, JTextComponent.KeyBinding |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JTextField |
|---|
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
|---|
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
SIPCommTextField(String text)
Creates an instance of SIPCommTextField by specifying the text we would like to show by default in it. |
|
| Method Summary | |
|---|---|
void |
addTextChangeListener(TextFieldChangeListener l)
Adds the given TextFieldChangeListener to the list of listeners notified on changes of the text contained in this field. |
void |
changedUpdate(DocumentEvent e)
|
void |
focusGained(FocusEvent e)
Selects the user text when this text field gains the focus. |
void |
focusLost(FocusEvent e)
Sets the default text when the field looses focus. |
String |
getText()
Returns the text contained in this field. |
void |
insertUpdate(DocumentEvent e)
Handles the change when a char has been inserted in the field. |
void |
keyPressed(KeyEvent e)
Clears the default text when a key pressed event is received. |
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
Clears the default text when a key typed event is received. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
Indicates that the mouse button was pressed on this component. |
void |
mouseReleased(MouseEvent e)
|
void |
removeTextChangeListener(TextFieldChangeListener l)
Removes the given TextFieldChangeListener from the list of listeners notified on changes of the text contained in this field. |
void |
removeUpdate(DocumentEvent e)
Handles the change when a char has been removed from the field. |
void |
setDefaultTextColor(Color c)
Sets the foreground color of the default text shown in this text field. |
void |
setForegroundColor(Color c)
Sets the foreground color. |
void |
setText(String text)
Sets the text of this text field. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SIPCommTextField(String text)
text - the text we would like to enter by default| Method Detail |
|---|
public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the MouseEvent that notified uspublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void focusGained(FocusEvent e)
focusGained in interface FocusListenere - the FocusEvent that notified uspublic void focusLost(FocusEvent e)
focusLost in interface FocusListenere - the FocusEvent that notified uspublic String getText()
getText in class JTextComponentpublic void setText(String text)
setText in class JTextComponenttext - the text to show in this text fieldpublic void keyPressed(KeyEvent e)
keyPressed in interface KeyListenere - the KeyEvent that notified uspublic void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - the KeyEvent that notified uspublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void addTextChangeListener(TextFieldChangeListener l)
l - the TextFieldChangeListener to addpublic void removeTextChangeListener(TextFieldChangeListener l)
l - the TextFieldChangeListener to addpublic void changedUpdate(DocumentEvent e)
changedUpdate in interface DocumentListenerpublic void insertUpdate(DocumentEvent e)
insertUpdate in interface DocumentListenere - the DocumentEvent that notified uspublic void removeUpdate(DocumentEvent e)
removeUpdate in interface DocumentListenere - the DocumentEvent that notified uspublic void setForegroundColor(Color c)
c - the color to set for the text field foregroundpublic void setDefaultTextColor(Color c)
c - the color to set
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||