pt.moredata.widgets
Class CheckBoxFieldObject

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.AbstractButton
                  extended byjavax.swing.JToggleButton
                      extended byjavax.swing.JCheckBox
                          extended bypt.moredata.widgets.CheckBox
                              extended bypt.moredata.widgets.CheckBoxFieldObject
All Implemented Interfaces:
javax.accessibility.Accessible, FieldObject, java.awt.image.ImageObserver, java.awt.ItemSelectable, java.awt.MenuContainer, java.io.Serializable, javax.swing.SwingConstants

public class CheckBoxFieldObject
extends CheckBox
implements FieldObject

Author:
aricardo
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JCheckBox
javax.swing.JCheckBox.AccessibleJCheckBox
 
Nested classes inherited from class javax.swing.JToggleButton
javax.swing.JToggleButton.AccessibleJToggleButton, javax.swing.JToggleButton.ToggleButtonModel
 
Nested classes inherited from class javax.swing.AbstractButton
javax.swing.AbstractButton.AccessibleAbstractButton, javax.swing.AbstractButton.ButtonChangeListener
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
protected  boolean editable
           
protected  java.lang.String format
           
protected  java.lang.Object value
          Valor que o campo contem.
 
Fields inherited from class javax.swing.JCheckBox
BORDER_PAINTED_FLAT_CHANGED_PROPERTY
 
Fields inherited from class javax.swing.AbstractButton
actionListener, BORDER_PAINTED_CHANGED_PROPERTY, changeEvent, changeListener, CONTENT_AREA_FILLED_CHANGED_PROPERTY, DISABLED_ICON_CHANGED_PROPERTY, DISABLED_SELECTED_ICON_CHANGED_PROPERTY, FOCUS_PAINTED_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, HORIZONTAL_TEXT_POSITION_CHANGED_PROPERTY, ICON_CHANGED_PROPERTY, itemListener, MARGIN_CHANGED_PROPERTY, MNEMONIC_CHANGED_PROPERTY, model, MODEL_CHANGED_PROPERTY, PRESSED_ICON_CHANGED_PROPERTY, ROLLOVER_ENABLED_CHANGED_PROPERTY, ROLLOVER_ICON_CHANGED_PROPERTY, ROLLOVER_SELECTED_ICON_CHANGED_PROPERTY, SELECTED_ICON_CHANGED_PROPERTY, TEXT_CHANGED_PROPERTY, VERTICAL_ALIGNMENT_CHANGED_PROPERTY, VERTICAL_TEXT_POSITION_CHANGED_PROPERTY
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface pt.moredata.widgets.FieldObject
CHECK_BOX, COMBO_BOX, EDITOR_PANE, IMAGE_FIELD, RADIO_BUTTONS, TEXT_FIELD
 
Fields inherited from interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
CheckBoxFieldObject()
          Creates a new instance of CheckBoxFieldObject
 
Method Summary
 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 addFocListener(java.awt.event.FocusListener l)
          Adds the specified focus listener to receive focus events from this component when this component gains input focus.
 void clearImageScreen()
          Clears all references to previously added image.
 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.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()
          Deprecated.  
 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()
           
 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
 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 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 removeFocListener(java.awt.event.FocusListener l)
          Removes the specified focus listener so that it no longer receives focus events from this component.
 void select(int selectionStart, int selectionEnd)
           
 void selectAll()
           
 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 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 setFocusAccelerator(char aKey)
           
 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 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 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 setValidateOnLostFocus(boolean _validateOnLostFocus)
          Sets the validateOnLostFocus attribute of the DataField object
 int viewToModel(java.awt.Point pt)
           
 void write(java.io.Writer out)
           
 
Methods inherited from class pt.moredata.widgets.CheckBox
getUIClassID, setSelectedValue, setUnSelectedValue, updateUI
 
Methods inherited from class javax.swing.JCheckBox
configurePropertiesFromAction, createActionPropertyChangeListener, isBorderPaintedFlat, paramString, setBorderPaintedFlat
 
Methods inherited from class javax.swing.AbstractButton
addActionListener, addChangeListener, addItemListener, checkHorizontalKey, checkVerticalKey, createActionListener, createChangeListener, createItemListener, doClick, doClick, fireActionPerformed, fireItemStateChanged, fireStateChanged, getAction, getActionCommand, getActionListeners, getChangeListeners, getDisabledIcon, getDisabledSelectedIcon, getDisplayedMnemonicIndex, getHorizontalTextPosition, getIcon, getIconTextGap, getItemListeners, getLabel, getMargin, getMnemonic, getModel, getMultiClickThreshhold, getPressedIcon, getRolloverIcon, getRolloverSelectedIcon, getSelectedIcon, getSelectedObjects, getUI, getVerticalAlignment, getVerticalTextPosition, imageUpdate, init, isBorderPainted, isContentAreaFilled, isFocusPainted, isRolloverEnabled, isSelected, paintBorder, removeActionListener, removeChangeListener, removeItemListener, setAction, setActionCommand, setBorderPainted, setContentAreaFilled, setDisabledIcon, setDisabledSelectedIcon, setDisplayedMnemonicIndex, setEnabled, setFocusPainted, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setLabel, setMargin, setMnemonic, setMnemonic, setModel, setMultiClickThreshhold, setPressedIcon, setRolloverEnabled, setRolloverIcon, setRolloverSelectedIcon, setSelected, setSelectedIcon, setText, setUI, setVerticalAlignment, setVerticalTextPosition
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface pt.moredata.widgets.FieldObject
addActionListener, addComponentListener, addContainerListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, getFont, getPreferredSize, grabFocus, hasFocus, removeActionListener, removeComponentListener, removeContainerListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, requestFocus, scrollRectToVisible, setActionCommand, setBackground, setBorder, setBounds, setEnabled, setFont, setForeground, setHorizontalAlignment, setPreferredSize, setText
 

Field Detail

editable

protected boolean editable

format

protected java.lang.String format

value

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

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

Constructor Detail

CheckBoxFieldObject

public CheckBoxFieldObject()
Creates a new instance of CheckBoxFieldObject

Method Detail

getAccessibleContext

public javax.accessibility.AccessibleContext getAccessibleContext()
Description copied from interface: FieldObject
Gets the accessibleContext attribute of the DataField object

Specified by:
getAccessibleContext in interface FieldObject

getActions

public javax.swing.Action[] getActions()
Description copied from interface: FieldObject
Gets the actions attribute of the DataField object

Specified by:
getActions in interface FieldObject
Returns:
The actions value

getCaretPosition

public int getCaretPosition()
Description copied from interface: FieldObject
Gets the caretPosition attribute of the DataField object

Specified by:
getCaretPosition in interface FieldObject
Returns:
The caretPosition value

getColumns

public int getColumns()
Description copied from interface: FieldObject
Gets the columns attribute of the DataField object

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

getDecimals

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

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

getDescriptionColumn

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

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

getDocument

public javax.swing.text.Document getDocument()
Description copied from interface: FieldObject
Gets the document attribute of the DataField object

Specified by:
getDocument in interface FieldObject
Returns:
The document value

getDouble

public double getDouble()
Description copied from interface: FieldObject
Devolve o valor correspondente ao campo em double ??? Isto devia ser deprecado

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

getFocusAccelerator

public char getFocusAccelerator()
Description copied from interface: FieldObject
Gets the focusAccelerator attribute of the DataField object

Specified by:
getFocusAccelerator in interface FieldObject
Returns:
The focusAccelerator value

getFormat

public java.lang.String getFormat()
Description copied from interface: FieldObject
Gets the format attribute of the DataField object

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

getHelpContextId

public java.lang.String getHelpContextId()
Description copied from interface: FieldObject
Gets the helpContextId attribute of the DataField object

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

getHorizontalAlignment

public int getHorizontalAlignment()
Description copied from interface: FieldObject
Gets the horizontalAlignment attribute of the DataField object

Specified by:
getHorizontalAlignment in interface FieldObject

getHorizontalVisibility

public javax.swing.BoundedRangeModel getHorizontalVisibility()
Description copied from interface: FieldObject
Gets the horizontalVisibility attribute of the DataField object

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

getKeymap

public javax.swing.text.Keymap getKeymap()
Description copied from interface: FieldObject
Vai buscar um KeyMap adicionado anteriormente

Specified by:
getKeymap in interface FieldObject

getLong

public long getLong()
Description copied from interface: FieldObject
Devolve o valor correspondente ao campo em long ??? Isto devia ser deprecado

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

getObject

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

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

getOnlyDigits

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

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

getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()
Specified by:
getPreferredScrollableViewportSize in interface FieldObject

getScrollOffset

public int getScrollOffset()
Description copied from interface: FieldObject
Gets the scrollOffset attribute of the DataField object

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

getScrollableBlockIncrement

public int getScrollableBlockIncrement(java.awt.Rectangle visibleRect,
                                       int orientation,
                                       int direction)
Specified by:
getScrollableBlockIncrement in interface FieldObject

getScrollableUnitIncrement

public int getScrollableUnitIncrement(java.awt.Rectangle visibleRect,
                                      int orientation,
                                      int direction)
Specified by:
getScrollableUnitIncrement in interface FieldObject

getSelectedText

public java.lang.String getSelectedText()
Specified by:
getSelectedText in interface FieldObject

getSelectionEnd

public int getSelectionEnd()
Specified by:
getSelectionEnd in interface FieldObject

getSelectionStart

public int getSelectionStart()
Specified by:
getSelectionStart in interface FieldObject

getText

public java.lang.String getText()
Specified by:
getText in interface FieldObject

getText

public java.lang.String getText(int offs,
                                int len)
Specified by:
getText in interface FieldObject

isEditable

public boolean isEditable()
Description copied from interface: FieldObject
Gets the isEditable attribute of the DataField object

Specified by:
isEditable in interface FieldObject
Returns:
The isEditable value

isValidateRoot

public boolean isValidateRoot()
Description copied from interface: FieldObject
Gets the validateRoot attribute of the DataField object

Specified by:
isValidateRoot in interface FieldObject

modelToView

public java.awt.Rectangle modelToView(int pos)
Specified by:
modelToView in interface FieldObject

setObject

public void setObject(java.lang.Object object)
Description copied from interface: FieldObject
Afecta o objecto com um valor e mostra no Field o seu conteudo
Se a coluna a que o campo pertence fôr chave estrangeira efectua o lookup da descodificação correspondente.

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

viewToModel

public int viewToModel(java.awt.Point pt)
Specified by:
viewToModel in interface FieldObject

getComponent

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

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

addAfterField

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

addCaretListener

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

Specified by:
addCaretListener in interface FieldObject
Parameters:
listener - The feature to be added to the CaretListener attribute

clearImageScreen

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

Specified by:
clearImageScreen in interface FieldObject

copy

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

Specified by:
copy in interface FieldObject

cut

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

Specified by:
cut in interface FieldObject

getMaxErrorMessage

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

Specified by:
getMaxErrorMessage in interface FieldObject
Returns:
Mensagem

getMaxLength

public int getMaxLength()
Tamanho maximo do field

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

getMaxValue

public long getMaxValue()
Deprecated.  

Specified by:
getMaxValue in interface FieldObject
Returns:
The maxValue value

getMinErrorMessage

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

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

getMinValue

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

Specified by:
getMinValue in interface FieldObject

getRequired

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

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

getValidateOnLostFocus

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

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

isAutoFormat

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

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

moveCaretPosition

public void moveCaretPosition(int pos)
Specified by:
moveCaretPosition in interface FieldObject

paste

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

Specified by:
paste in interface FieldObject

postActionEvent

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

Specified by:
postActionEvent in interface FieldObject

read

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

removeCaretListener

public void removeCaretListener(javax.swing.event.CaretListener listener)
Specified by:
removeCaretListener in interface FieldObject

select

public void select(int selectionStart,
                   int selectionEnd)
Specified by:
select in interface FieldObject

selectAll

public void selectAll()
Specified by:
selectAll in interface FieldObject

setAutoFormat

public void setAutoFormat(boolean _auto)
setAutomaticFormat

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

setCaretPosition

public void setCaretPosition(int position)
Specified by:
setCaretPosition in interface FieldObject

setCodeColumn

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

setColumns

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

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

getDbDataType

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

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

setDbDataType

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

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

setDecimals

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

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

setDescriptionColumn

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

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

setDisabledTextColor

public void setDisabledTextColor(java.awt.Color c)
Specified by:
setDisabledTextColor in interface FieldObject

setDocument

public void setDocument(javax.swing.text.Document doc)
Specified by:
setDocument in interface FieldObject

setEditable

public void setEditable(boolean _editable)
setEditable

Specified by:
setEditable in interface FieldObject
Parameters:
_editable - true se o campo fôr editável, false caso contrário

setFocusAccelerator

public void setFocusAccelerator(char aKey)
Specified by:
setFocusAccelerator in interface FieldObject

setFormat

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

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

setHelpContextId

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

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

setMaxErrorMessage

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

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

setMaxLength

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

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

setMaxValue

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

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

setMinErrorMessage

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

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

setMinValue

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

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

setOnlyDigits

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

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

setRequired

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

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

setScrollOffset

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

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

setSelectionEnd

public void setSelectionEnd(int selectionEnd)
Specified by:
setSelectionEnd in interface FieldObject

setSelectionStart

public void setSelectionStart(int selectionStart)
Specified by:
setSelectionStart in interface FieldObject

setShowCode

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

Specified by:
setShowCode in interface FieldObject

setTable

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

setValidateOnLostFocus

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

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

write

public void write(java.io.Writer out)
           throws java.io.IOException
Specified by:
write in interface FieldObject
Throws:
java.io.IOException

addFocListener

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

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

removeFocListener

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

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

addComboElement

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

Specified by:
addComboElement in interface FieldObject

setMaxColumns

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

Specified by:
setMaxColumns in interface FieldObject
Parameters:
_maxColumns - The new maxColumns value

getMaxColumns

public int getMaxColumns()
Numero maximo de caracteres numa linha

Specified by:
getMaxColumns in interface FieldObject
Returns:
The maxColumns value

getMaxLines

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

Specified by:
getMaxLines in interface FieldObject
Returns:
The maxLines value

setMaxLines

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

Specified by:
setMaxLines in interface FieldObject
Parameters:
_maxLines - The new maxLines value

removeAllItems

public void removeAllItems()
Remove todos os dados que estao na combo e o vector de chaves primarias e acaba com a chave primaria corrente que se calhar ate deveria vir do data control e nao ser mantido na combobox

Specified by:
removeAllItems in interface FieldObject

getAllowedCharacters

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

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

setAllowedCharacters

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

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