org.relayirc.swingui
Class ServerPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.relayirc.swingui.ServerPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.image.ImageObserver, ITab, java.awt.MenuContainer, java.io.Serializable

public class ServerPanel
extends javax.swing.JPanel
implements ITab

JPanel for specifying IRC server and editing list of servers. GUI Generated by JBuilder Foundation 3.500.24.0.

Version:
$Revision: 1.4.2.4 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL

Original Code: Relay IRC Chat Engine
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson
See Also:
Serialized Form

Inner Class Summary
static class ServerPanel.ServerHolder
          Holds server objects during editing, so changes can be cancelled.
 
Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
Field Summary
 javax.swing.JButton _addButton
           
 javax.swing.JButton _connectButton
           
 javax.swing.JButton _deleteButton
           
 javax.swing.JButton _editButton
           
 javax.swing.JComboBox _networkCombo
           
 javax.swing.JLabel _networkLabel
           
 javax.swing.JComboBox _serverCombo
           
 javax.swing.JLabel _serverLabel
           
 javax.swing.JPanel _serverPanel
           
static int ADDED
           
 java.awt.BorderLayout borderLayout1
           
static int DELETED
           
static int EDITED
           
 java.awt.GridBagLayout gridBagLayout1
           
static int UNTOUCHED
           
 
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
ServerPanel()
           
 
Method Summary
 boolean checkValues()
          Check validity of tab's values, part of ITab interface.
 javax.swing.JButton getConnectButton()
          So callers can provide and action for the connect button.
 java.lang.String getName()
          Return's tab's name, part of ITab interface.
 void jbInit()
          Initialize GUI, written and maintained by JBuilder.
 void loadValues()
          Loads values into this tab's GUI, part of ITab interface.
static void main(java.lang.String[] args)
          For testing only.
 void saveValues()
          Saves tab's values from, part of ITab interface.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

borderLayout1

public java.awt.BorderLayout borderLayout1

gridBagLayout1

public java.awt.GridBagLayout gridBagLayout1

_networkLabel

public javax.swing.JLabel _networkLabel

_networkCombo

public javax.swing.JComboBox _networkCombo

_serverLabel

public javax.swing.JLabel _serverLabel

_serverCombo

public javax.swing.JComboBox _serverCombo

_addButton

public javax.swing.JButton _addButton

_editButton

public javax.swing.JButton _editButton

_deleteButton

public javax.swing.JButton _deleteButton

_connectButton

public javax.swing.JButton _connectButton

_serverPanel

public javax.swing.JPanel _serverPanel

UNTOUCHED

public static final int UNTOUCHED

ADDED

public static final int ADDED

EDITED

public static final int EDITED

DELETED

public static final int DELETED
Constructor Detail

ServerPanel

public ServerPanel()
Method Detail

getConnectButton

public javax.swing.JButton getConnectButton()
So callers can provide and action for the connect button.

getName

public java.lang.String getName()
Return's tab's name, part of ITab interface.
Specified by:
getName in interface ITab
Overrides:
getName in class java.awt.Component

loadValues

public void loadValues()
Loads values into this tab's GUI, part of ITab interface.
Specified by:
loadValues in interface ITab

saveValues

public void saveValues()
Saves tab's values from, part of ITab interface.
Specified by:
saveValues in interface ITab

checkValues

public boolean checkValues()
Check validity of tab's values, part of ITab interface.
Specified by:
checkValues in interface ITab

jbInit

public void jbInit()
            throws java.lang.Exception
Initialize GUI, written and maintained by JBuilder.

main

public static void main(java.lang.String[] args)
For testing only.