|
|||||||||||
| 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
javax.swing.text.JTextComponent
javax.swing.JTextField
pt.despodata.java.ddata.DDataTextField
pt.despodata.java.ddata.table.DDataCellTextField
| Nested Class Summary | |
protected class |
DDataCellTextField.DDataFieldDocumentListener
Classe utilizada quando o valor do campo é alterado |
class |
DDataCellTextField.ddataFieldFocusListener
|
class |
DDataCellTextField.FocusGrabber
Class para gerir o ficus de uma componente |
| Nested classes inherited from class pt.despodata.java.ddata.DDataTextField |
DDataTextField.Sendkey |
| Nested classes inherited from class javax.swing.JTextField |
javax.swing.JTextField.AccessibleJTextField |
| Nested classes inherited from class javax.swing.text.JTextComponent |
javax.swing.text.JTextComponent.AccessibleJTextComponent, javax.swing.text.JTextComponent.KeyBinding |
| 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 java.util.Vector |
afterFieldListenersList
|
int |
dataType
|
protected java.util.Vector |
errorInValidationList
|
protected java.lang.Object |
oldValue
Valor Antigo |
protected java.lang.Object |
value
Valor que o campo contem |
| Fields inherited from class javax.swing.JTextField |
notifyAction |
| Fields inherited from class javax.swing.text.JTextComponent |
DEFAULT_KEYMAP, FOCUS_ACCELERATOR_KEY |
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface 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 | |
DDataCellTextField()
Construtor |
|
| Method Summary | |
void |
addAfterField(AfterFieldListener l)
AfterField event |
void |
addErrorInValidation(ErrorInValidationListener l)
|
void |
autoScroll(java.awt.Rectangle aRect)
|
protected boolean |
domainValidated()
Valida se o dominio da informacao que o campo contem esta no dominio definido nas propriedades |
void |
formatValue()
Formata o valor preenchido de acordo com o formato definido ou com o formato implicito ao tipo de dados ???? |
java.lang.String |
getDbDataType()
Devolve o valor da propriedade do text field |
double |
getDouble()
Devolve o valor correspondente ao campo em double |
java.lang.String |
getErrorMessages()
|
java.lang.String |
getFormat()
|
java.lang.String |
getHelpContextId()
|
long |
getLong()
Devolve o valor correspondente ao campo em long |
java.lang.String |
getMaxErrorMessage()
Mensagem de validação do valor maximo |
int |
getMaxLength()
Maximum length in characters for the field |
long |
getMaxValue()
|
java.lang.String |
getMinErrorMessage()
Mensagem de validação do valor maximo |
long |
getMinValue()
|
int |
getNumDecimais()
devolve o numero de casas decimais |
java.lang.Object |
getObject()
Devolve o valor correspondente ao campo |
boolean |
getOnlyDigits()
|
boolean |
getRequired()
|
boolean |
getValidateOnLostFocus()
Propriedade que define se o campo deve ou nao ser validado quando perde o focus |
boolean |
isAutoFormat()
|
boolean |
isManagingFocus()
|
java.lang.String |
makeFormat(int type,
boolean separador)
define o formato |
java.lang.String |
numberMask(int _nd,
boolean separador)
Faz mascara |
void |
refreshFormat()
|
void |
removeAfterField(AfterFieldListener l)
|
void |
removeErrorInValidation(ErrorInValidationListener l)
|
void |
setAutoFormat(boolean _auto)
setAutomaticFormat |
void |
setDbDataType(java.lang.String _dbDataType)
Afecta o valor da propriedade do text field Deveria ser uma propriedade constrained, mas para ja o programador tem de ter cuidado |
void |
setEditable(boolean _editable)
Define se o utilizador pode ou não alterar a informação disponivel no TextField |
void |
setFormat(java.lang.String _format)
|
void |
setHelpContextId(java.lang.String _helpContextId)
|
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)
|
void |
setMaxValue(int _maxValue)
|
void |
setMaxValue(long _maxValue)
|
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(int _minValue)
|
void |
setMinValue(long _minValue)
|
void |
setNumDecimais(int _nd)
Define o numero de casas decimais |
void |
setObject(java.lang.Object object)
Afecta o objecto com um valor |
void |
setOnlyDigits(boolean _onlyDigits)
Se o string |
void |
setRequired(boolean _required)
|
void |
setShowMessages(boolean _showMessages)
Se aparece mensagens de validação |
void |
setText(java.lang.String text)
Override do setText |
void |
setValidateOnLostFocus(boolean _validateOnLostFocus)
|
void |
startEditing()
Faz a preparação para começar a edição |
void |
stopEditing()
Faz as validações e a formatação do campo |
protected java.lang.String |
validateMaxMin(java.lang.Object _value)
Validação de um valor |
boolean |
valueValidated()
Valida se o valor preenchido eh valido para o tipo de dados |
| Methods inherited from class pt.despodata.java.ddata.DDataTextField |
addAllListeners, getMaxObjValue, getMinObjValue, setMaxValue, setMinValue |
| Methods inherited from class javax.swing.JTextField |
addActionListener, configurePropertiesFromAction, createActionPropertyChangeListener, createDefaultModel, fireActionPerformed, getAccessibleContext, getAction, getActionListeners, getActions, getColumns, getColumnWidth, getHorizontalAlignment, getHorizontalVisibility, getPreferredSize, getScrollOffset, getUIClassID, isValidateRoot, paramString, postActionEvent, removeActionListener, scrollRectToVisible, setAction, setActionCommand, setColumns, setDocument, setFont, setHorizontalAlignment, setScrollOffset |
| Methods inherited from class javax.swing.text.JTextComponent |
addCaretListener, addInputMethodListener, addKeymap, copy, cut, fireCaretUpdate, getCaret, getCaretColor, getCaretListeners, getCaretPosition, getDisabledTextColor, getDocument, getDragEnabled, getFocusAccelerator, getHighlighter, getInputMethodRequests, getKeymap, getKeymap, getMargin, getNavigationFilter, getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getSelectedText, getSelectedTextColor, getSelectionColor, getSelectionEnd, getSelectionStart, getText, getText, getToolTipText, getUI, isEditable, loadKeymap, modelToView, moveCaretPosition, paste, processInputMethodEvent, read, removeCaretListener, removeKeymap, removeNotify, replaceSelection, select, selectAll, setCaret, setCaretColor, setCaretPosition, setComponentOrientation, setDisabledTextColor, setDragEnabled, setFocusAccelerator, setHighlighter, setKeymap, setMargin, setNavigationFilter, setSelectedTextColor, setSelectionColor, setSelectionEnd, setSelectionStart, setUI, updateUI, viewToModel, write |
| 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, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, 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, 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, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, 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, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, 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 |
| Field Detail |
protected java.util.Vector errorInValidationList
public int dataType
protected java.lang.Object value
protected java.lang.Object oldValue
protected java.util.Vector afterFieldListenersList
| Constructor Detail |
public DDataCellTextField()
| Method Detail |
public void setMaxErrorMessage(java.lang.String message)
setMaxErrorMessage in class DDataTextFieldpublic java.lang.String getMaxErrorMessage()
getMaxErrorMessage in class DDataTextFieldpublic void setMinErrorMessage(java.lang.String message)
setMinErrorMessage in class DDataTextFieldpublic java.lang.String getMinErrorMessage()
getMinErrorMessage in class DDataTextFieldpublic void setText(java.lang.String text)
setText in class DDataTextFieldpublic void setAutoFormat(boolean _auto)
setAutoFormat in class DDataTextFieldpublic boolean isAutoFormat()
isAutoFormat in class DDataTextFieldpublic void setEditable(boolean _editable)
setEditable in class DDataTextFieldpublic void setNumDecimais(int _nd)
setNumDecimais in class DDataTextFieldpublic int getNumDecimais()
getNumDecimais in class DDataTextField
public java.lang.String numberMask(int _nd,
boolean separador)
public void refreshFormat()
refreshFormat in class DDataTextField
public java.lang.String makeFormat(int type,
boolean separador)
public java.lang.String getDbDataType()
getDbDataType in class DDataTextFieldpublic void setDbDataType(java.lang.String _dbDataType)
setDbDataType in class DDataTextFieldpublic long getMaxValue()
getMaxValue in class DDataTextFieldpublic void setMaxValue(long _maxValue)
setMaxValue in class DDataTextFieldpublic void setMaxValue(int _maxValue)
setMaxValue in class DDataTextFieldpublic long getMinValue()
getMinValue in class DDataTextFieldpublic void setMinValue(long _minValue)
setMinValue in class DDataTextFieldpublic void setMinValue(int _minValue)
setMinValue in class DDataTextFieldpublic java.lang.String getHelpContextId()
getHelpContextId in class DDataTextFieldpublic void setHelpContextId(java.lang.String _helpContextId)
setHelpContextId in class DDataTextFieldpublic boolean getRequired()
getRequired in class DDataTextFieldpublic void setRequired(boolean _required)
setRequired in class DDataTextFieldpublic java.lang.String getFormat()
getFormat in class DDataTextFieldpublic void setFormat(java.lang.String _format)
setFormat in class DDataTextFieldpublic boolean getValidateOnLostFocus()
getValidateOnLostFocus in class DDataTextFieldpublic void setValidateOnLostFocus(boolean _validateOnLostFocus)
setValidateOnLostFocus in class DDataTextFieldpublic int getMaxLength()
getMaxLength in class DDataTextFieldpublic void setMaxLength(int _maxLength)
setMaxLength in class DDataTextFieldpublic java.lang.Object getObject()
getObject in class DDataTextFieldpublic double getDouble()
getDouble in class DDataTextFieldpublic long getLong()
getLong in class DDataTextFieldpublic void setObject(java.lang.Object object)
setObject in class DDataTextFieldprotected boolean domainValidated()
domainValidated in class DDataTextFieldprotected java.lang.String validateMaxMin(java.lang.Object _value)
validateMaxMin in class DDataTextFieldpublic boolean valueValidated()
valueValidated in class DDataTextFieldpublic void formatValue()
formatValue in class DDataTextFieldpublic void startEditing()
startEditing in class DDataTextFieldpublic void addAfterField(AfterFieldListener l)
addAfterField in class DDataTextFieldpublic void removeAfterField(AfterFieldListener l)
removeAfterField in class DDataTextFieldpublic void setShowMessages(boolean _showMessages)
setShowMessages in class DDataTextFieldpublic void setOnlyDigits(boolean _onlyDigits)
setOnlyDigits in class DDataTextFieldpublic boolean getOnlyDigits()
getOnlyDigits in class DDataTextFieldpublic void autoScroll(java.awt.Rectangle aRect)
autoScroll in class DDataTextFieldpublic java.lang.String getErrorMessages()
public void addErrorInValidation(ErrorInValidationListener l)
public void removeErrorInValidation(ErrorInValidationListener l)
public boolean isManagingFocus()
public void stopEditing()
stopEditing in class DDataTextField
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||