|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.text.JTextComponent
javax.swing.JTextField
pt.moredata.widgets.TextField
pt.moredata.widgets.TextFieldObject
| Nested Class Summary |
| Nested classes inherited from class pt.moredata.widgets.TextField |
TextField.DataFieldFocusListener, TextField.FocusGrabber, TextField.Sendkey |
| 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 java.lang.String |
format
|
protected java.lang.Object |
value
Valor que o campo contem. |
| 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.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface pt.moredata.widgets.FieldObject |
CHECK_BOX, COMBO_BOX, EDITOR_PANE, IMAGE_FIELD, RADIO_BUTTONS, TEXT_FIELD |
| 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 | |
TextFieldObject()
Creates a new instance of TextFieldObject |
|
| Method Summary | |
void |
addComboElement(java.lang.Object code,
java.lang.Object description)
Adiciona um elemento a combobox. |
void |
addFocListener(java.awt.event.FocusListener l)
Adds the specified focus listener to receive focus events from this component when this component gains input focus. |
void |
clearImageScreen()
Clears all references to previously added image. |
java.awt.Component |
getComponent()
Devolve o Component associado a um FieldObject |
int |
getDecimals()
Devolve o numero de casas decimais que se permite digitar |
java.lang.String |
getDescriptionColumn()
Coluna de descricao de chave estrangeira |
int |
getMaxColumns()
Numero maximo de caracteres numa linha |
int |
getMaxLines()
Numero maximo de linhas do painel de texto. |
java.lang.Object |
getObject()
Devolve o valor que esta preenchido no campo ??? |
boolean |
getRequired()
Gets the required attribute of the DataField object |
boolean |
isAutoFormat()
Gets the autoFormat attribute of the DataField object |
void |
removeAllItems()
Remove todos os dados que estao na combo e o vector de chaves primarias e acaba com a chave primaria corrente que se calhar ate deveria vir do data control e nao ser mantido na combobox |
void |
removeFocListener(java.awt.event.FocusListener l)
Removes the specified focus listener so that it no longer receives focus events from this component. |
void |
setCodeColumn(java.lang.String referencedColumn)
|
void |
setDecimals(int _nd)
Define o numero de casas decimais |
void |
setDescriptionColumn(java.lang.String descriptionColumn)
Sets the descriptionColumn attribute of the DataField object |
void |
setEditable(boolean editable)
setEditable |
void |
setEnabled(boolean b)
|
void |
setForeground(java.awt.Color fg)
|
void |
setFormat(java.lang.String _format)
Afecta o formato para formatacao de valores numericos e(ou) datas apos perda de focus |
void |
setMaxColumns(int _maxColumns)
Sets the maxColumns attribute of the DataEditorPane object |
void |
setMaxLines(int _maxLines)
Sets the maxLines attribute of the DataEditorPane object |
void |
setObject(java.lang.Object object)
Afecta o objecto com um valor e mostra no Field o seu conteudo Se a coluna a que o campo pertence fôr chave estrangeira efectua o lookup da descodificação correspondente. |
void |
setShowCode(boolean showCode)
Sets the showCode attribute of the DataField object |
void |
setTable(java.lang.String table)
|
void |
setValidateOnLostFocus(boolean _validateOnLostFocus)
Sets the validateOnLostFocus attribute of the DataField object |
| Methods inherited from class javax.swing.JTextField |
addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, 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, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, processInputMethodEvent, read, removeCaretListener, removeKeymap, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, write |
| 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, getPropertyChangeListeners, getPropertyChangeListeners, 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, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, 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, 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, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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 |
protected java.lang.String format
protected java.lang.Object value
Se combo box ou com descodifica��o contem sempre o valor da chave estrangeira.
| Constructor Detail |
public TextFieldObject()
| Method Detail |
public int getDecimals()
FieldObject
getDecimals in interface FieldObjectpublic java.lang.String getDescriptionColumn()
FieldObject
getDescriptionColumn in interface FieldObjectpublic java.lang.Object getObject()
FieldObject
getObject in interface FieldObjectgetObject in class TextFieldpublic void setDecimals(int _nd)
FieldObject
setDecimals in interface FieldObject_nd - Número de casas decimaispublic void setEditable(boolean editable)
FieldObject
setEditable in interface FieldObjectpublic void setEnabled(boolean b)
setEnabled in interface FieldObjectpublic void setFormat(java.lang.String _format)
FieldObject
setFormat in interface FieldObjectsetFormat in class TextField_format - The new format valuepublic void setObject(java.lang.Object object)
FieldObject
setObject in interface FieldObjectsetObject in class TextFieldobject - The new object valuepublic void setValidateOnLostFocus(boolean _validateOnLostFocus)
FieldObject
setValidateOnLostFocus in interface FieldObjectsetValidateOnLostFocus in class TextField_validateOnLostFocus - The new validateOnLostFocus valuepublic java.awt.Component getComponent()
FieldObject
getComponent in interface FieldObjectpublic void clearImageScreen()
clearImageScreen in interface FieldObjectpublic boolean getRequired()
getRequired in interface FieldObjectgetRequired in class TextFieldpublic boolean isAutoFormat()
isAutoFormat in interface FieldObjectisAutoFormat in class TextFieldpublic void setCodeColumn(java.lang.String referencedColumn)
setCodeColumn in interface FieldObjectpublic void setDescriptionColumn(java.lang.String descriptionColumn)
setDescriptionColumn in interface FieldObjectdescriptionColumn - The new descriptionColumn valuepublic void setForeground(java.awt.Color fg)
setForeground in interface FieldObjectpublic void setShowCode(boolean showCode)
setShowCode in interface FieldObjectpublic void setTable(java.lang.String table)
setTable in interface FieldObjectpublic void addFocListener(java.awt.event.FocusListener l)
FieldObject
addFocListener in interface FieldObjectl - - the focus listenerpublic void removeFocListener(java.awt.event.FocusListener l)
FieldObject
removeFocListener in interface FieldObjectl - - the focus listener
public void addComboElement(java.lang.Object code,
java.lang.Object description)
FieldObject
addComboElement in interface FieldObjectpublic void setMaxColumns(int _maxColumns)
setMaxColumns in interface FieldObject_maxColumns - The new maxColumns valuepublic int getMaxColumns()
getMaxColumns in interface FieldObjectpublic int getMaxLines()
getMaxLines in interface FieldObjectpublic void setMaxLines(int _maxLines)
setMaxLines in interface FieldObject_maxLines - The new maxLines valuepublic void removeAllItems()
removeAllItems in interface FieldObject
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||