Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.gopas.rt.gui
Class RtTextField  view RtTextField download RtTextField.java

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.text.JTextComponent
                  extended byjavax.swing.JTextField
                      extended bycom.gopas.rt.gui.RtTextField
All Implemented Interfaces:
javax.accessibility.Accessible, com.gopas.rt.model.Bound, javax.swing.event.DocumentListener, java.util.EventListener, java.awt.event.FocusListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.beans.PropertyChangeListener, com.gopas.rt.util.RT, RtGui, javax.swing.Scrollable, java.io.Serializable, javax.swing.SwingConstants

public class RtTextField
extends javax.swing.JTextField
implements com.gopas.rt.model.Bound, java.awt.event.FocusListener, javax.swing.event.DocumentListener, com.gopas.rt.util.RT, RtGui

Textfield implementing the bound interface.

Version:
: $Revision: 1.1.1.1 $

Nested Class Summary
 
Nested classes inherited from class javax.swing.JTextField
javax.swing.JTextField.AccessibleJTextField
 
Nested classes inherited from class javax.swing.text.JTextComponent
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  com.gopas.rt.model.AttrDesc attrDesc
           
protected  java.lang.String attrPath
           
private  com.gopas.rt.model.Entity baseObject
           
private  boolean editable
           
protected  com.gopas.rt.model.UIFormat format
           
 boolean modified
           
private  KeyChecker myKeyChecker
           
private static boolean RTTEXTFIELD_DEBUG
           
 
Fields inherited from class javax.swing.JTextField
notifyAction
 
Fields inherited from class javax.swing.text.JTextComponent
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY
 
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 com.gopas.rt.util.RT
ACTIVATED_STATUS, ALL, CREATED_STATUS, DEBUG, DEBUG_MSG, DEBUG_ON, DEFAULT_DEBUG_LEVEL, DEFAULT_ERROR_LEVEL, DEFAULT_VERBOSE_LEVEL, DEFAULT_WARNING_LEVEL, DELETED_STATUS, EASY_ERR, ERROR_MSG, FORCE, GENERAL, MODIFIED_STATUS, nl, NORMAL_ERR, NOTE, NOTE1, NOTE2, NOTE3, NOTE4, NOTE5, OFF, PROGRESS, SEVERE_ERR, VERBOSE_MSG, WARNING, WARNING_MSG
 
Fields inherited from interface com.gopas.rt.gui.RtGui
calculatedFG, centerAppearance, defaultBG, defaultFG, emptyBorder, errorBG, focusBorder, focusColor, FORM_BUTTON, FORM_CHECKBOX, FORM_DATUM, FORM_DEFAULT, FORM_ENUM, FORM_INT, FORM_MONEY, FORM_NUMBER, FORM_PASSWORD, FORM_PATH, FORM_PROZENT, FORM_REF, FORM_SELECT, FORM_TYPES, invalidBG, invalidFG, isValidGuiFG, leftAppearance, readonlyBG, readonlyFG, rightAppearance, selectedBG, selectedFG, unconnectedBG
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
RtTextField()
           
RtTextField(int nCols, int points)
           
RtTextField(java.lang.String attrPath, com.gopas.rt.model.UIFormat format, int nCols, boolean editable)
           
 
Method Summary
 void changedUpdate(javax.swing.event.DocumentEvent e)
          implements DocumentListener
 void focusGained(java.awt.event.FocusEvent e)
          from FocusListener
 void focusLost(java.awt.event.FocusEvent e)
          from FocusListener
protected  java.lang.Object formatValue(java.lang.Object val)
          Formatiere einen Wert fuer die GUI
 java.lang.String getAttrPath()
           
 com.gopas.rt.model.Entity getBaseObject()
          Gib das verbundene Basis-Objekt zurueck.
 java.lang.Object getBOValue(com.gopas.rt.model.Entity bo)
          Hole den Wert aus dem BO.
 java.awt.Component getTrailer()
          Bestimmt, was hinter dem Textfeld ausgegeben werden soll, z.B.
 void insertUpdate(javax.swing.event.DocumentEvent e)
          implements DocumentListener
protected  void processKeyEvent(java.awt.event.KeyEvent e)
          Override the default key dispatch system from Component to hook into the swing javax.swing.InputMap / javax.swing.ActionMap system.
 void propertyChange(java.beans.PropertyChangeEvent e)
          implements PropertyChangeListener via Bound
 void readValue(com.gopas.rt.model.Entity bo)
          Liest einen Wert aus der GUI-Komponente und setzt ihn fuer das OM um.
 void removeUpdate(javax.swing.event.DocumentEvent e)
          implements DocumentListener
protected  java.lang.Object scanValue(java.lang.Object val)
          Scanne einen Wert von der GUI
 void setAttrPath(java.lang.String p)
           
 void setBaseObject(com.gopas.rt.model.Entity newObj)
          Setze das Basis, fuer das Werte angezeigt werden sollen.
 void setBOValue(com.gopas.rt.model.Entity bo, java.lang.Object val)
          Schreibe Wert nach BO zurueck.
 void setEditable(boolean editable)
          Enables/disabled this text component's editability.
 void setFontSize(int points)
          Change font size.
 void writeValue(com.gopas.rt.model.Entity bo)
          Schreibt einen Wert formatiert auf die GUI raus.
 
Methods inherited from class javax.swing.JTextField
addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffset
 
Methods inherited from class javax.swing.text.JTextComponent
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getFocusAccelerator, getHighlighter, getInputMethodListeners, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paramString, paste, read, removeCaretListener, removeInputMethodListener, removeKeymap, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setDisabledTextColor, setDragEnabled, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, setUI, updateUI, viewToModel, write
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, 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, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, 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, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, 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, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, 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, 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, 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, transferFocusBackward, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

baseObject

private com.gopas.rt.model.Entity baseObject

attrPath

protected java.lang.String attrPath

attrDesc

protected com.gopas.rt.model.AttrDesc attrDesc

myKeyChecker

private KeyChecker myKeyChecker

format

protected com.gopas.rt.model.UIFormat format

editable

private boolean editable

modified

public boolean modified

RTTEXTFIELD_DEBUG

private static final boolean RTTEXTFIELD_DEBUG
See Also:
Constant Field Values
Constructor Detail

RtTextField

public RtTextField()

RtTextField

public RtTextField(int nCols,
                   int points)

RtTextField

public RtTextField(java.lang.String attrPath,
                   com.gopas.rt.model.UIFormat format,
                   int nCols,
                   boolean editable)
Method Detail

getTrailer

public java.awt.Component getTrailer()
Bestimmt, was hinter dem Textfeld ausgegeben werden soll, z.B. eine Einheit... Default: wenn Prozent, dan ein Prozentzeichen. ??? move to subclass ???


setEditable

public void setEditable(boolean editable)
Description copied from class: javax.swing.text.JTextComponent
Enables/disabled this text component's editability.


focusGained

public void focusGained(java.awt.event.FocusEvent e)
from FocusListener

Specified by:
focusGained in interface java.awt.event.FocusListener

focusLost

public void focusLost(java.awt.event.FocusEvent e)
from FocusListener

Specified by:
focusLost in interface java.awt.event.FocusListener

changedUpdate

public void changedUpdate(javax.swing.event.DocumentEvent e)
implements DocumentListener

Specified by:
changedUpdate in interface javax.swing.event.DocumentListener

insertUpdate

public void insertUpdate(javax.swing.event.DocumentEvent e)
implements DocumentListener

Specified by:
insertUpdate in interface javax.swing.event.DocumentListener

removeUpdate

public void removeUpdate(javax.swing.event.DocumentEvent e)
implements DocumentListener

Specified by:
removeUpdate in interface javax.swing.event.DocumentListener

setBaseObject

public void setBaseObject(com.gopas.rt.model.Entity newObj)
Setze das Basis, fuer das Werte angezeigt werden sollen. implements Bound

Specified by:
setBaseObject in interface com.gopas.rt.model.Bound

writeValue

public void writeValue(com.gopas.rt.model.Entity bo)
Schreibt einen Wert formatiert auf die GUI raus.

Specified by:
writeValue in interface com.gopas.rt.model.Bound

formatValue

protected java.lang.Object formatValue(java.lang.Object val)
Formatiere einen Wert fuer die GUI


readValue

public void readValue(com.gopas.rt.model.Entity bo)
Liest einen Wert aus der GUI-Komponente und setzt ihn fuer das OM um.

Specified by:
readValue in interface com.gopas.rt.model.Bound

scanValue

protected java.lang.Object scanValue(java.lang.Object val)
Scanne einen Wert von der GUI


getBaseObject

public com.gopas.rt.model.Entity getBaseObject()
Gib das verbundene Basis-Objekt zurueck. implements Bound

Specified by:
getBaseObject in interface com.gopas.rt.model.Bound

getBOValue

public java.lang.Object getBOValue(com.gopas.rt.model.Entity bo)
Hole den Wert aus dem BO. implements Bound

Specified by:
getBOValue in interface com.gopas.rt.model.Bound

setBOValue

public void setBOValue(com.gopas.rt.model.Entity bo,
                       java.lang.Object val)
Schreibe Wert nach BO zurueck. implements Bound

Specified by:
setBOValue in interface com.gopas.rt.model.Bound

setFontSize

public void setFontSize(int points)
Change font size.


propertyChange

public void propertyChange(java.beans.PropertyChangeEvent e)
implements PropertyChangeListener via Bound

Specified by:
propertyChange in interface java.beans.PropertyChangeListener

processKeyEvent

protected void processKeyEvent(java.awt.event.KeyEvent e)
Description copied from class: javax.swing.JComponent
Override the default key dispatch system from Component to hook into the swing javax.swing.InputMap / javax.swing.ActionMap system. See this report for more details, it's somewhat complex.


getAttrPath

public java.lang.String getAttrPath()

setAttrPath

public void setAttrPath(java.lang.String p)