|
Ontimize 5.2072EN | |||||||||
| 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
com.ontimize.gui.field.DataField
com.ontimize.gui.field.TextFieldDataField
com.ontimize.gui.field.DateDataField
com.ontimize.gui.field.HourDateDataField
This class implements a data field with date and hours. Moreover, it is possible to show an associated calendar with this field.
| Nested Class Summary |
| Nested classes inherited from class com.ontimize.gui.field.DateDataField |
DateDataField.CloseAction |
| Nested classes inherited from class com.ontimize.gui.field.TextFieldDataField |
TextFieldDataField.EJTextField, TextFieldDataField.InnerDocumentListener |
| Nested classes inherited from class com.ontimize.gui.field.DataField |
DataField.AuxPanel, DataField.CopyActionListener, DataField.ELabel, DataField.FieldButton, DataField.FieldFocusListener, DataField.InfoMouseListener, DataField.ToggleButton |
| 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 java.lang.String |
dateAttribute
|
protected boolean |
dateVisible
|
protected javax.swing.JTextField |
hourField
|
| Fields inherited from class com.ontimize.gui.field.DateDataField |
advancedHelpBMenu, calendarButton, calendarChange, calendarComp, calendarTitleKey, DEBUG_DATE, emphasizeInvalidDate, frame, locale, mainCalendar, vCalendar |
| Fields inherited from class com.ontimize.gui.field.TextFieldDataField |
disabledTextColor, innerListener |
| 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 com.ontimize.gui.field.AdvancedDataComponent |
ADVANCED_QUERY |
| Fields inherited from interface com.ontimize.gui.field.DataComponent |
COMP_FOCUS_YELLOW, GREEN_VERY_LIGHT, LIGHT_GRAY_BLUE, LIGHT_GREYISH_BLUE, VERY_LIGHT_BLUE, VERY_LIGHT_GRAY, VERY_LIGHT_PINK, VERY_LIGHT_RED, VERY_LIGHT_SKYBLUE, VERY_LIGHT_YELLOW, VERY_LIGHT_YELLOW_2 |
| Fields inherited from interface com.ontimize.gui.field.FormComponent |
DEBUG |
| Fields inherited from interface com.ontimize.gui.i18n.Internationalization |
DEBUG_LANGUAGE |
| Fields inherited from interface com.ontimize.gui.SecureElement |
DESACTIVATE_COMPONENT_BY_PERMISSION_TIP |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
| Constructor Summary | |
HourDateDataField(java.util.Hashtable parameters)
The class constructor. |
|
| Method Summary | |
void |
deleteData()
Deletes the date of the data field. |
protected void |
formatHour()
Formats the hour. |
java.lang.Object |
getDateValue()
Gets the Date value. |
javax.swing.JTextField |
getHourField()
Gets the hour field. |
java.lang.Object |
getValue()
Gets the Timestamp value. |
void |
init(java.util.Hashtable parameters)
Initializes parameters. |
boolean |
isEmpty()
Checks the presence and validity of data. |
void |
setComponentLocale(java.util.Locale loc)
Sets the Component Locale, to format date, specified in parameter. |
void |
setEnabled(boolean enabled)
Checks the variable that indicates if user has permission to introduce values into the datafield. |
void |
setFontSize(int fontSize)
Sets font size to size parameter. |
void |
setParentForm(Form form)
Method declaration to set the form that contains the component. |
void |
setResourceBundle(java.util.ResourceBundle res)
Sets the resource bundle. |
void |
setValue(java.lang.Object value)
Sets the field value by program when auxValue is a instance
of java.sql.timestamp or java.util. |
void |
setValueFromComponent(java.lang.Object componentValue)
Sets the field value by user when auxValue is a instance of
java.sql.timestamp or java.util. |
void |
setVisible(boolean visible)
Description method to set visible or not the component according the boolean condition in parameter. |
protected void |
updateBackgroundColor()
Updates the background color. |
| Methods inherited from class com.ontimize.gui.field.DateDataField |
colorSelection, createPopupMenu, format, free, getDataFieldPreferredSize, getSameCountryLocale, getSQLDataType, hiddenCalendar, installInnerListener, isModified, setAdvancedQueryMode, setDocument, setEmphasizeInvalidDate, setParentFrame, showCalendar, showPopupMenu |
| Methods inherited from class com.ontimize.gui.field.TextFieldDataField |
createDataField, getAttribute, getInnerListenerEnabled, getInnerValue, getLabelComponentText, getText, isInnerValueEqual, isModifiable, isRequired, setInnerListenerEnabled, setInnerValue |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
| 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, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, 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, 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, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, 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, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.ontimize.gui.field.DataComponent |
getLabelComponentText, isHidden, isModifiable, isRequired, setModifiable, setRequired |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
getConstraints, isEnabled |
| Methods inherited from interface com.ontimize.gui.i18n.Internationalization |
getTextsToTranslate |
| Methods inherited from interface com.ontimize.gui.field.IdentifiedElement |
getAttribute |
| Methods inherited from interface com.ontimize.gui.SecureElement |
initPermissions, isRestricted |
| Field Detail |
protected javax.swing.JTextField hourField
protected boolean dateVisible
protected java.lang.String dateAttribute
| Constructor Detail |
public HourDateDataField(java.util.Hashtable parameters)
super with parameters, fixes
the constrains, sets listeners and initializes parameters.
parameters - the Hashtable with parameters.| Method Detail |
public void init(java.util.Hashtable parameters)
init in interface FormComponentinit in class DateDataFieldparameters - the Hashtable with parameters. Adds the next
parameters:
| attribute | values | default | required | meaning |
| datevisible | yes/no | yes | no | Indicates the visibility condition of date field and calendar button. |
| date | no | The date for the field will be fixed by this attribute. Creates a dependence with other date field. | ||
| hourfieldsize | integer value | 6 | no | The number of columns in the hour JTextField. |
public void setFontSize(int fontSize)
DataField
setFontSize in class DataFieldfontSize - the font size parameterpublic void setParentForm(Form form)
AccessForm
setParentForm in interface AccessFormsetParentForm in class DataFieldpublic void setVisible(boolean visible)
FormComponent
setVisible in interface FormComponentsetVisible in class DataFieldpublic java.lang.Object getDateValue()
DateDataField
getDateValue in class DateDataFieldprotected void formatHour()
HourDocument.format()public void setEnabled(boolean enabled)
DateDataField
setEnabled in interface FormComponentsetEnabled in class DateDataFieldenabled - boolean to change permissionspublic void setComponentLocale(java.util.Locale loc)
DateDataField
setComponentLocale in interface InternationalizationsetComponentLocale in class DateDataFieldpublic boolean isEmpty()
DateDataField
isEmpty in interface DataComponentisEmpty in class DateDataFieldpublic void deleteData()
DateDataField
deleteData in interface DataComponentdeleteData in class DateDataFieldpublic java.lang.Object getValue()
DateDataField
getValue in interface DataComponentgetValue in class DateDataFieldpublic void setValueFromComponent(java.lang.Object componentValue)
DateDataFieldauxValue is a instance of
java.sql.timestamp or java.util. During the method execution the inner
Listener is disabled.
setValueFromComponent in class DateDataFieldcomponentValue - Date or Timestamp ObjectValueEvent.USER_CHANGEpublic void setValue(java.lang.Object value)
DateDataFieldauxValue is a instance
of java.sql.timestamp or java.util. During the method execution the inner
Listener is disabled.
setValue in interface DataComponentsetValue in class DateDataFieldvalue - Date or Timestamp ObjectValueEvent.PROGRAMMATIC_CHANGEpublic javax.swing.JTextField getHourField()
protected void updateBackgroundColor()
DataField
updateBackgroundColor in class DataFieldpublic void setResourceBundle(java.util.ResourceBundle res)
DateDataField
setResourceBundle in interface InternationalizationsetResourceBundle in class DateDataFieldres - the resource bundle to change
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||