org.ssonet.examples.catalog.customer
Class OrderPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--org.ssonet.examples.catalog.customer.OrderPanel
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class OrderPanel
extends javax.swing.JPanel
implements java.awt.event.ActionListener

Catalogwindow with choice, productinfo, configuration, help and order

See Also:
Serialized Form

Nested Class Summary
(package private)  class OrderPanel.ButtonPanel
           
(package private)  class OrderPanel.OrderTableModel
           
 
Field Summary
(package private)  javax.swing.JMenuItem about
           
(package private)  org.ssonet.examples.catalog.customer.Catalog catalog
           
static java.lang.String CATALOG
           
(package private)  javax.swing.JMenuItem catalogConfig
           
 org.ssonet.examples.catalog.customer.Customer customer
           
(package private)  java.util.Vector data
           
 javax.swing.table.TableModel dataModel
           
(package private)  javax.swing.JMenuItem exit
           
(package private) static java.lang.String[] Headlines
           
(package private)  javax.swing.JMenuItem loadCatalog
           
(package private)  javax.swing.JMenuBar mainMenuBar
           
(package private)  javax.swing.JMenu menu1
           
(package private)  javax.swing.JMenu menu2
           
(package private)  javax.swing.JMenu menu3
           
(package private)  javax.swing.JMenu menu4
           
(package private)  int numberOfProducts
           
static java.lang.String ORDER
           
(package private)  javax.swing.JButton orderButton
           
(package private)  javax.swing.JMenuItem orderConfig
           
(package private)  org.ssonet.examples.catalog.customer.OrderSumPanel orderSumPanel
           
(package private)  org.ssonet.examples.catalog.customer.ProductPanel productPanel
           
(package private)  javax.swing.JButton quitButton
           
static java.lang.String REQUEST
           
(package private)  javax.swing.JMenuItem requestCatalog
           
(package private)  org.ssonet.examples.catalog.customer.ProductTable tableView
           
(package private)  javax.swing.JLabel validity
           
 
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.Container
 
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
OrderPanel(org.ssonet.examples.catalog.customer.Customer customer)
          creates a catalogwindow for the customer
 
Method Summary
 void about()
          shows the info window
 void actionPerformed(java.awt.event.ActionEvent event)
          handles ActionListener calls
 void addMenu(javax.swing.JApplet applet)
          adds the menu to the upper edge of the window
 void changeConfig(java.lang.String action, java.lang.String readableName)
          changes customers ActionConfiguration for catalog receiving
 float getOrderSum(java.util.Vector paramVector)
          Erzeugt die Liste
(package private)  void loadCatalogAction(java.awt.event.ActionEvent event)
          calls loadLocalCatalog() and displays an error message when no catalog is available
 boolean loadLocalCatalog()
          loads from Class
(package private)  void orderButtonAction()
          An order will be issued.
(package private)  void OrderPanelWindowClosing()
          close the order window
(package private)  void requestCatalogAction(org.ssonet.examples.catalog.customer.Customer customer)
          creates a new MerchantListFrame for the customer
 void update()
          Updates the customer window, as example when a new catalog is loaded
 void update(int row)
          updates the subtotal price in column 5 and the total sum
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, 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, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATALOG

public static final java.lang.String CATALOG
See Also:
Constant Field Values

ORDER

public static final java.lang.String ORDER
See Also:
Constant Field Values

REQUEST

public static final java.lang.String REQUEST
See Also:
Constant Field Values

customer

public org.ssonet.examples.catalog.customer.Customer customer

tableView

org.ssonet.examples.catalog.customer.ProductTable tableView

quitButton

javax.swing.JButton quitButton

orderButton

javax.swing.JButton orderButton

validity

javax.swing.JLabel validity

catalog

org.ssonet.examples.catalog.customer.Catalog catalog

numberOfProducts

int numberOfProducts

productPanel

org.ssonet.examples.catalog.customer.ProductPanel productPanel

orderSumPanel

org.ssonet.examples.catalog.customer.OrderSumPanel orderSumPanel

dataModel

public javax.swing.table.TableModel dataModel

data

java.util.Vector data

Headlines

static final java.lang.String[] Headlines

mainMenuBar

javax.swing.JMenuBar mainMenuBar

menu1

javax.swing.JMenu menu1

menu2

javax.swing.JMenu menu2

menu3

javax.swing.JMenu menu3

menu4

javax.swing.JMenu menu4

catalogConfig

javax.swing.JMenuItem catalogConfig

orderConfig

javax.swing.JMenuItem orderConfig

loadCatalog

javax.swing.JMenuItem loadCatalog

requestCatalog

javax.swing.JMenuItem requestCatalog

about

javax.swing.JMenuItem about

exit

javax.swing.JMenuItem exit
Constructor Detail

OrderPanel

public OrderPanel(org.ssonet.examples.catalog.customer.Customer customer)
creates a catalogwindow for the customer

Method Detail

getOrderSum

public float getOrderSum(java.util.Vector paramVector)
Erzeugt die Liste


addMenu

public void addMenu(javax.swing.JApplet applet)
adds the menu to the upper edge of the window


loadLocalCatalog

public boolean loadLocalCatalog()
loads from Class

See Also:

all changeable values of the order

OrderPanelWindowClosing

void OrderPanelWindowClosing()
close the order window


about

public void about()
shows the info window


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
handles ActionListener calls

Specified by:
actionPerformed in interface java.awt.event.ActionListener

loadCatalogAction

void loadCatalogAction(java.awt.event.ActionEvent event)
calls loadLocalCatalog() and displays an error message when no catalog is available


requestCatalogAction

void requestCatalogAction(org.ssonet.examples.catalog.customer.Customer customer)
creates a new MerchantListFrame for the customer


update

public void update(int row)
updates the subtotal price in column 5 and the total sum


changeConfig

public void changeConfig(java.lang.String action,
                         java.lang.String readableName)
changes customers ActionConfiguration for catalog receiving


orderButtonAction

void orderButtonAction()
An order will be issued. Only products with an amount > 0 will be taken into consideration. The orderform window will be opened


update

public void update()
Updates the customer window, as example when a new catalog is loaded



Copyright © 2003 DRIM Team. All Rights Reserved.