gishur.graph.awt
Class BooleanTypeFormat

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Choice
              |
              +--gishur.graph.awt.BooleanTypeFormat
All Implemented Interfaces:
javax.accessibility.Accessible, java.lang.Cloneable, Cloneable, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, TypeFormat

public class BooleanTypeFormat
extends java.awt.Choice
implements TypeFormat

A TypeFormat, that handles boolean values.

Version:
1.0
Author:
Thomas Wolf
See Also:
Serialized Form

Inner classes inherited from class java.awt.Choice
java.awt.Choice.AccessibleAWTChoice
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent
 
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
BooleanTypeFormat()
          Creates a new BooleanTypeFormat.
 
Method Summary
 java.lang.Object clone()
          Creates a new object of the same class as this object.
 java.awt.Component getComponent()
          Returns the java.awt.Component, that handles the input.
 java.lang.String getFormatName()
          Returns the name, under which this TypeFormat should be handled.
 java.awt.Dimension getPreferredSize()
          Gets the preferred size of this component.
 java.lang.Class[] getTypeClasses()
          Returns all classes, that this TypeFormat likes to handle.
 java.lang.Object getValue()
          Returns the actual value.
 void setValue(java.lang.Object value)
          Sets the value; it should be showed by the connected input component.
 
Methods inherited from class java.awt.Choice
add, addItem, addItemListener, addNotify, countItems, getAccessibleContext, getItem, getItemCount, getListeners, getSelectedIndex, getSelectedItem, getSelectedObjects, insert, paramString, processEvent, processItemEvent, remove, remove, removeAll, removeItemListener, select, select
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, 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, paint, paintAll, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BooleanTypeFormat

public BooleanTypeFormat()
Creates a new BooleanTypeFormat.
Method Detail

clone

public java.lang.Object clone()
Creates a new object of the same class as this object. It then initializes each of the new object's fields by assigning it the same value as the corresponding field in this object. No constructor is called. In some Implementations, the fields are cloned, if possible (deep clone).
Specified by:
clone in interface Cloneable
Overrides:
clone in class java.lang.Object
Returns:
a clone of this object.

getTypeClasses

public java.lang.Class[] getTypeClasses()
Returns all classes, that this TypeFormat likes to handle.
Specified by:
getTypeClasses in interface TypeFormat
Returns:
all classes, that this TypeFormat likes to handle.

getFormatName

public java.lang.String getFormatName()
Returns the name, under which this TypeFormat should be handled.
Specified by:
getFormatName in interface TypeFormat
Returns:
the name, under which this TypeFormat should be handled.

getComponent

public java.awt.Component getComponent()
Returns the java.awt.Component, that handles the input.
Specified by:
getComponent in interface TypeFormat
Returns:
the java.awt.Component, that handles the input.

setValue

public void setValue(java.lang.Object value)
Sets the value; it should be showed by the connected input component.
Specified by:
setValue in interface TypeFormat
Parameters:
value - the value (of a accepted type)

getValue

public java.lang.Object getValue()
Returns the actual value.
Specified by:
getValue in interface TypeFormat
Returns:
the actual value.

getPreferredSize

public java.awt.Dimension getPreferredSize()
Gets the preferred size of this component.
Overrides:
getPreferredSize in class java.awt.Component