|
|||||||||||
| 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.JPanel
pt.moredata.widgets.EditorPane
pt.moredata.widgets.EditorPaneObject
EditorPaneObject.java Company MoreData
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| 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
Propriedade que indica se o campo e editavel ou nao. |
protected java.lang.Object |
value
Valor que o campo contem. |
| Fields inherited from class pt.moredata.widgets.EditorPane |
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 pt.moredata.widgets.FieldObject |
CHECK_BOX, COMBO_BOX, EDITOR_PANE, IMAGE_FIELD, RADIO_BUTTONS, TEXT_FIELD |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
EditorPaneObject()
|
|
| 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 |
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. |
java.lang.String |
getAllowedCharacters()
Return a String with a set of characters that are allowed to be used in the widget. |
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 |
double |
getDouble()
Devolve o valor correspondente ao campo em double ??? |
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 ??? |
java.lang.String |
getMaxErrorMessage()
Mensagem de validação do valor maximo |
int |
getMaxLength()
Tamanho maximo do field |
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 ???? |
boolean |
getRequired()
Gets the required attribute of the DataField object |
int |
getScrollOffset()
Gets the scrollOffset attribute of the DataField object |
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 |
void |
postActionEvent()
Processa os eventos que ocorrem e envia-os para os objectos ActionListener registados |
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 |
removeFocListener(java.awt.event.FocusListener l)
Removes the specified focus listener so that it no longer receives focus events from this component. |
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 |
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 |
setEditable(boolean _editable)
setEditable |
void |
setEnabled(boolean b)
Sets the enabled attribute of the DataEditorPane object |
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 |
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 |
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 |
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 |
| Methods inherited from class javax.swing.JPanel |
getUI, getUIClassID, paramString, setUI, updateUI |
| 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, isValidateRoot, 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, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, 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, 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, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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 |
| Field Detail |
protected boolean editable
protected java.lang.Object value
Se combo box ou com descodificação contem sempre o valor da chave estrangeira.
| Constructor Detail |
public EditorPaneObject()
| Method Detail |
public void addAfterField(AfterFieldListener l)
addAfterField in interface FieldObjectpublic int getDecimals()
FieldObject
getDecimals in interface FieldObjectpublic java.lang.String getDescriptionColumn()
FieldObject
getDescriptionColumn in interface FieldObjectpublic java.lang.Object getObject()
FieldObject
getObject in interface FieldObjectgetObject in class EditorPanepublic void setDecimals(int _nd)
FieldObject
setDecimals in interface FieldObject_nd - Número de casas decimaispublic void setEditable(boolean _editable)
FieldObject
setEditable in interface FieldObjectsetEditable in class EditorPane_editable - The new editable valuepublic void setEnabled(boolean b)
EditorPane
setEnabled in interface FieldObjectsetEnabled in class EditorPaneb - The new enabled valuepublic void setFormat(java.lang.String _format)
FieldObject
setFormat in interface FieldObject_format - O novo formatopublic void setObject(java.lang.Object object)
FieldObject
setObject in interface FieldObjectsetObject in class EditorPaneobject - The new object valuepublic void setValidateOnLostFocus(boolean _validateOnLostFocus)
FieldObject
setValidateOnLostFocus in interface FieldObject_validateOnLostFocus - The new validateOnLostFocus valuepublic java.awt.Component getComponent()
FieldObject
getComponent in interface FieldObjectpublic void clearImageScreen()
clearImageScreen in interface FieldObjectpublic boolean getRequired()
getRequired in interface FieldObjectpublic boolean isAutoFormat()
isAutoFormat in interface FieldObjectpublic void setCodeColumn(java.lang.String referencedColumn)
setCodeColumn in interface FieldObjectpublic void setDescriptionColumn(java.lang.String _descriptionColumn)
setDescriptionColumn in interface FieldObject_descriptionColumn - The new descriptionColumn valuepublic void setForeground(java.awt.Color fg)
setForeground in interface FieldObjectpublic void setShowCode(boolean showCode)
setShowCode in interface FieldObjectpublic void setTable(java.lang.String table)
setTable in interface FieldObjectpublic void addFocListener(java.awt.event.FocusListener l)
FieldObject
addFocListener in interface FieldObjectl - - the focus listenerpublic void removeFocListener(java.awt.event.FocusListener l)
FieldObject
removeFocListener in interface FieldObjectl - - the focus listener
public void addComboElement(java.lang.Object code,
java.lang.Object description)
FieldObject
addComboElement in interface FieldObjectpublic void addActionListener(java.awt.event.ActionListener l)
addActionListener in interface FieldObjectl - The feature to be added to the ActionListener attributepublic int getColumns()
getColumns in interface FieldObjectpublic double getDouble()
getDouble in interface FieldObjectpublic java.lang.String getFormat()
getFormat in interface FieldObjectpublic java.lang.String getHelpContextId()
getHelpContextId in interface FieldObjectpublic int getHorizontalAlignment()
getHorizontalAlignment in interface FieldObjectpublic javax.swing.BoundedRangeModel getHorizontalVisibility()
getHorizontalVisibility in interface FieldObjectpublic long getLong()
getLong in interface FieldObjectpublic java.lang.String getMaxErrorMessage()
getMaxErrorMessage in interface FieldObjectpublic int getMaxLength()
getMaxLength in interface FieldObjectpublic long getMaxValue()
getMaxValue in interface FieldObjectpublic java.lang.String getMinErrorMessage()
getMinErrorMessage in interface FieldObjectpublic long getMinValue()
getMinValue in interface FieldObjectpublic boolean getOnlyDigits()
getOnlyDigits in interface FieldObjectpublic int getScrollOffset()
getScrollOffset in interface FieldObjectpublic boolean getValidateOnLostFocus()
getValidateOnLostFocus in interface FieldObjectpublic void postActionEvent()
postActionEvent in interface FieldObjectpublic void removeActionListener(java.awt.event.ActionListener l)
removeActionListener in interface FieldObjectl - actionListener a removerpublic void setActionCommand(java.lang.String command)
setActionCommand in interface FieldObjectcommand - The new actionCommand valuepublic void setAutoFormat(boolean _auto)
setAutoFormat in interface FieldObject_auto - true para que exista formatação automática, false não faz
qualquer formataçãopublic void setColumns(int columns)
setColumns in interface FieldObjectcolumns - The new columns valuepublic java.lang.String getDbDataType()
getDbDataType in interface FieldObjectpublic void setDbDataType(java.lang.String dbDataType)
setDbDataType in interface FieldObjectdbDataType - O nome do tipo de dados devolvidopublic void setHelpContextId(java.lang.String _helpContextId)
setHelpContextId in interface FieldObject_helpContextId - The new helpContextId valuepublic void setHorizontalAlignment(int alignment)
setHorizontalAlignment in interface FieldObjectalignment - The new horizontalAlignment valuepublic void setMaxErrorMessage(java.lang.String message)
setMaxErrorMessage in interface FieldObjectmessage - Mensagem mostrada após validar máximopublic void setMaxLength(int _maxLength)
setMaxLength in interface FieldObject_maxLength - O novo valor de maxLengthpublic void setMaxValue(long _maxValue)
setMaxValue in interface FieldObject_maxValue - The new maxValue valuepublic void setMinErrorMessage(java.lang.String message)
setMinErrorMessage in interface FieldObjectmessage - The new minErrorMessage valuepublic void setMinValue(long _minValue)
setMinValue in interface FieldObject_minValue - The new minValue valuepublic void setOnlyDigits(boolean _onlyDigits)
setOnlyDigits in interface FieldObject_onlyDigits - The new onlyDigits valuepublic void setRequired(boolean _required)
setRequired in interface FieldObject_required - The new required valuepublic void setScrollOffset(int scrollOffset)
setScrollOffset in interface FieldObjectscrollOffset - The new scrollOffset valuepublic void removeAllItems()
removeAllItems in interface FieldObjectpublic java.lang.String getAllowedCharacters()
getAllowedCharacters in interface FieldObjectpublic void setAllowedCharacters(java.lang.String allowedCharacters)
setAllowedCharacters in interface FieldObjectallowedCharacters - A string with the allowed characters.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||