vipratech.beans.userbeans
Class SelectFunction

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--vipratech.awt.VPanel
                          |
                          +--vipratech.beans.userbeans.SelectFunction

public class SelectFunction
extends VPanel
implements java.awt.event.ItemListener

This bean show a menu, where some functions can added at design time. After adding the functions it must be connect with Sliderpanel and Functionpanel to select the function which are calculating for. So you can built a function generator when you connect the Functionpanel to a XYgraph or so on.

It communicate with other beans about PropertyValue "SelectedItem".

Version:
0.9, July 25, 2001
Author:
Hendrik Dathe   dathe@chemie.uni-leipzig.de
See Also:
Serialized Form

Fields inherited from class vipratech.awt.VPanel
fm
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
SelectFunction()
           
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 boolean getEnabled()
          Returns the enabled state of the button.
 boolean isRectEnabled()
           
 boolean isSinEnabled()
           
 boolean isSprungEnabled()
           
 boolean isTriEnabled()
           
 void itemStateChanged(java.awt.event.ItemEvent event)
          Item changes in the drop down menu of this component.
 void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
           
 void setEnabled(boolean enabled)
          Allows the button to be disabled.
 void setRectEnabled(boolean newRectEnabled)
           
 void setSinEnabled(boolean newSinEnabled)
           
 void setSprungEnabled(boolean newSprungEnabled)
           
 void setTriEnabled(boolean newTriEnabled)
           
 
Methods inherited from class java.awt.Panel
addNotify
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, update, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, disable, dispatchEvent, enable, enable, enableInputMethods, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, 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, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectFunction

public SelectFunction()
Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
Overrides:
addPropertyChangeListener in class java.awt.Component

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
Overrides:
removePropertyChangeListener in class java.awt.Component

setEnabled

public final void setEnabled(boolean enabled)
Allows the button to be disabled. The button is enabled by default.
Overrides:
setEnabled in class java.awt.Component

getEnabled

public final boolean getEnabled()
Returns the enabled state of the button.

setRectEnabled

public void setRectEnabled(boolean newRectEnabled)

isRectEnabled

public boolean isRectEnabled()

setTriEnabled

public void setTriEnabled(boolean newTriEnabled)

isTriEnabled

public boolean isTriEnabled()

setSprungEnabled

public void setSprungEnabled(boolean newSprungEnabled)

isSprungEnabled

public boolean isSprungEnabled()

setSinEnabled

public void setSinEnabled(boolean newSinEnabled)

isSinEnabled

public boolean isSinEnabled()

itemStateChanged

public final void itemStateChanged(java.awt.event.ItemEvent event)
Item changes in the drop down menu of this component.
Specified by:
itemStateChanged in interface java.awt.event.ItemListener

dathe@chemie.uni-leipzig.de"

http://leipzig.vernetztes-studium.de