|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
pt.moredata.widgets.Field
Title: ield
Description:
Campo visual "universal" para edição/visualização de conteudo de colunas da
base de dados em Swing.
Objecto visual para recolha de informação em forms Swing
Consoante o tipo de dados adapta as componentes de swing usadas para
registar a informação.
Se necessario implementa a possibilidade de expansao dos dados.
A sua arquitectura não foi devidamente adaptada aos requisitos implementados
que impuseram o objectivo de ser um campo universal.
Assim, um dia destes deverá ser objecto de uma restruturação e limpeza
profunda (sem retirar funcionalidades nem métodos, nem propriedades).
Company MoreData
| Nested Class Summary |
| 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 |
| 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 java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
Field()
Constructor for the DataField object |
|
| Method Summary | |
void |
addActionListener(java.awt.event.ActionListener l)
Adds a feature to the ActionListener attribute of the DataField object |
void |
addAfterField(AfterFieldListener a)
Adds a feature to the AfterField attribute of the DataField object |
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 |
addFieldListener(FieldListener l)
Adiciona um listener para o evento FieldEvent |
void |
addFocListener(java.awt.event.FocusListener l)
|
void |
addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
|
void |
addHierarchyListener(java.awt.event.HierarchyListener l)
|
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)
|
void |
addMouseMotionListener(java.awt.event.MouseMotionListener l)
|
void |
addMouseWheelListener(java.awt.event.MouseWheelListener l)
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
addPropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
|
void |
clear()
Limpa o conteudo do campo de ddaos e das descodificações se fôr caso disso. |
void |
copy()
Description of the Method |
void |
cut()
Description of the Method |
void |
foreignKeyLookup()
Faz um lookup de acordo com a chave estrangeira preenchida Em geral preenche a descrição correspondente à chave estrangeira preenchida. |
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 |
java.lang.String |
getColumn()
Column where the data is to be stored |
int |
getColumns()
Gets the columns attribute of the DataField object |
int |
getComponentType()
Devolve o tipo de componente usado para mostrar o campo |
int |
getDataFieldSize()
Devolve a propriedade com tamanho do campo de dados |
DataSource |
getDataSource()
Getter for property dataSource. |
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()
Column of foreign key description |
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 |
long |
getLong()
Devolve o valor correspondente ao campo em long ??? |
int |
getMaxColumns()
Devolve o numero maximo de linhas se o field for um EDITOR_PANE, caso contrario devolve -1. |
java.lang.String |
getMaxErrorMessage()
Mensagem de validação do valor maximo |
int |
getMaxLength()
Maximum length in characters for the field |
int |
getMaxLines()
Devolve o numero maximo de linhas se o field for um EDITOR_PANE, caso contrario devolve -1. |
java.lang.Object |
getMaxObjValue()
Gets the maxObjValue attribute of the DataField object |
long |
getMaxValue()
Deprecated. |
java.lang.String |
getMinErrorMessage()
Mensagem de validação do valor maximo |
java.lang.Object |
getMinObjValue()
Gets the minObjValue attribute of the DataField object |
long |
getMinValue()
Deprecated. |
java.lang.Object |
getObject()
Devolve o valor que esta preenchido no campo ??? |
java.awt.Dimension |
getPreferredScrollableViewportSize()
Gets the preferredScrollableViewportSize attribute of the DataField object |
java.lang.String |
getReferencedColumn()
Primary key column of referenced table of foreign key |
java.lang.String |
getReferencedTable()
Referenced table of foreign key |
boolean |
getRequired()
Gets the required attribute of the DataField object |
int |
getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
Gets the scrollableBlockIncrement attribute of the DataField object |
int |
getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
Gets the scrollableUnitIncrement attribute of the DataField object |
int |
getScrollOffset()
Gets the scrollOffset attribute of the DataField object |
java.lang.String |
getSelectedText()
Gets the selectedText attribute of the DataField object |
int |
getSelectionEnd()
Gets the selectionEnd attribute of the DataField object |
int |
getSelectionStart()
Gets the selectionStart attribute of the DataField object |
java.lang.String |
getTable()
Table where the data is to be stored |
java.lang.String |
getText()
Gets the text attribute of the DataField object |
java.lang.String |
getText(int offs,
int len)
Gets the text attribute of the DataField object |
boolean |
getValidateOnLostFocus()
Propriedade que define se o campo deve ou nao ser validado quando perde o focus |
java.lang.String |
getWhereString()
Getter for property whereString. |
void |
grabFocus()
Description of the Method |
boolean |
hasFocus()
|
boolean |
isAutoFormat()
Gets the autoFormat attribute of the DataField object |
boolean |
isContainer()
Mas servia para nao aparecer o Layout no IDE como sub-componente ??? |
boolean |
isEditable()
Gets the editable attribute of the DataField object |
boolean |
isFk()
Columns is foreign key |
boolean |
isFocusable()
Gets the focusable attribute of the DataField object |
boolean |
isLookupOnSetObject()
Devolve o valor da flag que indica se o lookup é efectuado quando ocorre um setObject() |
boolean |
isOnlyDigits()
Retorna se o campo permite ou nao preencher apenas digitos ???? |
boolean |
isPk()
Columns is part of primary key |
boolean |
isQueryState()
Devolve o query state |
boolean |
isShowCode()
if foreign key should the field show the code |
boolean |
isShowDescription()
if foreign key should the field show the description |
boolean |
isShowExpansionButton()
Devolve a propriedade que define se o botão de expansão deve ou não ser mostrado |
boolean |
isValidateRoot()
Gets the validateRoot attribute of the DataField object |
java.awt.Rectangle |
modelToView(int pos)
Description of the Method |
void |
moveCaretPosition(int pos)
Description of the Method |
void |
paste()
Description of the Method |
void |
postActionEvent()
Description of the Method |
void |
read(java.io.Reader in,
java.lang.Object desc)
Description of the Method |
void |
removeActionListener(java.awt.event.ActionListener l)
Description of the Method |
void |
removeCaretListener(javax.swing.event.CaretListener listener)
Removes a caret 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 |
removeFieldListener(FieldListener l)
Remove um listener do Field |
void |
removeFocListener(java.awt.event.FocusListener l)
|
void |
removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
|
void |
removeHierarchyListener(java.awt.event.HierarchyListener l)
|
void |
removeInputMethodListener(java.awt.event.InputMethodListener l)
|
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)
|
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener l)
|
void |
removeMouseWheelListener(java.awt.event.MouseWheelListener l)
|
void |
removeNotify()
Description of the Method |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
|
void |
removePropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
|
void |
requestFocus()
|
void |
select(int selectionStart,
int selectionEnd)
Description of the Method |
void |
selectAll()
Description of the Method |
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 c)
Muda a cor do background |
void |
setBackgroundDisabledColor(java.awt.Color c)
|
void |
setBackgroundEnabledColor(java.awt.Color c)
|
void |
setBorder(javax.swing.border.Border border)
Sets the border attribute of the DataField object |
void |
setBounds(java.awt.Rectangle r)
Muda o tamanho do campo. |
void |
setCaretPosition(int position)
Sets the caretPosition attribute of the DataField object |
void |
setColumn(java.lang.String _column)
Sets the column attribute of the DataField object |
void |
setColumns(int columns)
Sets the columns attribute of the DataField object |
void |
setComboElements(java.lang.Object[] elements)
Adiciona um conjunto de elementos a combox. |
void |
setComponentType(int _componentType)
Define a propriedade tipo de componente usada Controla qual a componente usada para desenhar o campo Se o tipo de componente anterior for igual ao novo, nao acontece nada. |
void |
setDataFieldSize(int _dataFieldSize)
Afecta o tamanho em pixeis do campo usado para preencher a chave primária |
void |
setDataSource(DataSource dataSource)
Setter for property dataSource. |
void |
setDbDataType(java.lang.String dbDataType)
Afecta o tipo de dados (com uma string que o identifica) 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)
Sets the disabledTextColor attribute of the DataField object |
void |
setDocument(javax.swing.text.Document doc)
Sets the document attribute of the DataField object |
void |
setEditable(boolean _editable)
setEditable |
void |
setEnabled(boolean b)
Sets the enabled attribute of the DataField object |
void |
setFk(boolean _fk)
Sets the fk attribute of the DataField object |
void |
setFocusAccelerator(char aKey)
Sets the focusAccelerator attribute of the DataField object |
void |
setFont(java.awt.Font f)
Sets the font attribute of the DataField object |
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 |
setLookupOnSetObject(boolean _lookupOnSetObject)
Afecta a propriedade que indica que a descodificação deve ser efectuada quando é feito um setObject |
void |
setMaxColumns(int maxColumns)
Altera o numero maximo de colunas se o field for um EDITOR_PANE, caso nao seja, este metodo nao produz qualquer efeito. |
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)
Sets the maxLength attribute of the DataField object |
void |
setMaxLines(int maxLines)
Altera o numero maximo de linhas se o field for um EDITOR_PANE, caso nao seja, este metodo nao produz qualquer efeito. |
void |
setMaxValue(long _maxValue)
Sets the maxValue attribute of the DataField object |
void |
setMaxValue(java.lang.Object _maxValue)
Sets the maxValue attribute of the DataField 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 DataField object |
void |
setMinValue(java.lang.Object _minValue)
Sets the minValue attribute of the DataField object |
void |
setNextFocusableComponent(java.awt.Component aComponent)
Sets the nextFocusableComponent attribute of the DataField 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 |
setPk(boolean _pk)
Sets the pk attribute of the DataField object |
void |
setQueryState(boolean _queryState)
Afecta o query state |
void |
setReferencedColumn(java.lang.String _referencedColumn)
Afecta a coluna que é chave primária na tabela referenciada (igualada à coluna que é chave estrangeira na tabela corrente). |
void |
setReferencedTable(java.lang.String _referencedTable)
Sets the referencedTable 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 |
setSelectionEnd(int selectionEnd)
Sets the selectionEnd attribute of the DataField object |
void |
setSelectionStart(int selectionStart)
Sets the selectionStart attribute of the DataField object |
void |
setShowCode(boolean _showCode)
Sets the showCode attribute of the DataField object |
void |
setShowDescription(boolean _showDescription)
Sets the showDescription attribute of the DataField object |
void |
setShowExpansionButton(boolean _showExpansionButton)
Define se o botão de expansão deve ou não estar visivel |
void |
setTable(java.lang.String _table)
Sets the table attribute of the DataField object |
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 |
void |
setWhereString(java.lang.String whereString)
Setter for property whereString. |
int |
viewToModel(java.awt.Point pt)
Description of the Method |
void |
write(java.io.Writer out)
Description of the Method |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, 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, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, 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, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addFocusListener, 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, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, 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, removeFocusListener, repaint, repaint, repaint, resize, resize, 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 |
| Constructor Detail |
public Field()
| Method Detail |
public void setMaxErrorMessage(java.lang.String message)
message - Mensagem mostrada após validar máximopublic java.lang.String getMaxErrorMessage()
public void setMinErrorMessage(java.lang.String message)
message - The new minErrorMessage valuepublic java.lang.String getMinErrorMessage()
public 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 boolean isAutoFormat()
public 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 int getDecimals()
public java.lang.String getDbDataType()
public void setDbDataType(java.lang.String dbDataType)
dbDataType - Tipo de dados devolvidopublic java.lang.Object getMaxObjValue()
public long getMaxValue()
public void setMaxValue(long _maxValue)
_maxValue - The new maxValue valuepublic void setMaxValue(java.lang.Object _maxValue)
_maxValue - The new maxValue valuepublic java.lang.Object getMinObjValue()
public long getMinValue()
public void setMinValue(long _minValue)
_minValue - The new minValue valuepublic void setMinValue(java.lang.Object _minValue)
_minValue - The new minValue valuepublic java.lang.String getHelpContextId()
public void setHelpContextId(java.lang.String _helpContextId)
_helpContextId - The new helpContextId valuepublic boolean getRequired()
public void setRequired(boolean _required)
_required - The new required valuepublic java.lang.String getFormat()
public void setFormat(java.lang.String _format)
_format - The new format valuepublic boolean getValidateOnLostFocus()
public void setValidateOnLostFocus(boolean _validateOnLostFocus)
_validateOnLostFocus - The new validateOnLostFocus valuepublic int getMaxLength()
public void setMaxLength(int _maxLength)
_maxLength - The new maxLength valuepublic java.lang.String getTable()
public void setTable(java.lang.String _table)
_table - The new table valuepublic java.lang.String getColumn()
public void setColumn(java.lang.String _column)
_column - The new column valuepublic boolean isPk()
public void setPk(boolean _pk)
_pk - The new pk valuepublic boolean isFk()
public void setFk(boolean _fk)
_fk - The new fk valuepublic void setDataFieldSize(int _dataFieldSize)
_dataFieldSize - Tamanho em pixeispublic int getDataFieldSize()
public java.lang.String getDescriptionColumn()
public void setDescriptionColumn(java.lang.String _descriptionColumn)
_descriptionColumn - The new descriptionColumn valuepublic java.lang.String getReferencedTable()
public void setReferencedTable(java.lang.String _referencedTable)
_referencedTable - The new referencedTable valuepublic java.lang.String getReferencedColumn()
public void setReferencedColumn(java.lang.String _referencedColumn)
_referencedColumn - The new referencedColumn valuepublic boolean isShowCode()
public void setShowCode(boolean _showCode)
_showCode - The new showCode valuepublic boolean isShowDescription()
public void setShowDescription(boolean _showDescription)
_showDescription - The new showDescription valuepublic java.lang.Object getObject()
public double getDouble()
public long getLong()
public void setObject(java.lang.Object object)
object - Objecto que contem o valor a mostrar no campopublic boolean isOnlyDigits()
public void setOnlyDigits(boolean _onlyDigits)
_onlyDigits - The new onlyDigits valuepublic boolean isQueryState()
public void setQueryState(boolean _queryState)
_queryState - The new queryState valuepublic void setShowExpansionButton(boolean _showExpansionButton)
_showExpansionButton - Valor da flagpublic boolean isShowExpansionButton()
public void setComponentType(int _componentType)
_componentType - Tipo de componentepublic int getComponentType()
public void setLookupOnSetObject(boolean _lookupOnSetObject)
_lookupOnSetObject - Flag que indica se a descodificação deve ser
efectuada no setObject()public boolean isLookupOnSetObject()
public void setBounds(java.awt.Rectangle r)
Trata de adaptar as sub-componentes da forma que achar necessário. ???? Aparentemente o resize dos campos pode dar problemas
public void setBackground(java.awt.Color c)
c - The new background valuepublic boolean isValidateRoot()
public int getHorizontalAlignment()
public void setHorizontalAlignment(int alignment)
alignment - The new horizontalAlignment valuepublic int getColumns()
public void setColumns(int columns)
columns - The new columns valuepublic void setFont(java.awt.Font f)
f - The new font valuepublic void addActionListener(java.awt.event.ActionListener l)
l - The feature to be added to the ActionListener attributepublic void removeActionListener(java.awt.event.ActionListener l)
l - Description of the Parameterpublic void setActionCommand(java.lang.String command)
command - The new actionCommand valuepublic javax.swing.Action[] getActions()
public void postActionEvent()
public javax.swing.BoundedRangeModel getHorizontalVisibility()
public int getScrollOffset()
public void setScrollOffset(int scrollOffset)
scrollOffset - The new scrollOffset valuepublic javax.accessibility.AccessibleContext getAccessibleContext()
public void addCaretListener(javax.swing.event.CaretListener listener)
listener - The feature to be added to the CaretListener attributepublic void removeCaretListener(javax.swing.event.CaretListener listener)
listener - The listener to be removedpublic void setDocument(javax.swing.text.Document doc)
doc - The new document valuepublic javax.swing.text.Document getDocument()
public java.lang.String getText(int offs,
int len)
throws javax.swing.text.BadLocationException
offs - Description of the Parameterlen - Description of the Parameter
javax.swing.text.BadLocationException - Description of the Exceptionpublic java.lang.String getText()
public java.awt.Rectangle modelToView(int pos)
throws javax.swing.text.BadLocationException
pos - Description of the Parameter
javax.swing.text.BadLocationException - Description of the Exceptionpublic int viewToModel(java.awt.Point pt)
pt - Description of the Parameter
public void cut()
public void copy()
public void paste()
public void moveCaretPosition(int pos)
pos - Description of the Parameterpublic void setFocusAccelerator(char aKey)
aKey - The new focusAccelerator valuepublic char getFocusAccelerator()
public void read(java.io.Reader in,
java.lang.Object desc)
throws java.io.IOException
in - Description of the Parameterdesc - Description of the Parameter
java.io.IOException - Description of the Exception
public void write(java.io.Writer out)
throws java.io.IOException
out - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic void removeNotify()
public void setEnabled(boolean b)
b - The new enabled valuepublic boolean isFocusable()
public void setCaretPosition(int position)
position - The new caretPosition valuepublic int getCaretPosition()
public java.lang.String getSelectedText()
public boolean isEditable()
public int getSelectionStart()
public void setSelectionStart(int selectionStart)
selectionStart - The new selectionStart valuepublic int getSelectionEnd()
public void setSelectionEnd(int selectionEnd)
selectionEnd - The new selectionEnd value
public void select(int selectionStart,
int selectionEnd)
selectionStart - Description of the ParameterselectionEnd - Description of the Parameterpublic void selectAll()
public java.awt.Dimension getPreferredScrollableViewportSize()
public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
visibleRect - Description of the Parameterorientation - Description of the Parameterdirection - Description of the Parameter
public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
int orientation,
int direction)
visibleRect - Description of the Parameterorientation - Description of the Parameterdirection - Description of the Parameter
public void addInputMethodListener(java.awt.event.InputMethodListener l)
l - The feature to be added to the InputMethodListener attributepublic void removeInputMethodListener(java.awt.event.InputMethodListener l)
public java.awt.Font getFont()
public void clear()
public void requestFocus()
public boolean hasFocus()
public boolean isContainer()
??? Eu acho que isto deixa de ser necessario
public void addAfterField(AfterFieldListener a)
a - The feature to be added to the AfterField attributepublic void foreignKeyLookup()
Em geral preenche a descrição correspondente à chave estrangeira preenchida.
??? Este método não deveria ser publico mas sim disponibilizado sob a forma de evento.
public void addFieldListener(FieldListener l)
l - Listener a adicionarpublic void removeFieldListener(FieldListener l)
l - Listener a removerpublic void setDisabledTextColor(java.awt.Color c)
c - The new disabledTextColor valuepublic void setNextFocusableComponent(java.awt.Component aComponent)
aComponent - The new nextFocusableComponent valuepublic void grabFocus()
public void setBorder(javax.swing.border.Border border)
border - The new border valuepublic 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 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)
public void removeFocListener(java.awt.event.FocusListener l)
public void addHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
public void removeHierarchyBoundsListener(java.awt.event.HierarchyBoundsListener l)
public void addHierarchyListener(java.awt.event.HierarchyListener l)
public void removeHierarchyListener(java.awt.event.HierarchyListener l)
public void addMouseListener(java.awt.event.MouseListener l)
public void removeMouseListener(java.awt.event.MouseListener l)
public void addMouseMotionListener(java.awt.event.MouseMotionListener l)
public void removeMouseMotionListener(java.awt.event.MouseMotionListener l)
public void addMouseWheelListener(java.awt.event.MouseWheelListener l)
public void removeMouseWheelListener(java.awt.event.MouseWheelListener l)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
public void addPropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
public void removePropertyChangeListener(java.lang.String nome,
java.beans.PropertyChangeListener l)
public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
public void setBackgroundEnabledColor(java.awt.Color c)
public void setBackgroundDisabledColor(java.awt.Color c)
public java.lang.String getWhereString()
public void setWhereString(java.lang.String whereString)
whereString - New value of property whereString.
public void addComboElement(java.lang.Object code,
java.lang.Object description)
public void setComboElements(java.lang.Object[] elements)
elements - Pares ordenados de codigo/descricao.public void setMaxColumns(int maxColumns)
maxColumns - O numero maximo de colunas.public int getMaxColumns()
public void setMaxLines(int maxLines)
maxLines - O numero maximo de linhas.public int getMaxLines()
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
dataSource - New value of property dataSource.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 | ||||||||||