|
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.JPanel
net.java.sip.communicator.impl.gui.main.chat.ChatConversationComponent
public abstract class ChatConversationComponent
The ChatConversationComponent is a component that can be added to the conversation area of the chat window in order to display any special events.
| Nested Class Summary | |
|---|---|
protected class |
ChatConversationComponent.ChatConversationButton
A specially customized button to fit better chat conversation component look and feel. |
| 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 | |
|---|---|
protected GridBagConstraints |
constraints
The constraints used to layout this component. |
protected static ResourceManagementService |
resources
The service through which we access resources like colors. |
| 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 | |
|---|---|
ChatConversationComponent()
Creates a ChatConversationComponent. |
|
| Method Summary | |
|---|---|
abstract Date |
getDate()
Returns the date of the component event. |
String |
getDateString(Date date)
Returns the date string to be used in order to show date and time in the chat conversation component. |
void |
loadSkin()
Reloads color information. |
protected void |
openFile(File downloadFile)
Opens the given file through the DesktopService. |
void |
paintComponent(Graphics g)
Call a custom internal paint. |
protected void |
setWarningStyle(boolean isWarningStyle)
Updates the background color to catch user attention if anything unexpected has happened. |
protected abstract void |
showErrorMessage(String errorMessage)
Shows the given error message to the user. |
| 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 |
| Field Detail |
|---|
protected final GridBagConstraints constraints
protected static final ResourceManagementService resources
| Constructor Detail |
|---|
public ChatConversationComponent()
| Method Detail |
|---|
public void loadSkin()
loadSkin in interface Skinnableprotected void setWarningStyle(boolean isWarningStyle)
isWarningStyle - true to indicate that the warning
style should be set, false - otherwise.public void paintComponent(Graphics g)
paintComponent in class JComponentg - the Graphics object used for paintingprotected void openFile(File downloadFile)
downloadFile - the file to openpublic String getDateString(Date date)
date - the date to format
public abstract Date getDate()
protected abstract void showErrorMessage(String errorMessage)
errorMessage - the error message to show
|
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 | |||||||||