See on Tõrva Gümnaasiumi vana veebilehe arhiiv. Uus veebileht: https://torva.edu.ee/

PixxMDIInterface (PJIRC project)

Lisamaterjalide loend

Algne fail: vana_veeb/pjirc/doc/javadoc/irc/gui/pixx/PixxMDIInterface.html.

========== START OF NAVBAR ==========
=========== END OF NAVBAR ===========
======== START OF CLASS DATA ========

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 source)
          A new awt source has been activated.
 void AWTSourceAdded(PixxTaskBar bar, AWTSource source)
          A new awt source has been added in the taskbar.
 void AWTSourceDesactivated(PixxTaskBar bar, AWTSource source)
          The active awt source has been desactivated.
 void AWTSourceRemoved(PixxTaskBar bar, AWTSource source)
          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 dispose()
          Release any ressources used by this component.
 void eventOccured(PixxTaskBar bar, AWTSource source, java.awt.event.MouseEvent e)
          An mouse event occured on an awt source icon.
 AWTSource getActive()
          Get active awt source.
 void helpClicked(PixxMenuBar bar)
          The help button has been clicked.
 void mouseWheelMoved(java.lang.Integer amount)
          The mouse wheel moved.
 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.
 
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

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.


AWTSourceAdded

public void AWTSourceAdded(PixxTaskBar bar,
                           AWTSource source)
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.
source - the added source.


AWTSourceRemoved

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

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


AWTSourceDesactivated

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

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


AWTSourceActivated

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

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


eventOccured

public void eventOccured(PixxTaskBar bar,
                         AWTSource source,
                         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.
source - 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.


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.


dispose

public void dispose()
Release any ressources used by this component.