|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| 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 |
public static final int TEXT_FIELD
public static final int COMBO_BOX
public static final int CHECK_BOX
public static final int RADIO_BUTTONS
public static final int IMAGE_FIELD
public static final int EDITOR_PANE
| Method Detail |
public void setMaxErrorMessage(java.lang.String message)
message - Mensagem mostrada após validar máximopublic void setMinErrorMessage(java.lang.String message)
message - The new minErrorMessage valuepublic void setText(java.lang.String text)
text - Texto a mostrar no caso de TextFieldpublic void setAutoFormat(boolean _auto)
_auto - true para que exista formatação automática, false não faz
qualquer formataçãopublic void setEditable(boolean _editable)
_editable - true se o campo fôr editável, false caso contráriopublic void setDecimals(int _nd)
_nd - Número de casas decimaispublic java.lang.String getDbDataType()
public void setDbDataType(java.lang.String dbDataType)
dbDataType - O nome do tipo de dados devolvidopublic void setDescriptionColumn(java.lang.String _descriptionColumn)
_descriptionColumn - The new descriptionColumn valuepublic void setMaxValue(long _maxValue)
_maxValue - The new maxValue valuepublic void setMinValue(long _minValue)
_minValue - The new minValue valuepublic void setHelpContextId(java.lang.String _helpContextId)
_helpContextId - The new helpContextId valuepublic void setRequired(boolean _required)
_required - The new required valuepublic void setFormat(java.lang.String _format)
_format - O novo formatopublic void setValidateOnLostFocus(boolean _validateOnLostFocus)
_validateOnLostFocus - The new validateOnLostFocus valuepublic void setMaxLength(int _maxLength)
_maxLength - O novo valor de maxLengthpublic java.lang.Object getObject()
public double getDouble()
public long getLong()
public java.lang.String getMaxErrorMessage()
public java.lang.String getMinErrorMessage()
public void setObject(java.lang.Object object)
object - Objecto que contem o valor a mostrar no campopublic void addAfterField(AfterFieldListener l)
public void setOnlyDigits(boolean _onlyDigits)
_onlyDigits - The new onlyDigits valuepublic void setPreferredSize(java.awt.Dimension preferredSize)
preferredSize is null, the UI will
be asked for the preferred size.
public java.awt.Dimension getPreferredSize()
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.
preferredSize propertysetPreferredSize(java.awt.Dimension),
ComponentUIpublic void grabFocus()
public boolean hasFocus()
public boolean getOnlyDigits()
public void addActionListener(java.awt.event.ActionListener l)
l - The feature to be added to the ActionListener attributepublic void addCaretListener(javax.swing.event.CaretListener listener)
listener - The feature to be added to the CaretListener attributepublic void addInputMethodListener(java.awt.event.InputMethodListener l)
l - The feature to be added to the InputMethodListener attributepublic void removeInputMethodListener(java.awt.event.InputMethodListener l)
l - - the input method listenerpublic void addComponentListener(java.awt.event.ComponentListener l)
l - - the component listenerpublic void removeComponentListener(java.awt.event.ComponentListener l)
l - - the component listenerpublic void addContainerListener(java.awt.event.ContainerListener l)
l - - the component listenerpublic void removeContainerListener(java.awt.event.ContainerListener l)
l - - the container listenerpublic void addFocListener(java.awt.event.FocusListener l)
l - - the focus listenerpublic void removeFocListener(java.awt.event.FocusListener l)
l - - the focus listenerpublic void addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
l - - the hierarchy bounds listenerpublic void removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
l - - the hierarchy bounds listenerpublic void addHierarchyListener(java.awt.event.HierarchyListener l)
l - - the hierarchy listenerpublic void removeHierarchyListener(java.awt.event.HierarchyListener l)
l - - the hierarchy listenerpublic void addMouseListener(java.awt.event.MouseListener l)
l - - the mouse listenerpublic void removeMouseListener(java.awt.event.MouseListener l)
l - - the mouse listenerpublic void addMouseMotionListener(java.awt.event.MouseMotionListener l)
l - - the mouse motion listenerpublic void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
l - - the mouse motion listenerpublic void addMouseWheelListener(java.awt.event.MouseWheelListener l)
l - - the mouse wheel listener.public void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
l - - the mouse wheel listener.public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l - - the PropertyChangeListener to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l - - the PropertyChangeListener to be removed
public void addPropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
nome - - the name of the property to listen onl - - the PropertyChangeListener to be added
public void removePropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
nome - - the name of the property that was listened onl - - the PropertyChangeListener to be removedpublic void addVetoableChangeListener(java.beans.VetoableChangeListener l)
l - - the VetoableChangeListener to be addedpublic void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
l - - the VetoableChangeListener to be removedpublic void clearImageScreen()
public void cut()
public void copy()
public void paste()
public javax.accessibility.AccessibleContext getAccessibleContext()
public javax.swing.Action[] getActions()
public int getCaretPosition()
public int getColumns()
public java.awt.Component getComponent()
public int getDecimals()
public java.lang.String getDescriptionColumn()
public javax.swing.text.Document getDocument()
public char getFocusAccelerator()
public java.awt.Font getFont()
public java.lang.String getFormat()
public java.lang.String getHelpContextId()
public int getHorizontalAlignment()
public javax.swing.BoundedRangeModel getHorizontalVisibility()
public javax.swing.text.Keymap getKeymap()
public int getMaxLength()
public long getMaxValue()
public long getMinValue()
public java.awt.Dimension getPreferredScrollableViewportSize()
public boolean getRequired()
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
public int getScrollOffset()
public java.lang.String getSelectedText()
public int getSelectionEnd()
public int getSelectionStart()
public java.lang.String getText()
public java.lang.String getText(int offs,
int len)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationExceptionpublic boolean getValidateOnLostFocus()
public boolean isAutoFormat()
public boolean isEditable()
public boolean isValidateRoot()
public java.awt.Rectangle modelToView(int pos)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationExceptionpublic void moveCaretPosition(int pos)
public void read(java.io.Reader in,
java.lang.Object desc)
throws java.io.IOException
java.io.IOExceptionpublic void postActionEvent()
public void removeActionListener(java.awt.event.ActionListener l)
l - actionListener a removerpublic void removeCaretListener(javax.swing.event.CaretListener listener)
public void removeNotify()
public void requestFocus()
public void scrollRectToVisible(java.awt.Rectangle r)
r - regiao que vai ser deslocada
public void select(int selectionStart,
int selectionEnd)
public void selectAll()
public void setActionCommand(java.lang.String command)
command - The new actionCommand valuepublic void setBackground(java.awt.Color bg)
public void setBorder(javax.swing.border.Border border)
public void setBounds(java.awt.Rectangle rect)
public void setCaretPosition(int position)
public void setCodeColumn(java.lang.String referencedColumn)
public void setColumns(int columns)
columns - The new columns valuepublic void setDisabledTextColor(java.awt.Color c)
public void setDocument(javax.swing.text.Document doc)
public void setEnabled(boolean enabled)
public void setFocusAccelerator(char aKey)
public void setFont(java.awt.Font f)
f - O novo tipo de fontpublic void setForeground(java.awt.Color fg)
public void setHorizontalAlignment(int alignment)
alignment - The new horizontalAlignment valuepublic void setScrollOffset(int scrollOffset)
scrollOffset - The new scrollOffset valuepublic void setSelectionEnd(int selectionEnd)
public void setSelectionStart(int selectionStart)
public void setShowCode(boolean showCode)
public void setTable(java.lang.String table)
public int viewToModel(java.awt.Point pt)
public void write(java.io.Writer out)
throws java.io.IOException
java.io.IOExceptionpublic void addKeyListener(java.awt.event.KeyListener l)
l - the key listener.public void removeKeyListener(java.awt.event.KeyListener l)
l - - the key listener.
public void addComboElement(java.lang.Object code,
java.lang.Object description)
public int getMaxLines()
public void setMaxLines(int _maxLines)
_maxLines - The new maxLines valuepublic int getMaxColumns()
public void setMaxColumns(int _maxColumns)
_maxColumns - The new maxColumns valuepublic void removeAllItems()
public java.lang.String getAllowedCharacters()
public void setAllowedCharacters(java.lang.String allowedCharacters)
allowedCharacters - A string with the allowed characters.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||