de.fhkl.zw.mkup.rattrap
Class ConnectionWindow

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by thinlet.Thinlet
              extended by de.fhkl.zw.mkup.rattrap.ConnectionWindow
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.lang.Runnable

public class ConnectionWindow
extends thinlet.Thinlet

This Class starts the application and displays the connection window.

Author:
Martin Schultz
See Also:
Serialized Form

Field Summary
 
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
ConnectionWindow()
          The constructor parses and renders the XML code showing the GUI.
 
Method Summary
 void connect(java.lang.String host, java.lang.String path, java.lang.String port)
          This method connects to the selected connection profile.
 void delete(java.lang.String id)
          This methods deletes the selected connection profile.
 void isChanged()
          Enables the "New and Save Modified" Buttons, so that changes or new profiles can be saved.
static void main(java.lang.String[] args)
          The main method initializes the program.
 void newOrSave(java.lang.String id, java.lang.String name, java.lang.String host, java.lang.String path, java.lang.String port, int country)
          The method creates either a new connection profile or changes an existing one.
 void showConnections()
          This method shows all available connection profiles in the tree element.
 void showProfile(java.lang.Object o)
          This method displays the connection data and prepares the connection
 
Methods inherited from class thinlet.Thinlet
add, add, add, create, destroy, find, find, getBoolean, getChoice, getClass, getColor, getComponent, getCount, getDesktop, getFont, getIcon, getIcon, getIcon, getInteger, getItem, getItems, getParent, getPreferredSize, getProperty, getSelectedIndex, getSelectedItem, getSelectedItems, getString, getWidget, isFocusTraversable, paint, parse, parse, parse, parse, putProperty, remove, removeAll, repaint, requestFocus, run, setBoolean, setChoice, setColor, setColors, setComponent, setFont, setFont, setFont, setIcon, setInteger, setKeystroke, setMethod, setResourceBundle, setString, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, 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, getMousePosition, 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, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionWindow

public ConnectionWindow()
The constructor parses and renders the XML code showing the GUI.

Method Detail

showProfile

public void showProfile(java.lang.Object o)
This method displays the connection data and prepares the connection

Parameters:
o: - Thinlet Object

showConnections

public void showConnections()
This method shows all available connection profiles in the tree element.


newOrSave

public void newOrSave(java.lang.String id,
                      java.lang.String name,
                      java.lang.String host,
                      java.lang.String path,
                      java.lang.String port,
                      int country)
The method creates either a new connection profile or changes an existing one.
The connection is then stored in the savedConnections.xml.

Parameters:
id: - Connection id;
name: - Connection name;
host: - Connection host;
path: - Connection path;
port: - Connection port;
country: - User's homecountry;

delete

public void delete(java.lang.String id)
This methods deletes the selected connection profile.

Parameters:
id - A string objects which represents the connection entry.

connect

public void connect(java.lang.String host,
                    java.lang.String path,
                    java.lang.String port)
This method connects to the selected connection profile.

Parameters:
id - A string objects which represents the connection entry.

isChanged

public void isChanged()
Enables the "New and Save Modified" Buttons, so that changes or new profiles can be saved.


main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
The main method initializes the program.

Parameters:
args -
Throws:
java.lang.Exception