|
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.CalendarSpinnerDataField
| Nested Class Summary | |
static class |
CalendarSpinnerDataField.CalendarSpinnerDataFieldDateEditor
|
static class |
CalendarSpinnerDataField.CalendarSpinnerDataFieldDateModel
|
protected static class |
CalendarSpinnerDataField.CalendarSpinnerGroup
|
protected class |
CalendarSpinnerDataField.InnerListener
This class implements a inner listener for field. |
| 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 static java.lang.String |
CALENDAR_BUTTON
|
protected boolean |
calendarbutton
|
protected DataField.FieldButton |
calendarButton
|
protected boolean |
calendarChange
|
protected VisualCalendarComponent |
calendarComp
|
protected java.lang.String |
calendarTitleKey
|
protected static java.lang.String |
DELETE_BUTTON
|
protected boolean |
deletebutton
|
protected DataField.FieldButton |
deleteButton
|
protected CalendarSpinnerDataField.InnerListener |
innerListener
|
protected java.util.GregorianCalendar |
mainCalendar
|
protected EJDialog |
vCalendar
|
| 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.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 | |
CalendarSpinnerDataField(java.util.Hashtable parameters)
|
|
| Method Summary | |
protected void |
createDataField(java.util.Hashtable parameters)
|
void |
deleteData()
The method to delete data for component. |
protected void |
deleteUserData()
|
DataField.FieldButton |
getCalendarButton()
|
DataField.FieldButton |
getDeleteButton()
|
int |
getSQLDataType()
Returns the sql data type according to java.sql.Types
|
java.lang.Object |
getValue()
Gets the value of a component. |
void |
init(java.util.Hashtable parameters)
Inits parameters. |
void |
installButtons()
|
protected void |
installInnerListener()
Installs the inner listener. |
boolean |
isEmpty()
Checks the data existence in component. |
protected void |
registerKey()
|
void |
setComponentLocale(java.util.Locale l)
|
void |
setEnabled(boolean enabled)
Enables the field to insert data. |
void |
setFont(java.awt.Font font)
|
protected void |
setInnerListenerEnabled(boolean enabled)
|
void |
setValue(java.lang.Object value)
Sets the value for component. |
void |
setValueFromComponent(java.lang.Object auxValue)
|
void |
showCalendar(java.awt.Component c)
|
| 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 |
| Field Detail |
protected static final java.lang.String DELETE_BUTTON
protected static final java.lang.String CALENDAR_BUTTON
protected CalendarSpinnerDataField.InnerListener innerListener
protected boolean deletebutton
protected boolean calendarbutton
protected DataField.FieldButton deleteButton
protected DataField.FieldButton calendarButton
protected EJDialog vCalendar
protected java.util.GregorianCalendar mainCalendar
protected boolean calendarChange
protected java.lang.String calendarTitleKey
protected VisualCalendarComponent calendarComp
| Constructor Detail |
public CalendarSpinnerDataField(java.util.Hashtable parameters)
| Method Detail |
public void init(java.util.Hashtable parameters)
DataField
init in interface FormComponentinit in class DataFieldparameters - the Hashtable with parameters
| attribute | values | default | required | meaning |
| attr | yes | The attribute to manage the field. | ||
| dim | no/text/yes | no | no | The resize possibilities (no resize, resize the insertion space, resize the space between label and text ). |
| size | 10 | no | The size of text in number of characters. | |
| align | center/left/right | center | no | The alignment for field. |
| visible | yes/no | yes | no | The visibility condition. |
| required | yes/no | no | no | The required condition. |
| fontsize | no | The font size. | ||
| fontcolor | no | The font color. | ||
| bgcolor | no | The background color. | ||
| labelsize | no | The label size in number of characters. | ||
| labelvisible | yes/no | yes | The label visibility. | |
| border | default/none/raised/lowered or a color defined in
ColorConstants. Moreover, it is also allowed a border
defined in #BorderManager |
no | The border for datafield | |
| tip | no | The tip for data field. | ||
| textalign | center/right/left | no | The text alignment. | |
| labelposition | top/bottom/right/left | no | The label position. | |
| outborder | default/none/raised/lowered or a color defined in
ColorConstants |
no | The out border. | |
| enabled | yes/no | yes | no | The field activation. |
| text | attr | no | Alternative for attr text. | |
| labelalign | left/right/center | left | no | The label alignment. |
| labelfontcolor | black | no | The font color for label in field | |
| font | A string like : 'Arial-BOLD-18' (See #Font.decode()) | The default font for system | no | Font for data field. |
| opaque | yes/no | no | no | Data field opacity condition |
| labelfont | no | The type of font for label of data field | ||
| requiredborder | yes/no | no | no | The border requirement condition. If it is specified to 'yes', it will be fixed to #BorderManager.DEFAULT_DATA_FIELD_REQUIRED_BORDE |
| disabledbgcolor | no | The background color when data field is disabled. |
protected void createDataField(java.util.Hashtable parameters)
public void installButtons()
public void showCalendar(java.awt.Component c)
public void setValueFromComponent(java.lang.Object auxValue)
public void deleteData()
DataComponent
protected void deleteUserData()
public boolean isEmpty()
DataComponent
true when component is emptypublic java.lang.Object getValue()
DataComponent
object with value.public void setValue(java.lang.Object value)
DataComponent
value - the object with value to setpublic void setEnabled(boolean enabled)
DataField
setEnabled in interface FormComponentsetEnabled in class DataFieldenabled - the condition to set enablepublic int getSQLDataType()
DataComponentsql data type according to java.sql.Types
Integer typeprotected void setInnerListenerEnabled(boolean enabled)
protected void installInnerListener()
public DataField.FieldButton getDeleteButton()
public DataField.FieldButton getCalendarButton()
public void setFont(java.awt.Font font)
setFont in class DataFieldpublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface InternationalizationsetComponentLocale in class DataFieldprotected void registerKey()
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||