pt.moredata.widgets
Interface FieldObject

All Known Implementing Classes:
CheckBoxFieldObject, ComboBoxFieldObject, EditorPaneObject, ImageFieldObject, TextFieldObject

public interface FieldObject

Author:
aricardo

Field Summary
static int CHECK_BOX
          FieldObject do tipo CheckBox.
static int COMBO_BOX
          FieldObject do tipo ComboBox.
static int EDITOR_PANE
          FieldObject do tipo EditorPane.
static int IMAGE_FIELD
          FieldObject do tipo ImageField.
static int RADIO_BUTTONS
          FieldObject do tipo RadioButton.
static int TEXT_FIELD
          FieldObject do tipo TextField.
 
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 addCaretListener(javax.swing.event.CaretListener listener)
          Adds a feature to the CaretListener attribute of the DataField object
 void addComboElement(java.lang.Object code, java.lang.Object description)
          Adiciona um elemento a combobox.
 void addComponentListener(java.awt.event.ComponentListener l)
          Adds the specified component listener to receive component events from this component.
 void addContainerListener(java.awt.event.ContainerListener l)
          Adds the specified container listener to receive container events from this container.
 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 addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
          Adds the specified hierarchy bounds listener to receive hierarchy bounds events from this component when the hierarchy to which this container belongs changes.
 void addHierarchyListener(java.awt.event.HierarchyListener l)
          Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes.
 void addInputMethodListener(java.awt.event.InputMethodListener l)
          Adds a feature to the InputMethodListener attribute of the DataField object
 void addKeyListener(java.awt.event.KeyListener l)
          Adds the specified key listener to receive key events from this component.
 void addMouseListener(java.awt.event.MouseListener l)
          Adds the specified mouse listener to receive mouse events from this component.
 void addMouseMotionListener(java.awt.event.MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component.
 void addMouseWheelListener(java.awt.event.MouseWheelListener l)
          Adds the specified mouse wheel listener to receive mouse wheel events from this component.
 void addPropertyChangeListener(java.beans.PropertyChangeListener l)
          Adds a PropertyChangeListener to the listener list.
 void addPropertyChangeListener(java.lang.String nome, java.beans.PropertyChangeListener l)
          Adds a PropertyChangeListener for a specific property.
 void addVetoableChangeListener(java.beans.VetoableChangeListener l)
          Adds a VetoableChangeListener to the listener list.
 void clearImageScreen()
          Clears all references to previously added image.
 void copy()
          Copia a porção de texto selecionado e guarda-o na área de transferencia
 void cut()
          Elimina uma porção de texto selecionado e guarda-o na área de transferencia
 javax.accessibility.AccessibleContext getAccessibleContext()
          Gets the accessibleContext attribute of the DataField object
 javax.swing.Action[] getActions()
          Gets the actions attribute of the DataField object
 java.lang.String getAllowedCharacters()
          Return a String with a set of characters that are allowed to be used in the widget.
 int getCaretPosition()
          Gets the caretPosition attribute of the DataField object
 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
 javax.swing.text.Document getDocument()
          Gets the document attribute of the DataField object
 double getDouble()
          Devolve o valor correspondente ao campo em double ???
 char getFocusAccelerator()
          Gets the focusAccelerator attribute of the DataField object
 java.awt.Font getFont()
          Gets the font attribute of the DataField object
 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
 javax.swing.text.Keymap getKeymap()
          Vai buscar um KeyMap adicionado anteriormente
 long getLong()
          Devolve o valor correspondente ao campo em long ???
 int getMaxColumns()
          Numero maximo de caracteres numa linha
 java.lang.String getMaxErrorMessage()
          Mensagem de validação do valor maximo
 int getMaxLength()
          Tamanho maximo do field
 int getMaxLines()
          Numero maximo de linhas do painel de texto.
 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 ????
 java.awt.Dimension getPreferredScrollableViewportSize()
           
 java.awt.Dimension getPreferredSize()
          If the preferredSize has been set to a non-null value just returns it.
 boolean getRequired()
          Gets the required attribute of the DataField object
 int getScrollableBlockIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
           
 int getScrollableUnitIncrement(java.awt.Rectangle visibleRect, int orientation, int direction)
           
 int getScrollOffset()
          Gets the scrollOffset attribute of the DataField object
 java.lang.String getSelectedText()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 java.lang.String getText()
           
 java.lang.String getText(int offs, int len)
           
 boolean getValidateOnLostFocus()
          Propriedade que define se o campo deve ou nao ser validado quando perde o focus
 void grabFocus()
           
 boolean hasFocus()
           
 boolean isAutoFormat()
          Gets the autoFormat attribute of the DataField object
 boolean isEditable()
          Gets the isEditable attribute of the DataField object
 boolean isValidateRoot()
          Gets the validateRoot attribute of the DataField object
 java.awt.Rectangle modelToView(int pos)
           
 void moveCaretPosition(int pos)
           
 void paste()
          Coloca no local onde se encontra o cursor a porção de texto que estiver na área de teansferencia
 void postActionEvent()
          Processa os eventos que ocorrem e envia-os para os objectos ActionListener registados
 void read(java.io.Reader in, java.lang.Object desc)
           
 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 removeCaretListener(javax.swing.event.CaretListener listener)
           
 void removeComponentListener(java.awt.event.ComponentListener l)
          Removes the specified component listener so that it no longer receives component events from this component.
 void removeContainerListener(java.awt.event.ContainerListener l)
          Removes the specified container listener so it no longer receives container events from this container.
 void removeFocListener(java.awt.event.FocusListener l)
          Removes the specified focus listener so that it no longer receives focus events from this component.
 void removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
          Removes the specified hierarchy bounds listener so that it no longer receives hierarchy bounds events from this component.
 void removeHierarchyListener(java.awt.event.HierarchyListener l)
          Removes the specified hierarchy listener so that it no longer receives hierarchy changed events from this component.
 void removeInputMethodListener(java.awt.event.InputMethodListener l)
          Removes the specified input method listener so that it no longer receives input method events from this component.
 void removeKeyListener(java.awt.event.KeyListener l)
          Removes the specified key listener that receives key events from this component.
 void removeMouseListener(java.awt.event.MouseListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this component.
 void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
          Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component.
 void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
          Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component.
 void removeNotify()
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener l)
          Removes a PropertyChangeListener from the listener list.
 void removePropertyChangeListener(java.lang.String nome, java.beans.PropertyChangeListener l)
          Removes a PropertyChangeListener for a specific property.
 void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
          Removes a VetoableChangeListener from the listener list.
 void requestFocus()
           
 void scrollRectToVisible(java.awt.Rectangle r)
          Desloca uma regiao do campo para a esquerda ou para a direita
 void select(int selectionStart, int selectionEnd)
           
 void selectAll()
           
 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 setBackground(java.awt.Color bg)
          Muda a cor do background
 void setBorder(javax.swing.border.Border border)
           
 void setBounds(java.awt.Rectangle rect)
           
 void setCaretPosition(int position)
           
 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 setDisabledTextColor(java.awt.Color c)
           
 void setDocument(javax.swing.text.Document doc)
           
 void setEditable(boolean _editable)
          setEditable
 void setEnabled(boolean enabled)
           
 void setFocusAccelerator(char aKey)
           
 void setFont(java.awt.Font f)
          Afecta o atributo font do objecto FieldObject
 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 setMaxColumns(int _maxColumns)
          Sets the maxColumns attribute of the DataEditorPane 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 setMaxLines(int _maxLines)
          Sets the maxLines attribute of the DataEditorPane object
 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 setPreferredSize(java.awt.Dimension preferredSize)
          Sets the preferred size of this component.
 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 setSelectionEnd(int selectionEnd)
           
 void setSelectionStart(int selectionStart)
           
 void setShowCode(boolean showCode)
          Sets the showCode attribute of the DataField object
 void setTable(java.lang.String table)
           
 void setText(java.lang.String text)
          Override do setText para que se possam afectar valores com o programa mas nao aceitar digitacao
 void setValidateOnLostFocus(boolean _validateOnLostFocus)
          Sets the validateOnLostFocus attribute of the DataField object
 int viewToModel(java.awt.Point pt)
           
 void write(java.io.Writer out)
           
 

Field Detail

TEXT_FIELD

public static final int TEXT_FIELD
FieldObject do tipo TextField.

See Also:
Constant Field Values

COMBO_BOX

public static final int COMBO_BOX
FieldObject do tipo ComboBox.

See Also:
Constant Field Values

CHECK_BOX

public static final int CHECK_BOX
FieldObject do tipo CheckBox.

See Also:
Constant Field Values

RADIO_BUTTONS

public static final int RADIO_BUTTONS
FieldObject do tipo RadioButton.

See Also:
Constant Field Values

IMAGE_FIELD

public static final int IMAGE_FIELD
FieldObject do tipo ImageField.

See Also:
Constant Field Values

EDITOR_PANE

public static final int EDITOR_PANE
FieldObject do tipo EditorPane.

See Also:
Constant Field Values
Method Detail

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

Parameters:
message - Mensagem mostrada após validar máximo

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

Parameters:
message - The new minErrorMessage value

setText

public void setText(java.lang.String text)
Override do setText para que se possam afectar valores com o programa mas nao aceitar digitacao

Parameters:
text - Texto a mostrar no caso de TextField

setAutoFormat

public void setAutoFormat(boolean _auto)
setAutomaticFormat

Parameters:
_auto - true para que exista formatação automática, false não faz qualquer formatação

setEditable

public void setEditable(boolean _editable)
setEditable

Parameters:
_editable - true se o campo fôr editável, false caso contrário

setDecimals

public void setDecimals(int _nd)
Define o numero de casas decimais

Parameters:
_nd - Número de casas decimais

getDbDataType

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

Returns:
The dbDataType value

setDbDataType

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

Parameters:
dbDataType - O nome do tipo de dados devolvido

setDescriptionColumn

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

Parameters:
_descriptionColumn - The new descriptionColumn value

setMaxValue

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

Parameters:
_maxValue - The new maxValue value

setMinValue

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

Parameters:
_minValue - The new minValue value

setHelpContextId

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

Parameters:
_helpContextId - The new helpContextId value

setRequired

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

Parameters:
_required - The new required value

setFormat

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

Parameters:
_format - O novo formato

setValidateOnLostFocus

public void setValidateOnLostFocus(boolean _validateOnLostFocus)
Sets the validateOnLostFocus attribute of the DataField object

Parameters:
_validateOnLostFocus - The new validateOnLostFocus value

setMaxLength

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

Parameters:
_maxLength - O novo valor de maxLength

getObject

public java.lang.Object getObject()
Devolve o valor que esta preenchido no campo ??? Ainda nao esta a funcionar com combos

Returns:
The object value

getDouble

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

Returns:
The double value

getLong

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

Returns:
The long value

getMaxErrorMessage

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

Returns:
Mensagem

getMinErrorMessage

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

Returns:
The minErrorMessage value

setObject

public 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.

Parameters:
object - Objecto que contem o valor a mostrar no campo

addAfterField

public void addAfterField(AfterFieldListener l)

setOnlyDigits

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

Parameters:
_onlyDigits - The new onlyDigits value

setPreferredSize

public void setPreferredSize(java.awt.Dimension preferredSize)
Sets the preferred size of this component. If preferredSize is null, the UI will be asked for the preferred size.


getPreferredSize

public java.awt.Dimension getPreferredSize()
If the preferredSize has been set to a non-null value just returns it. If the UI delegate's getPreferredSize method returns a non null value then return that; otherwise defer to the component's layout manager.

Returns:
the value of the preferredSize property
See Also:
setPreferredSize(java.awt.Dimension), ComponentUI

grabFocus

public void grabFocus()

hasFocus

public boolean hasFocus()

getOnlyDigits

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

Returns:
The onlyDigits value

addActionListener

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

Parameters:
l - The feature to be added to the ActionListener attribute

addCaretListener

public void addCaretListener(javax.swing.event.CaretListener listener)
Adds a feature to the CaretListener attribute of the DataField object

Parameters:
listener - The feature to be added to the CaretListener attribute

addInputMethodListener

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

Parameters:
l - The feature to be added to the InputMethodListener attribute

removeInputMethodListener

public void removeInputMethodListener(java.awt.event.InputMethodListener l)
Removes the specified input method listener so that it no longer receives input method 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.

Parameters:
l - - the input method listener

addComponentListener

public void addComponentListener(java.awt.event.ComponentListener l)
Adds the specified component listener to receive component events from this component. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the component listener

removeComponentListener

public void removeComponentListener(java.awt.event.ComponentListener l)
Removes the specified component listener so that it no longer receives component 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.

Parameters:
l - - the component listener

addContainerListener

public void addContainerListener(java.awt.event.ContainerListener l)
Adds the specified container listener to receive container events from this container. If l is null, no exception is thrown and no action is performed.

Parameters:
l - - the component listener

removeContainerListener

public void removeContainerListener(java.awt.event.ContainerListener l)
Removes the specified container listener so it no longer receives container events from this container. If l is null, no exception is thrown and no action is performed.

Parameters:
l - - the container listener

addFocListener

public 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. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the focus listener

removeFocListener

public void removeFocListener(java.awt.event.FocusListener l)
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.

Parameters:
l - - the focus listener

addHierarchyBoundsListener

public void addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
Adds the specified hierarchy bounds listener to receive hierarchy bounds events from this component when the hierarchy to which this container belongs changes. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the hierarchy bounds listener

removeHierarchyBoundsListener

public void removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
Removes the specified hierarchy bounds listener so that it no longer receives hierarchy bounds 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.

Parameters:
l - - the hierarchy bounds listener

addHierarchyListener

public void addHierarchyListener(java.awt.event.HierarchyListener l)
Adds the specified hierarchy listener to receive hierarchy changed events from this component when the hierarchy to which this container belongs changes. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the hierarchy listener

removeHierarchyListener

public void removeHierarchyListener(java.awt.event.HierarchyListener l)
Removes the specified hierarchy listener so that it no longer receives hierarchy changed 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.

Parameters:
l - - the hierarchy listener

addMouseListener

public void addMouseListener(java.awt.event.MouseListener l)
Adds the specified mouse listener to receive mouse events from this component. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the mouse listener

removeMouseListener

public void removeMouseListener(java.awt.event.MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse 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.

Parameters:
l - - the mouse listener

addMouseMotionListener

public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component. If listener l is null, no exception is thrown and no action is performed.

Parameters:
l - - the mouse motion listener

removeMouseMotionListener

public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion 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.

Parameters:
l - - the mouse motion listener

addMouseWheelListener

public void addMouseWheelListener(java.awt.event.MouseWheelListener l)
Adds the specified mouse wheel listener to receive mouse wheel events from this component. Containers also receive mouse wheel events from sub-components. If l is null, no exception is thrown and no action is performed.

Parameters:
l - - the mouse wheel listener.

removeMouseWheelListener

public void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
Removes the specified mouse wheel listener so that it no longer receives mouse wheel 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 l is null, no exception is thrown and no action is performed.

Parameters:
l - - the mouse wheel listener.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the listener list. The listener is registered for all properties. A PropertyChangeEvent will get fired in response to setting a bound property, such as setFont, setBackground, or setForeground. Note that if the current component is inheriting its foreground, background, or font from its container, then no event will be fired in response to a change in the inherited property.

Parameters:
l - - the PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.

Parameters:
l - - the PropertyChangeListener to be removed

addPropertyChangeListener

public void addPropertyChangeListener(java.lang.String nome,
                                      java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener for a specific property. The listener will be invoked only when a call on firePropertyChange names that specific property. If listener is null, no exception is thrown and no action is performed.

Parameters:
nome - - the name of the property to listen on
l - - the PropertyChangeListener to be added

removePropertyChangeListener

public void removePropertyChangeListener(java.lang.String nome,
                                         java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener for a specific property. If listener is null, no exception is thrown and no action is performed.

Parameters:
nome - - the name of the property that was listened on
l - - the PropertyChangeListener to be removed

addVetoableChangeListener

public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a VetoableChangeListener to the listener list. The listener is registered for all properties.

Parameters:
l - - the VetoableChangeListener to be added

removeVetoableChangeListener

public void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a VetoableChangeListener from the listener list. This removes a VetoableChangeListener that was registered for all properties.

Parameters:
l - - the VetoableChangeListener to be removed

clearImageScreen

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


cut

public void cut()
Elimina uma porção de texto selecionado e guarda-o na área de transferencia


copy

public void copy()
Copia a porção de texto selecionado e guarda-o na área de transferencia


paste

public void paste()
Coloca no local onde se encontra o cursor a porção de texto que estiver na área de teansferencia


getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Gets the accessibleContext attribute of the DataField object

Returns:
The accessibleContext value

getActions

public javax.swing.Action[] getActions()
Gets the actions attribute of the DataField object

Returns:
The actions value

getCaretPosition

public int getCaretPosition()
Gets the caretPosition attribute of the DataField object

Returns:
The caretPosition value

getColumns

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

Returns:
The columns value

getComponent

public java.awt.Component getComponent()
Devolve o Component associado a um FieldObject

Returns:
O Component respectivo

getDecimals

public int getDecimals()
Devolve o numero de casas decimais que se permite digitar

Returns:
The decimals value

getDescriptionColumn

public java.lang.String getDescriptionColumn()
Coluna de descricao de chave estrangeira

Returns:
O valor de descriptionColumn

getDocument

public javax.swing.text.Document getDocument()
Gets the document attribute of the DataField object

Returns:
The document value

getFocusAccelerator

public char getFocusAccelerator()
Gets the focusAccelerator attribute of the DataField object

Returns:
The focusAccelerator value

getFont

public java.awt.Font getFont()
Gets the font attribute of the DataField object

Returns:
The font value

getFormat

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

Returns:
The format value

getHelpContextId

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

Returns:
The helpContextId value

getHorizontalAlignment

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

Returns:
The horizontalAlignment value

getHorizontalVisibility

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

Returns:
The horizontalVisibility value

getKeymap

public javax.swing.text.Keymap getKeymap()
Vai buscar um KeyMap adicionado anteriormente


getMaxLength

public int getMaxLength()
Tamanho maximo do field

Returns:
O valor de maxLength

getMaxValue

public long getMaxValue()
Returns:
The maxValue value

getMinValue

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


getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()

getRequired

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

Returns:
The required value

getScrollableBlockIncrement

public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
                                       int orientation,
                                       int direction)

getScrollableUnitIncrement

public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                      int orientation,
                                      int direction)

getScrollOffset

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

Returns:
The scrollOffset value

getSelectedText

public java.lang.String getSelectedText()

getSelectionEnd

public int getSelectionEnd()

getSelectionStart

public int getSelectionStart()

getText

public java.lang.String getText()

getText

public java.lang.String getText(int offs,
                                int len)
                         throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

getValidateOnLostFocus

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

Returns:
O valor de validateOnLostFocus

isAutoFormat

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

Returns:
The autoFormat value

isEditable

public boolean isEditable()
Gets the isEditable attribute of the DataField object

Returns:
The isEditable value

isValidateRoot

public boolean isValidateRoot()
Gets the validateRoot attribute of the DataField object

Returns:
The validateRoot value

modelToView

public java.awt.Rectangle modelToView(int pos)
                               throws javax.swing.text.BadLocationException
Throws:
javax.swing.text.BadLocationException

moveCaretPosition

public void moveCaretPosition(int pos)

read

public void read(java.io.Reader in,
                 java.lang.Object desc)
          throws java.io.IOException
Throws:
java.io.IOException

postActionEvent

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


removeActionListener

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

Parameters:
l - actionListener a remover

removeCaretListener

public void removeCaretListener(javax.swing.event.CaretListener listener)

removeNotify

public void removeNotify()

requestFocus

public void requestFocus()

scrollRectToVisible

public void scrollRectToVisible(java.awt.Rectangle r)
Desloca uma regiao do campo para a esquerda ou para a direita

Parameters:
r - regiao que vai ser deslocada

select

public void select(int selectionStart,
                   int selectionEnd)

selectAll

public void selectAll()

setActionCommand

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

Parameters:
command - The new actionCommand value

setBackground

public void setBackground(java.awt.Color bg)
Muda a cor do background


setBorder

public void setBorder(javax.swing.border.Border border)

setBounds

public void setBounds(java.awt.Rectangle rect)

setCaretPosition

public void setCaretPosition(int position)

setCodeColumn

public void setCodeColumn(java.lang.String referencedColumn)

setColumns

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

Parameters:
columns - The new columns value

setDisabledTextColor

public void setDisabledTextColor(java.awt.Color c)

setDocument

public void setDocument(javax.swing.text.Document doc)

setEnabled

public void setEnabled(boolean enabled)

setFocusAccelerator

public void setFocusAccelerator(char aKey)

setFont

public void setFont(java.awt.Font f)
Afecta o atributo font do objecto FieldObject

Parameters:
f - O novo tipo de font

setForeground

public void setForeground(java.awt.Color fg)

setHorizontalAlignment

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

Parameters:
alignment - The new horizontalAlignment value

setScrollOffset

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

Parameters:
scrollOffset - The new scrollOffset value

setSelectionEnd

public void setSelectionEnd(int selectionEnd)

setSelectionStart

public void setSelectionStart(int selectionStart)

setShowCode

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


setTable

public void setTable(java.lang.String table)

viewToModel

public int viewToModel(java.awt.Point pt)

write

public void write(java.io.Writer out)
           throws java.io.IOException
Throws:
java.io.IOException

addKeyListener

public void addKeyListener(java.awt.event.KeyListener l)
Adds the specified key listener to receive key events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - the key listener.

removeKeyListener

public void removeKeyListener(java.awt.event.KeyListener l)
Removes the specified key listener that receives key events from this component. If l is null, no exception is thrown and no action is performed.

Parameters:
l - - the key listener.

addComboElement

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


getMaxLines

public int getMaxLines()
Numero maximo de linhas do painel de texto.

Returns:
The maxLines value

setMaxLines

public void setMaxLines(int _maxLines)
Sets the maxLines attribute of the DataEditorPane object

Parameters:
_maxLines - The new maxLines value

getMaxColumns

public int getMaxColumns()
Numero maximo de caracteres numa linha

Returns:
The maxColumns value

setMaxColumns

public void setMaxColumns(int _maxColumns)
Sets the maxColumns attribute of the DataEditorPane object

Parameters:
_maxColumns - The new maxColumns 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


getAllowedCharacters

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

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.

Parameters:
allowedCharacters - A string with the allowed characters.