|
SIP Communicator: 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.JPanel
net.java.sip.communicator.util.swing.TransparentPanel
net.java.sip.communicator.impl.gui.main.chat.ChatWritePanel
public class ChatWritePanel
The ChatWritePanel is the panel, where user writes her messages. It is located at the bottom of the split in the ChatPanel and it contains an editor, where user writes the text.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| 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.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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ChatWritePanel(ChatPanel panel)
Creates an instance of ChatWritePanel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
|
void |
appendText(String text)
Appends the given text to the end of the contained HTML document. |
void |
changeSendCommand(boolean isEnter)
Replaces the Ctrl+Enter send command with simple Enter. |
void |
clearWriteArea()
Clears write message area. |
void |
dispose()
Runs clean-up for associated resources which need explicit disposal (e.g. |
JEditorPane |
getEditorPane()
Returns the editor panel, contained in this ChatWritePanel. |
EditTextToolBar |
getEditTextToolBar()
Returns the toolbar above the chat write area. |
WritePanelRightButtonMenu |
getRightButtonMenu()
Returns the WritePanelRightButtonMenu opened in this panel. |
String |
getText()
Returns the write area text as a plain text without any formatting. |
String |
getTextAsHtml()
Returns the write area text as an html text. |
void |
keyPressed(KeyEvent e)
When CTRL+Z is pressed invokes the ChatWritePanel.undo()
method, when CTRL+R is pressed invokes the
ChatWritePanel.redo() method. |
void |
keyReleased(KeyEvent e)
|
void |
keyTyped(KeyEvent e)
Sends typing notifications when user types. |
void |
mouseClicked(MouseEvent e)
Opens the WritePanelRightButtonMenu whe user clicks with the right mouse button on the editor area. |
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
setStylebarVisible(boolean b)
Shows or hides the Stylebar depending on the value of parameter b. |
void |
stopTypingTimer()
Stops the timer and sends a notification message. |
void |
undoableEditHappened(UndoableEditEvent e)
Handles the UndoableEditEvent, by adding the content edit to the UndoManager. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChatWritePanel(ChatPanel panel)
panel - The parent ChatPanel.| Method Detail |
|---|
public void setStylebarVisible(boolean b)
b - if true, makes the Stylebar visible, otherwise hides the Stylebarpublic void dispose()
public JEditorPane getEditorPane()
public void changeSendCommand(boolean isEnter)
public void undoableEditHappened(UndoableEditEvent e)
undoableEditHappened in interface UndoableEditListenere - The UndoableEditEvent.public void keyTyped(KeyEvent e)
keyTyped in interface KeyListenere - the event.public void keyPressed(KeyEvent e)
ChatWritePanel.undo()
method, when CTRL+R is pressed invokes the
ChatWritePanel.redo() method.
keyPressed in interface KeyListenerpublic void keyReleased(KeyEvent e)
keyReleased in interface KeyListenerpublic void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void stopTypingTimer()
public void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic WritePanelRightButtonMenu getRightButtonMenu()
public String getTextAsHtml()
public String getText()
public void clearWriteArea()
public void appendText(String text)
text - the text to append.public EditTextToolBar getEditTextToolBar()
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||