irc.gui.pixx
Class PixxMDIInterface

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--irc.gui.pixx.PixxPanel
                          |
                          +--irc.gui.pixx.PixxMDIInterface
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, MouseWheelPanelListener, PixxMenuBarListener, PixxTaskBarListener, java.io.Serializable

public class PixxMDIInterface
extends PixxPanel
implements PixxTaskBarListener, PixxMenuBarListener, java.awt.event.ActionListener, MouseWheelPanelListener

The multiplie document interface.

See Also:
Serialized Form

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
 
Fields inherited from class irc.gui.pixx.PixxPanel
_ircConfiguration, COLOR_BACK, COLOR_BLACK, COLOR_CLOSE, COLOR_DARK_GRAY, COLOR_EVENT, COLOR_FEMEALE, COLOR_FRONT, COLOR_GRAY, COLOR_LIGHT_GRAY, COLOR_MALE, COLOR_OP, COLOR_SELECTED, COLOR_SEMIOP, COLOR_UNDEF, COLOR_VOICE, COLOR_WHITE
 
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
PixxMDIInterface(IRCConfiguration config, PixxTaskBar task, boolean title)
          Create a new PixxMDIInterface.
 
Method Summary
 void aboutClicked(PixxMenuBar bar)
          The about button has been clicked.
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addPixxMDIInterfaceListener(PixxMDIInterfaceListener lis)
          Add a listener.
 void AWTSourceActivated(PixxTaskBar bar, AWTSource asource)
          A new awt source has been activated.
 void AWTSourceAdded(PixxTaskBar bar, AWTSource asource)
          A new awt source has been added in the taskbar.
 void AWTSourceDesactivated(PixxTaskBar bar, AWTSource asource)
          The active awt source has been desactivated.
 void AWTSourceRemoved(PixxTaskBar bar, AWTSource asource)
          An awt source has been removed from the taskbar.
 void chanListClicked(PixxMenuBar bar)
          The chanlist button has been clicked.
 void closeClicked(PixxMenuBar bar)
          The close button has been clicked.
 void connectionClicked(PixxMenuBar bar)
          The connection button has been clicked.
 void dock(AWTSource source)
          Dock the specified source.
 void dockClicked(PixxMenuBar bar)
          The dock button has been clicked.
 void eventOccured(PixxTaskBar bar, AWTSource asource, java.awt.event.MouseEvent e)
          An mouse event occured on an awt source icon.
 AWTSource findAWTSource(Source src)
          Find the AWTSource relative to the given source.
 AWTSource getActive()
          Get active awt source.
 Interpretor getInterpretor()
          Get the interpretor for this interface.
 PixxTaskBar getTaskBar()
          Get the taskbar associated with this interface.
 void helpClicked(PixxMenuBar bar)
          The help button has been clicked.
 boolean isDocked(AWTSource source)
          Check whether the given source is docked or not.
 void mouseWheelMoved(java.lang.Integer amount)
          The mouse wheel moved.
 void release()
          Release this object.
 void removePixxMDIInterfaceListener(PixxMDIInterfaceListener lis)
          Remove a listener.
 void setConnected(boolean b)
          Set the connected state.
 void setTitle(java.lang.String title, ColorContext context)
          Set the title.
 void undock(AWTSource source)
          Undock the specified source.
 
Methods inherited from class irc.gui.pixx.PixxPanel
drawSeparator, getColor, getIRCColorModel, getText
 
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, getPreferredSize, 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, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PixxMDIInterface

public PixxMDIInterface(IRCConfiguration config,
                        PixxTaskBar task,
                        boolean title)
Create a new PixxMDIInterface.

Parameters:
config - global irc configuration.
task - taskbar.
title - true if this mdi should display its title.
Method Detail

release

public void release()
Description copied from class: PixxPanel
Release this object. No further method call may be performed.

Overrides:
release in class PixxPanel

getTaskBar

public PixxTaskBar getTaskBar()
Get the taskbar associated with this interface.

Returns:
the taskbar.

setTitle

public void setTitle(java.lang.String title,
                     ColorContext context)
Set the title.

Parameters:
title - title string.
context - title color context.

addPixxMDIInterfaceListener

public void addPixxMDIInterfaceListener(PixxMDIInterfaceListener lis)
Add a listener.

Parameters:
lis - listener to add.

removePixxMDIInterfaceListener

public void removePixxMDIInterfaceListener(PixxMDIInterfaceListener lis)
Remove a listener.

Parameters:
lis - listener to remove.

setConnected

public void setConnected(boolean b)
Set the connected state.

Parameters:
b - true if connected to server, false otherwise.

getActive

public AWTSource getActive()
Get active awt source.

Returns:
the current active awt source.

dock

public void dock(AWTSource source)
Dock the specified source.

Parameters:
source - the source to be docked.

undock

public void undock(AWTSource source)
Undock the specified source.

Parameters:
source - the source to be undocked.

isDocked

public boolean isDocked(AWTSource source)
Check whether the given source is docked or not.

Parameters:
source - the source to be checked.
Returns:
true if the source is docked, false otherwise.

getInterpretor

public Interpretor getInterpretor()
Get the interpretor for this interface. Any unrecognized command will be passed to this interpretor.

Returns:
the interpretor for this interface, or null if no default interface interpretor should be used.

findAWTSource

public AWTSource findAWTSource(Source src)
Find the AWTSource relative to the given source.

Parameters:
src - source to find AWTSource from.
Returns:
AWTSource relative to the given source, or null if not found.

AWTSourceAdded

public void AWTSourceAdded(PixxTaskBar bar,
                           AWTSource asource)
Description copied from interface: PixxTaskBarListener
A new awt source has been added in the taskbar.

Specified by:
AWTSourceAdded in interface PixxTaskBarListener
Parameters:
bar - the taskbar.
asource - the added source.

AWTSourceRemoved

public void AWTSourceRemoved(PixxTaskBar bar,
                             AWTSource asource)
Description copied from interface: PixxTaskBarListener
An awt source has been removed from the taskbar.

Specified by:
AWTSourceRemoved in interface PixxTaskBarListener
Parameters:
bar - the taskbar.
asource - the removed source.

AWTSourceDesactivated

public void AWTSourceDesactivated(PixxTaskBar bar,
                                  AWTSource asource)
Description copied from interface: PixxTaskBarListener
The active awt source has been desactivated.

Specified by:
AWTSourceDesactivated in interface PixxTaskBarListener
Parameters:
bar - the taskbar.
asource - the desactivated source.

AWTSourceActivated

public void AWTSourceActivated(PixxTaskBar bar,
                               AWTSource asource)
Description copied from interface: PixxTaskBarListener
A new awt source has been activated.

Specified by:
AWTSourceActivated in interface PixxTaskBarListener
Parameters:
bar - the taskbar.
asource - the activated source.

eventOccured

public void eventOccured(PixxTaskBar bar,
                         AWTSource asource,
                         java.awt.event.MouseEvent e)
Description copied from interface: PixxTaskBarListener
An mouse event occured on an awt source icon.

Specified by:
eventOccured in interface PixxTaskBarListener
Parameters:
bar - the taskbar.
asource - the awt source.
e - the mouse event.

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

connectionClicked

public void connectionClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The connection button has been clicked.

Specified by:
connectionClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

chanListClicked

public void chanListClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The chanlist button has been clicked.

Specified by:
chanListClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

aboutClicked

public void aboutClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The about button has been clicked.

Specified by:
aboutClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

helpClicked

public void helpClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The help button has been clicked.

Specified by:
helpClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

closeClicked

public void closeClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The close button has been clicked.

Specified by:
closeClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

dockClicked

public void dockClicked(PixxMenuBar bar)
Description copied from interface: PixxMenuBarListener
The dock button has been clicked.

Specified by:
dockClicked in interface PixxMenuBarListener
Parameters:
bar - the menu bar.

mouseWheelMoved

public void mouseWheelMoved(java.lang.Integer amount)
Description copied from interface: MouseWheelPanelListener
The mouse wheel moved.

Specified by:
mouseWheelMoved in interface MouseWheelPanelListener
Parameters:
amount - wheel move amplitude.