pt.moredata.widgets
Class EditorPaneObject

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended bypt.moredata.widgets.EditorPane
                      extended bypt.moredata.widgets.EditorPaneObject
All Implemented Interfaces:
javax.accessibility.Accessible, FieldObject, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable

public class EditorPaneObject
extends EditorPane
implements FieldObject

EditorPaneObject.java Company MoreData

Version:
$Revision: 1.4 $
Author:
pcarmo
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
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  boolean editable
          Propriedade que indica se o campo e editavel ou nao.
protected  java.lang.Object value
          Valor que o campo contem.
 
Fields inherited from class pt.moredata.widgets.EditorPane
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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
EditorPaneObject()
           
 
Method Summary
 void addActionListener(java.awt.event.ActionListener l)
          Adds a feature to the ActionListener attribute of the DataField object
 void addAfterField(AfterFieldListener l)
           
 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.lang.String getAllowedCharacters()
          Return a String with a set of characters that are allowed to be used in the widget.
 int getColumns()
          Gets the columns attribute of the DataField object
 java.awt.Component getComponent()
          Devolve o Component associado a um FieldObject
 java.lang.String getDbDataType()
          Devolve o valor da propriedade do text field
 int getDecimals()
          Devolve o numero de casas decimais que se permite digitar
 java.lang.String getDescriptionColumn()
          Coluna de descricao de chave estrangeira
 double getDouble()
          Devolve o valor correspondente ao campo em double ???
 java.lang.String getFormat()
          Gets the format attribute of the DataField object
 java.lang.String getHelpContextId()
          Gets the helpContextId attribute of the DataField object
 int getHorizontalAlignment()
          Gets the horizontalAlignment attribute of the DataField object
 javax.swing.BoundedRangeModel getHorizontalVisibility()
          Gets the horizontalVisibility attribute of the DataField object
 long getLong()
          Devolve o valor correspondente ao campo em long ???
 java.lang.String getMaxErrorMessage()
          Mensagem de validação do valor maximo
 int getMaxLength()
          Tamanho maximo do field
 long getMaxValue()
           
 java.lang.String getMinErrorMessage()
          Mensagem de validação do valor maximo
 long getMinValue()
          Sets the minValue attribute of the DataField object
 java.lang.Object getObject()
          Devolve o valor que esta preenchido no campo ???
 boolean getOnlyDigits()
          Retorna se o campo permite ou nao preencher apenas digitos ????
 boolean getRequired()
          Gets the required attribute of the DataField object
 int getScrollOffset()
          Gets the scrollOffset attribute of the DataField object
 boolean getValidateOnLostFocus()
          Propriedade que define se o campo deve ou nao ser validado quando perde o focus
 boolean isAutoFormat()
          Gets the autoFormat attribute of the DataField object
 void postActionEvent()
          Processa os eventos que ocorrem e envia-os para os objectos ActionListener registados
 void removeActionListener(java.awt.event.ActionListener l)
          Remove um actionListener
 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 setActionCommand(java.lang.String command)
          Sets the actionCommand attribute of the DataField object
 void setAllowedCharacters(java.lang.String allowedCharacters)
          Set the of characters that are allowed to be used in the widget.
 void setAutoFormat(boolean _auto)
          setAutomaticFormat
 void setCodeColumn(java.lang.String referencedColumn)
           
 void setColumns(int columns)
          Sets the columns attribute of the DataField object
 void setDbDataType(java.lang.String dbDataType)
          Afecta o tipo de dados que o campo recolhe ou mostra
 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)
          Sets the enabled attribute of the DataEditorPane object
 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 setHelpContextId(java.lang.String _helpContextId)
          Afecta a URL do help sensivel ao contexto deste campo
 void setHorizontalAlignment(int alignment)
          Sets the horizontalAlignment attribute of the DataField object
 void setMaxErrorMessage(java.lang.String message)
          Altera a mensagem de validação do valor maximo o caracter # é utilizado como macro para o valor currente o caracter ^ é utilizado como macro para o valor maximo
 void setMaxLength(int _maxLength)
          Altera o atributo maxLength do objecto DataField
 void setMaxValue(long _maxValue)
          Sets the maxValue attribute of the FieldObject object
 void setMinErrorMessage(java.lang.String message)
          Altera a mensagem de validação do valor minimo o caracter # é utilizado como macro para o valor currente o caracter ^ é utilizado como macro para o valor minimo
 void setMinValue(long _minValue)
          Sets the minValue attribute of the FieldObject 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 setOnlyDigits(boolean _onlyDigits)
          Sets the onlyDigits attribute of the DataField object
 void setRequired(boolean _required)
          Se required a true o campo eh de preenchimento obrigatorio
 void setScrollOffset(int scrollOffset)
          Sets the scrollOffset attribute of the DataField object
 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 pt.moredata.widgets.EditorPane
addCaretListener, addHyperlinkListener, addInputMethodListener, addKeymap, autoScroll, copy, createEditorKitForContentType, cut, fireHyperlinkUpdate, getAccessibleContext, getActions, getCaret, getCaretColor, getCaretPosition, getContentType, getDisabledTextColor, getDocument, getEditorKit, getEditorKitForContentType, getFocusAccelerator, getFont, getHighlighter, getKeymap, getKeymap, getMargin, getMaxColumns, getMaxLines, getPage, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getTextLines, isEditable, isEnabled, isFocusable, loadKeymap, modelToView, moveCaretPosition, paste, printNLines, read, read, registerEditorKitForContentType, registerEditorKitForContentType, removeCaretListener, removeHyperlinkListener, removeKeymap, removeNotify, select, selectAll, setCaret, setCaretColor, setCaretPosition, setContentType, setDisabledTextColor, setDocument, setEditorKit, setEditorKitForContentType, setFocusAccelerator, setFont, setHighlighter, setKeymap, setMargin, setMaxColumns, setMaxLines, setPage, setPage, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setText, viewToModel, write
 
Methods inherited from class javax.swing.JPanel
getUI, getUIClassID, paramString, setUI, updateUI
 
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, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, 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, scrollRectToVisible, 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, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, 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 pt.moredata.widgets.FieldObject
addCaretListener, addComponentListener, addContainerListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, copy, cut, getAccessibleContext, getActions, getCaretPosition, getDocument, getFocusAccelerator, getFont, getKeymap, getMaxColumns, getMaxLines, getPreferredScrollableViewportSize, getPreferredSize, getScrollableBlockIncrement, getScrollableUnitIncrement, getSelectedText, getSelectionEnd, getSelectionStart, getText, getText, grabFocus, hasFocus, isEditable, isValidateRoot, modelToView, moveCaretPosition, paste, read, removeCaretListener, removeComponentListener, removeContainerListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, requestFocus, scrollRectToVisible, select, selectAll, setBackground, setBorder, setBounds, setCaretPosition, setDisabledTextColor, setDocument, setFocusAccelerator, setFont, setMaxColumns, setMaxLines, setPreferredSize, setSelectionEnd, setSelectionStart, setText, viewToModel, write
 

Field Detail

editable

protected boolean editable
Propriedade que indica se o campo e editavel ou nao. XXX: Podia-se usar o do proprio EditorPane.


value

protected java.lang.Object value
Valor que o campo contem.

Se combo box ou com descodificação contem sempre o valor da chave estrangeira.

Constructor Detail

EditorPaneObject

public EditorPaneObject()
Method Detail

addAfterField

public void addAfterField(AfterFieldListener l)
Specified by:
addAfterField in interface FieldObject

getDecimals

public int getDecimals()
Description copied from interface: FieldObject
Devolve o numero de casas decimais que se permite digitar

Specified by:
getDecimals in interface FieldObject
Returns:
The decimals value

getDescriptionColumn

public java.lang.String getDescriptionColumn()
Description copied from interface: FieldObject
Coluna de descricao de chave estrangeira

Specified by:
getDescriptionColumn in interface FieldObject
Returns:
O valor de descriptionColumn

getObject

public java.lang.Object getObject()
Description copied from interface: FieldObject
Devolve o valor que esta preenchido no campo ??? Ainda nao esta a funcionar com combos

Specified by:
getObject in interface FieldObject
Overrides:
getObject in class EditorPane
Returns:
The object value

setDecimals

public void setDecimals(int _nd)
Description copied from interface: FieldObject
Define o numero de casas decimais

Specified by:
setDecimals in interface FieldObject
Parameters:
_nd - Número de casas decimais

setEditable

public void setEditable(boolean _editable)
Description copied from interface: FieldObject
setEditable

Specified by:
setEditable in interface FieldObject
Overrides:
setEditable in class EditorPane
Parameters:
_editable - The new editable value

setEnabled

public void setEnabled(boolean b)
Description copied from class: EditorPane
Sets the enabled attribute of the DataEditorPane object

Specified by:
setEnabled in interface FieldObject
Overrides:
setEnabled in class EditorPane
Parameters:
b - The new enabled value

setFormat

public void setFormat(java.lang.String _format)
Description copied from interface: FieldObject
Afecta o formato para formatacao de valores numericos e(ou) datas apos perda de focus

Specified by:
setFormat in interface FieldObject
Parameters:
_format - O novo formato

setObject

public void setObject(java.lang.Object object)
Description copied from interface: FieldObject
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.

Specified by:
setObject in interface FieldObject
Overrides:
setObject in class EditorPane
Parameters:
object - The new object value

setValidateOnLostFocus

public void setValidateOnLostFocus(boolean _validateOnLostFocus)
Description copied from interface: FieldObject
Sets the validateOnLostFocus attribute of the DataField object

Specified by:
setValidateOnLostFocus in interface FieldObject
Parameters:
_validateOnLostFocus - The new validateOnLostFocus value

getComponent

public java.awt.Component getComponent()
Description copied from interface: FieldObject
Devolve o Component associado a um FieldObject

Specified by:
getComponent in interface FieldObject
Returns:
O Component respectivo

clearImageScreen

public void clearImageScreen()
Clears all references to previously added image.

Specified by:
clearImageScreen in interface FieldObject

getRequired

public boolean getRequired()
Gets the required attribute of the DataField object

Specified by:
getRequired in interface FieldObject
Returns:
The required value

isAutoFormat

public boolean isAutoFormat()
Gets the autoFormat attribute of the DataField object

Specified by:
isAutoFormat in interface FieldObject
Returns:
The autoFormat value

setCodeColumn

public void setCodeColumn(java.lang.String referencedColumn)
Specified by:
setCodeColumn in interface FieldObject

setDescriptionColumn

public void setDescriptionColumn(java.lang.String _descriptionColumn)
Sets the descriptionColumn attribute of the DataField object

Specified by:
setDescriptionColumn in interface FieldObject
Parameters:
_descriptionColumn - The new descriptionColumn value

setForeground

public void setForeground(java.awt.Color fg)
Specified by:
setForeground in interface FieldObject

setShowCode

public void setShowCode(boolean showCode)
Sets the showCode attribute of the DataField object

Specified by:
setShowCode in interface FieldObject

setTable

public void setTable(java.lang.String table)
Specified by:
setTable in interface FieldObject

addFocListener

public void addFocListener(java.awt.event.FocusListener l)
Description copied from interface: FieldObject
Adds the specified focus listener to receive focus events from this component when this component gains input focus. If listener l is null, no exception is thrown and no action is performed.

Specified by:
addFocListener in interface FieldObject
Parameters:
l - - the focus listener

removeFocListener

public void removeFocListener(java.awt.event.FocusListener l)
Description copied from interface: FieldObject
Removes the specified focus listener so that it no longer receives focus events from this component. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. If listener l is null, no exception is thrown and no action is performed.

Specified by:
removeFocListener in interface FieldObject
Parameters:
l - - the focus listener

addComboElement

public void addComboElement(java.lang.Object code,
                            java.lang.Object description)
Description copied from interface: FieldObject
Adiciona um elemento a combobox. Se o field nao for uma combobox, o metodo nao produz qualquer efeito.

Specified by:
addComboElement in interface FieldObject

addActionListener

public void addActionListener(java.awt.event.ActionListener l)
Adds a feature to the ActionListener attribute of the DataField object

Specified by:
addActionListener in interface FieldObject
Parameters:
l - The feature to be added to the ActionListener attribute

getColumns

public int getColumns()
Gets the columns attribute of the DataField object

Specified by:
getColumns in interface FieldObject
Returns:
The columns value

getDouble

public double getDouble()
Devolve o valor correspondente ao campo em double ??? Isto devia ser deprecado

Specified by:
getDouble in interface FieldObject
Returns:
The double value

getFormat

public java.lang.String getFormat()
Gets the format attribute of the DataField object

Specified by:
getFormat in interface FieldObject
Returns:
The format value

getHelpContextId

public java.lang.String getHelpContextId()
Gets the helpContextId attribute of the DataField object

Specified by:
getHelpContextId in interface FieldObject
Returns:
The helpContextId value

getHorizontalAlignment

public int getHorizontalAlignment()
Gets the horizontalAlignment attribute of the DataField object

Specified by:
getHorizontalAlignment in interface FieldObject
Returns:
The horizontalAlignment value

getHorizontalVisibility

public javax.swing.BoundedRangeModel getHorizontalVisibility()
Gets the horizontalVisibility attribute of the DataField object

Specified by:
getHorizontalVisibility in interface FieldObject
Returns:
The horizontalVisibility value

getLong

public long getLong()
Devolve o valor correspondente ao campo em long ??? Isto devia ser deprecado

Specified by:
getLong in interface FieldObject
Returns:
The long value

getMaxErrorMessage

public java.lang.String getMaxErrorMessage()
Mensagem de validação do valor maximo

Specified by:
getMaxErrorMessage in interface FieldObject
Returns:
Mensagem

getMaxLength

public int getMaxLength()
Tamanho maximo do field

Specified by:
getMaxLength in interface FieldObject
Returns:
O valor de maxLength

getMaxValue

public long getMaxValue()
Specified by:
getMaxValue in interface FieldObject
Returns:
The maxValue value

getMinErrorMessage

public java.lang.String getMinErrorMessage()
Mensagem de validação do valor maximo

Specified by:
getMinErrorMessage in interface FieldObject
Returns:
The minErrorMessage value

getMinValue

public long getMinValue()
Sets the minValue attribute of the DataField object

Specified by:
getMinValue in interface FieldObject

getOnlyDigits

public boolean getOnlyDigits()
Retorna se o campo permite ou nao preencher apenas digitos ???? A mudança para a propriedade interna pode dar barraca

Specified by:
getOnlyDigits in interface FieldObject
Returns:
The onlyDigits value

getScrollOffset

public int getScrollOffset()
Gets the scrollOffset attribute of the DataField object

Specified by:
getScrollOffset in interface FieldObject
Returns:
The scrollOffset value

getValidateOnLostFocus

public boolean getValidateOnLostFocus()
Propriedade que define se o campo deve ou nao ser validado quando perde o focus

Specified by:
getValidateOnLostFocus in interface FieldObject
Returns:
O valor de validateOnLostFocus

postActionEvent

public void postActionEvent()
Processa os eventos que ocorrem e envia-os para os objectos ActionListener registados

Specified by:
postActionEvent in interface FieldObject

removeActionListener

public void removeActionListener(java.awt.event.ActionListener l)
Remove um actionListener

Specified by:
removeActionListener in interface FieldObject
Parameters:
l - actionListener a remover

setActionCommand

public void setActionCommand(java.lang.String command)
Sets the actionCommand attribute of the DataField object

Specified by:
setActionCommand in interface FieldObject
Parameters:
command - The new actionCommand value

setAutoFormat

public void setAutoFormat(boolean _auto)
setAutomaticFormat

Specified by:
setAutoFormat in interface FieldObject
Parameters:
_auto - true para que exista formatação automática, false não faz qualquer formatação

setColumns

public void setColumns(int columns)
Sets the columns attribute of the DataField object

Specified by:
setColumns in interface FieldObject
Parameters:
columns - The new columns value

getDbDataType

public java.lang.String getDbDataType()
Devolve o valor da propriedade do text field

Specified by:
getDbDataType in interface FieldObject
Returns:
The dbDataType value

setDbDataType

public void setDbDataType(java.lang.String dbDataType)
Afecta o tipo de dados que o campo recolhe ou mostra

Specified by:
setDbDataType in interface FieldObject
Parameters:
dbDataType - O nome do tipo de dados devolvido

setHelpContextId

public void setHelpContextId(java.lang.String _helpContextId)
Afecta a URL do help sensivel ao contexto deste campo

Specified by:
setHelpContextId in interface FieldObject
Parameters:
_helpContextId - The new helpContextId value

setHorizontalAlignment

public void setHorizontalAlignment(int alignment)
Sets the horizontalAlignment attribute of the DataField object

Specified by:
setHorizontalAlignment in interface FieldObject
Parameters:
alignment - The new horizontalAlignment value

setMaxErrorMessage

public void setMaxErrorMessage(java.lang.String message)
Altera a mensagem de validação do valor maximo o caracter # é utilizado como macro para o valor currente o caracter ^ é utilizado como macro para o valor maximo

Specified by:
setMaxErrorMessage in interface FieldObject
Parameters:
message - Mensagem mostrada após validar máximo

setMaxLength

public void setMaxLength(int _maxLength)
Altera o atributo maxLength do objecto DataField

Specified by:
setMaxLength in interface FieldObject
Parameters:
_maxLength - O novo valor de maxLength

setMaxValue

public void setMaxValue(long _maxValue)
Sets the maxValue attribute of the FieldObject object

Specified by:
setMaxValue in interface FieldObject
Parameters:
_maxValue - The new maxValue value

setMinErrorMessage

public void setMinErrorMessage(java.lang.String message)
Altera a mensagem de validação do valor minimo o caracter # é utilizado como macro para o valor currente o caracter ^ é utilizado como macro para o valor minimo

Specified by:
setMinErrorMessage in interface FieldObject
Parameters:
message - The new minErrorMessage value

setMinValue

public void setMinValue(long _minValue)
Sets the minValue attribute of the FieldObject object

Specified by:
setMinValue in interface FieldObject
Parameters:
_minValue - The new minValue value

setOnlyDigits

public void setOnlyDigits(boolean _onlyDigits)
Sets the onlyDigits attribute of the DataField object

Specified by:
setOnlyDigits in interface FieldObject
Parameters:
_onlyDigits - The new onlyDigits value

setRequired

public void setRequired(boolean _required)
Se required a true o campo eh de preenchimento obrigatorio

Specified by:
setRequired in interface FieldObject
Parameters:
_required - The new required value

setScrollOffset

public void setScrollOffset(int scrollOffset)
Sets the scrollOffset attribute of the DataField object

Specified by:
setScrollOffset in interface FieldObject
Parameters:
scrollOffset - The new scrollOffset value

removeAllItems

public 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

Specified by:
removeAllItems in interface FieldObject

getAllowedCharacters

public java.lang.String getAllowedCharacters()
Return a String with a set of characters that are allowed to be used in the widget.

Specified by:
getAllowedCharacters in interface FieldObject
Returns:
A String with a set of characters that are allowed to be used in the widget.

setAllowedCharacters

public void setAllowedCharacters(java.lang.String allowedCharacters)
Set the of characters that are allowed to be used in the widget.

Specified by:
setAllowedCharacters in interface FieldObject
Parameters:
allowedCharacters - A string with the allowed characters.