DESY ACOP Beans Home

de.desy.acop.displayers.selector
Class MultipleConnectionCustomizer<T extends AcopDisplayerParameters>

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by de.desy.acop.displayers.selector.MultipleConnectionCustomizer<T>
Type Parameters:
T - AcopDisplayerParameters that are being handled by this class
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.Customizer, java.io.Serializable, javax.accessibility.Accessible
Direct Known Subclasses:
ChartConnectionCustomizer, TableConnectionCustomizer

public abstract class MultipleConnectionCustomizer<T extends AcopDisplayerParameters>
extends javax.swing.JPanel
implements java.beans.Customizer

MultipleConnectionCustomizer is customizer panel that enables selection of multiple AcopDisplayerParameters. This component is intended to be used with MultipleAcopDisplayers.

The component constis of the parameters selector and customization user interface where the displayer parameters cen be constructed and then added to the displayer. The left side of the panel shows the list of all displayer parameters on the displayer that this customizer belongs to.

Version:
$Id: Templates.xml,v 1.10 2004/01/13 16:17:13 jbobnar Exp $
Author:
Jaka Bobnar
See Also:
MultipleAcopDisplayer, Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  java.util.Vector<T> displayerParameters
           
protected  T selectedParameters
           
 
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
MultipleConnectionCustomizer()
          Constructs a new MultipleConnectionCustomizer.
 
Method Summary
 void applyConnectionParameters(ConnectionParameters p)
          This method will select the given ConnectionParameters in the combo box browsers.
protected abstract  T generateParameters()
           
protected  javax.swing.JButton getAddButton()
           
protected  ConverterCustomizer getConverterPanel()
           
protected  javax.swing.JTabbedPane getCustomizerTabbedPane()
           
protected  MultipleAcopDisplayer<T> getDisplayer()
           
abstract  T[] getDisplayerParameters()
          Returns an array of displayer parameters containing all displayer parameters.
protected  javax.swing.ListCellRenderer getListRenderer()
           
protected  javax.swing.JList getSelectionList()
           
protected  SelectorGUI getSelectorGUI()
           
protected abstract  MultipleDisplayerAbstractSettingsPanel<T> getSettingsPanel()
           
 void setConverterTabEnabled(boolean enabled)
          Enables/disables the converter customizer tab.
 void setDisplayerParameters(T[] parameters)
          Sets displayer parameters to this customizer.
 void setObject(java.lang.Object bean)
           
protected  void setSelectedParameters(T selected)
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, 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, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, 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, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, 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, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, 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
 
Methods inherited from interface java.beans.Customizer
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

selectedParameters

protected T extends AcopDisplayerParameters selectedParameters

displayerParameters

protected java.util.Vector<T extends AcopDisplayerParameters> displayerParameters
Constructor Detail

MultipleConnectionCustomizer

public MultipleConnectionCustomizer()
Constructs a new MultipleConnectionCustomizer.

Method Detail

getAddButton

protected javax.swing.JButton getAddButton()

getListRenderer

protected javax.swing.ListCellRenderer getListRenderer()

getSelectionList

protected javax.swing.JList getSelectionList()

getCustomizerTabbedPane

protected javax.swing.JTabbedPane getCustomizerTabbedPane()

getConverterPanel

protected ConverterCustomizer getConverterPanel()

getSettingsPanel

protected abstract MultipleDisplayerAbstractSettingsPanel<T> getSettingsPanel()

getSelectorGUI

protected SelectorGUI getSelectorGUI()

generateParameters

protected abstract T generateParameters()

setObject

public void setObject(java.lang.Object bean)
Specified by:
setObject in interface java.beans.Customizer

getDisplayerParameters

public abstract T[] getDisplayerParameters()
Returns an array of displayer parameters containing all displayer parameters. (use displayerParameters vector and cast elements to T)

Returns:
displayerParameters

setDisplayerParameters

public void setDisplayerParameters(T[] parameters)
Sets displayer parameters to this customizer. This parameters will be displayed as parameters set on the displayer and will be listed in the left list.

Parameters:
cps - selected parameters

setSelectedParameters

protected void setSelectedParameters(T selected)

setConverterTabEnabled

public void setConverterTabEnabled(boolean enabled)
Enables/disables the converter customizer tab.

Parameters:
enabled - true if converter tab should be enabled

applyConnectionParameters

public void applyConnectionParameters(ConnectionParameters p)
This method will select the given ConnectionParameters in the combo box browsers.

Parameters:
p -

getDisplayer

protected MultipleAcopDisplayer<T> getDisplayer()


Copyright © 2010. All Rights Reserved.