|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Panel
|
+--irc.gui.AWTSource
The AWT source.
| Nested Class Summary |
| Nested classes inherited from class java.awt.Panel |
java.awt.Panel.AccessibleAWTPanel |
| Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
protected IRCConfiguration |
_ircConfiguration
|
protected StyledList |
_list
|
protected java.awt.Panel |
_panel
|
protected PixxVerticalScrollBar |
_scroll
|
protected AWTStyleSelectorEx |
_selector
|
protected Source |
_source
|
protected java.lang.String |
_strippedTitle
|
protected FormattedStringDrawer |
_styler
|
protected AWTIrcTextField |
_textField
|
protected java.lang.String |
_title
|
protected boolean |
_topToBottom
|
| 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 | |
AWTSource(IRCConfiguration config,
Source source)
Create a new AWTSource. |
|
AWTSource(IRCConfiguration config,
Source source,
boolean topToBottom)
Create a new AWTSource. |
|
| Method Summary | |
void |
action(java.lang.String nick,
java.lang.String msg)
A new action has been received. |
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
activate()
This source has been activated. |
void |
addAWTSourceListener(AWTSourceListener lis)
Add listener. |
void |
channelEvent(StyledList lis,
java.lang.String chan,
java.awt.event.MouseEvent e)
A mouse event has occured on a channel. |
protected void |
checkSound(java.lang.String msg)
Test wether the specified line should trigger "on word" sounds. |
void |
clear()
Clear this awt source display. |
void |
copyEvent(StyledList lis,
java.lang.String txt,
java.awt.event.MouseEvent e)
A copy event has occured on a channel. |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
void |
fontSelected(java.awt.Font fnt)
A new font has been selected. |
ColorContext |
getColorContext()
Get color context for this awt source. |
java.lang.String |
getFieldText()
Get the current textfield text. |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getShortTitle()
Get a shorter title. |
Source |
getSource()
Get the source. |
java.lang.String |
getStrippedTitle()
Get the stripped title. |
java.lang.String |
getText(int code)
Get formatted text associated with the given text code, with no parameter. |
java.lang.String |
getText(int code,
java.lang.String p1)
Get formatted text associated with the given text code, with one parameter. |
java.lang.String |
getText(int code,
java.lang.String p1,
java.lang.String p2)
Get formatted text associated with the given text code, with two parameters. |
java.lang.String |
getText(int code,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
Get formatted text associated with the given text code, with three parameters. |
java.lang.String |
getTitle()
Get the title. |
boolean |
isActive()
Return the active state for this awt source. |
void |
leave()
Leave this awt source. |
void |
messageReceived(java.lang.String source,
java.lang.String str)
A new message has been received. |
void |
mouseWheelMoved(java.lang.Integer amount)
The mouse wheel moved. |
protected boolean |
needHighLight(java.lang.String msg)
Test wether the specified line should be highlighted. |
void |
nickEvent(StyledList lis,
java.lang.String nick,
java.awt.event.MouseEvent e)
A nick event has occured on a channel. |
void |
noticeReceived(java.lang.String from,
java.lang.String msg)
A new notice has been received. |
protected void |
print(java.lang.String msg)
Print the given message on the awt source display. |
protected void |
print(java.lang.String msg,
int color)
Print the given message on the awt source display. |
protected void |
print(java.lang.String msg,
int color,
boolean bold,
boolean underline)
Print the given message on the awt source display. |
void |
release()
Release this object. |
void |
removeAWTSourceListener(AWTSourceListener lis)
Remove listener. |
void |
reportReceived(java.lang.String msg)
A new report has been received. |
void |
setFieldText(java.lang.String txt)
Set the current textfield text. |
void |
setTitle(java.lang.String title)
Set this source title. |
void |
setVisible(boolean b)
|
java.lang.String |
toString()
|
void |
URLEvent(StyledList lis,
java.lang.String url,
java.awt.event.MouseEvent e)
An url event has occured on a channel. |
void |
validateText()
Validate the current textfield text, as if user pressed return key. |
void |
valueChanged(PixxScrollBar pixScrollBar)
Position has changed. |
void |
virtualSizeChanged(StyledList lis)
The logical width or height of the list has changed. |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class java.awt.Panel |
addNotify, getAccessibleContext |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected Source _source
protected PixxVerticalScrollBar _scroll
protected java.awt.Panel _panel
protected StyledList _list
protected AWTIrcTextField _textField
protected FormattedStringDrawer _styler
protected java.lang.String _title
protected java.lang.String _strippedTitle
protected IRCConfiguration _ircConfiguration
protected AWTStyleSelectorEx _selector
protected boolean _topToBottom
| Constructor Detail |
public AWTSource(IRCConfiguration config,
Source source)
config - the global configuration.source - the source of this awt source.
public AWTSource(IRCConfiguration config,
Source source,
boolean topToBottom)
config - the global configuration.source - the source of this awt source.topToBottom - true if the display should be performed from top to
bottom instead of bottom to top.| Method Detail |
public void release()
public java.awt.Dimension getPreferredSize()
getPreferredSize in class java.awt.Containerpublic void setFieldText(java.lang.String txt)
public java.lang.String getFieldText()
public void validateText()
public ColorContext getColorContext()
public java.lang.String getText(int code)
code - text code.
public java.lang.String getText(int code,
java.lang.String p1)
code - text code.p1 - first parameter.
public java.lang.String getText(int code,
java.lang.String p1,
java.lang.String p2)
code - text code.p1 - first parameter.p2 - second parameter.
public java.lang.String getText(int code,
java.lang.String p1,
java.lang.String p2,
java.lang.String p3)
code - text code.p1 - first parameter.p2 - second parameter.p3 - third parameter.
public void addAWTSourceListener(AWTSourceListener lis)
lis - the listener to add.public void removeAWTSourceListener(AWTSourceListener lis)
lis - the listener to remove.public void setTitle(java.lang.String title)
public java.lang.String getStrippedTitle()
public java.lang.String getTitle()
public java.lang.String getShortTitle()
public Source getSource()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenerpublic void fontSelected(java.awt.Font fnt)
AWTStyleSelectorExListener
fontSelected in interface AWTStyleSelectorExListenerfnt - new selected font.public void clear()
clear in interface SourceListenerprotected boolean needHighLight(java.lang.String msg)
msg - line to test.
protected void checkSound(java.lang.String msg)
msg - line to test.
protected void print(java.lang.String msg,
int color,
boolean bold,
boolean underline)
color - color to use.bold - true if message should be in bold.underline - if message should be underlined.
protected void print(java.lang.String msg,
int color)
color - color to use.protected void print(java.lang.String msg)
msg - message to print.
public void messageReceived(java.lang.String source,
java.lang.String str)
SourceListener
messageReceived in interface SourceListenersource - source nick.str - message.public void reportReceived(java.lang.String msg)
SourceListener
reportReceived in interface SourceListenermsg - report.
public void noticeReceived(java.lang.String from,
java.lang.String msg)
SourceListener
noticeReceived in interface SourceListenerfrom - source nick.msg - notice.
public void action(java.lang.String nick,
java.lang.String msg)
SourceListener
action in interface SourceListenernick - source nick.msg - message.public void activate()
SourceListener
activate in interface SourceListenerpublic boolean isActive()
public void leave()
public void mouseWheelMoved(java.lang.Integer amount)
MouseWheelPanelListener
mouseWheelMoved in interface MouseWheelPanelListeneramount - wheel move amplitude.public void valueChanged(PixxScrollBar pixScrollBar)
PixxScrollBarListener
valueChanged in interface PixxScrollBarListenerpixScrollBar - scrollbar whose position has changed.public void focusGained(java.awt.event.FocusEvent e)
focusGained in interface java.awt.event.FocusListenerpublic void focusLost(java.awt.event.FocusEvent e)
focusLost in interface java.awt.event.FocusListener
public void channelEvent(StyledList lis,
java.lang.String chan,
java.awt.event.MouseEvent e)
StyledListListener
channelEvent in interface StyledListListenerlis - the source list.chan - the channel name.e - the mouse event associated with this event.
public void URLEvent(StyledList lis,
java.lang.String url,
java.awt.event.MouseEvent e)
StyledListListener
URLEvent in interface StyledListListenerlis - the source list.url - the url name.e - the mouse event associated with this event.
public void nickEvent(StyledList lis,
java.lang.String nick,
java.awt.event.MouseEvent e)
StyledListListener
nickEvent in interface StyledListListenerlis - the source list.nick - the nick name.e - the mouse event associated with this event.public java.lang.String toString()
toString in class java.awt.Componentpublic void setVisible(boolean b)
setVisible in class java.awt.Component
public void copyEvent(StyledList lis,
java.lang.String txt,
java.awt.event.MouseEvent e)
StyledListListener
copyEvent in interface StyledListListenerlis - the source list.txt - the copied text.e - the mouse event associated with this event.public void virtualSizeChanged(StyledList lis)
StyledListListener
virtualSizeChanged in interface StyledListListenerlis - the source list.public void windowActivated(java.awt.event.WindowEvent e)
windowActivated in interface java.awt.event.WindowListenerpublic void windowClosed(java.awt.event.WindowEvent e)
windowClosed in interface java.awt.event.WindowListenerpublic void windowClosing(java.awt.event.WindowEvent e)
windowClosing in interface java.awt.event.WindowListenerpublic void windowDeactivated(java.awt.event.WindowEvent e)
windowDeactivated in interface java.awt.event.WindowListenerpublic void windowDeiconified(java.awt.event.WindowEvent e)
windowDeiconified in interface java.awt.event.WindowListenerpublic void windowIconified(java.awt.event.WindowEvent e)
windowIconified in interface java.awt.event.WindowListenerpublic void windowOpened(java.awt.event.WindowEvent e)
windowOpened in interface java.awt.event.WindowListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||