Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class Changer

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--Changer

public class Changer
extends Frame
Ein Changer ist eine Applikation, die DM-Betraege in EURO umrechnet (und umgekehrt). Dazu werden in einem Frame zwei ConversionPanel uebereinander angeordnet. Der Changer kontolliert die Umrechnung.

Version:
24.03.1999
See Also:
Frame, ConversionPanel, Serialized Form

Inner classes inherited from class java.awt.Component
Component.NativeInLightFixer
 
Field Summary
static double DM2EURO
          Umrechnungskurs DM in EURO.
ConversionPanel DMPanel
          Die ConversionPanel zur Ein- und Ausgabe der Betraege.
static double EURO2DM
          Umrechnungskurs EURO in DM.
ConversionPanel EuroPanel
          Die ConversionPanel zur Ein- und Ausgabe der Betraege.
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, softThis, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
active, base, focusMgr, inputContext, nameCounter, OPENED, ownedWindowList, serialVersionUID, state, warningString, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, maxSize, ncomponents, serialVersionUID
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, assert, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, hasFocus, height, incRate, inputMethodListener, inputMethodListenerK, isInc, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, parent, peer, popups, prefSize, RIGHT_ALIGNMENT, serialVersionUID, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowListenerK, x, y
 
Constructor Summary
Changer(String s)
          Dieser Konstruktor erzeugt ein Changer-Objekt, das zwei ConversionPanel enthaelt und einen WindowListener zum Schliessen des Changer-Fensters besitzt.
 
Method Summary
void convert(ConversionPanel from)
          liest den Betrag vom ConversionPanel from, rechnet ihn um und schreibt ihn in das ConversionPanel to.
static void main(String[] args)
          Hauptprogramm fuer das Waehrungsumrechnungsprogramm, das einen Changer erzeugt, ihn formatiert und anzeigt.
 
Methods inherited from class java.awt.Frame
addNotify, addToFrameList, constructComponentName, dispose, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getTitle, isResizable, paramString, postProcessKeyEvent, readObject, remove, removeFromFrameList, setCursor, setIconImage, setMenuBar, setResizable, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addNotify, addOwnedWindow, addWindowListener, applyResourceBundle, applyResourceBundle, connectOwnedWindows, constructComponentName, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getInputContext, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isActive, isShowing, nextFocus, pack, postEvent, postProcessKeyEvent, postWindowEvent, preProcessKeyEvent, processEvent, processWindowEvent, readObject, removeOwnedWindow, removeWindowListener, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus, writeObject
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addNotify, applyOrientation, countComponents, deliverEvent, dispatchEventImpl, doLayout, eventEnabled, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponentAt, getComponentAt, getComponent, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, nextFocus, paintComponents, paint, paramString, postProcessKeyEvent, postsOldMouseEvents, preferredSize, preProcessKeyEvent, printComponents, print, processContainerEvent, processEvent, proxyEnableEvents, proxyRequestFocus, readObject, removeAll, remove, remove, removeContainerListener, removeNotify, setFocusOwner, setLayout, transferFocus, update, validate, validateTree, writeObject
 
Methods inherited from class java.awt.Component
, action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, coalesceEvents, constructComponentName, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, dispatchEventImpl, doLayout, enable, enable, enableEvents, enableInputMethods, ensureWindowActivation, eventEnabled, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getNativeContainer, getParent, getPeer, getPreferredSize, getSize, getSize, getToolkit, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, initIDs, inside, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, paint, paramString, postEvent, postsOldMouseEvents, preferredSize, prepareImage, prepareImage, printAll, print, processComponentEvent, processEvent, processFocusEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, readObject, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, update, validate, writeObject
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, registerNatives, toString, wait, wait, wait
 

Field Detail

EURO2DM

private static final double EURO2DM
Umrechnungskurs EURO in DM.

DM2EURO

private static final double DM2EURO
Umrechnungskurs DM in EURO.

DMPanel

private ConversionPanel DMPanel
Die ConversionPanel zur Ein- und Ausgabe der Betraege.

EuroPanel

private ConversionPanel EuroPanel
Die ConversionPanel zur Ein- und Ausgabe der Betraege.
Constructor Detail

Changer

public Changer(String s)
Dieser Konstruktor erzeugt ein Changer-Objekt, das zwei ConversionPanel enthaelt und einen WindowListener zum Schliessen des Changer-Fensters besitzt.
See Also:
ConversionPanel, WindowCloser, Closer
Method Detail

convert

void convert(ConversionPanel from)
liest den Betrag vom ConversionPanel from, rechnet ihn um und schreibt ihn in das ConversionPanel to.
Parameters:
from - ConversionPanel in das der umzurechnende Betrag eingegeben wurde.

main

public static void main(String[] args)
Hauptprogramm fuer das Waehrungsumrechnungsprogramm, das einen Changer erzeugt, ihn formatiert und anzeigt.

Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD