|
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.ColorDataField
The main class for creating a color data field.
| Nested Class Summary | |
protected class |
ColorDataField.ColorInnerDocumentListener
The main class to listen the document inner color. |
protected class |
ColorDataField.JPanelColor
The main class for creating a color panel. |
| 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 | |
static java.lang.String |
COLOR_TYPE_VALUE
Color type value property. |
protected javax.swing.JButton |
colorButton
The color button. |
protected static javax.swing.JColorChooser |
colorChooser
The static Color chooser. |
protected ColorDocument |
colorDocument
The Color document. |
static boolean |
DEBUG
Only for DEBUG mode. |
protected javax.swing.JButton |
deleteButton
The delete button. |
static java.lang.String |
ENABLED_TEXT_FIELD_PROPERTY
Enabled text field property. |
static java.lang.String |
INTEGER_TYPE_VALUE
Integer type value property. |
static java.lang.String |
NO
No property. |
static java.lang.String |
NUMBER_TYPE_VALUE
Number type value property. |
protected ColorDataField.JPanelColor |
panelColor
The panel Color. |
static java.lang.String |
RETURN_TYPE_PROPERTY
Return type property. |
protected int |
returnType
The return color. |
static java.lang.String |
SHOW_DELETE_BUTTON_PROPERTY
Show delete button property. |
static java.lang.String |
SHOW_TEXT_FIELD_PROPERTY
Show text field property. |
static java.lang.String |
STRING_HEX_TYPE_VALUE
String Hex type value property. |
static java.lang.String |
STRING_RGB_TYPE_VALUE
String RGB type value property. |
protected boolean |
textFieldEnabled
The condition to enable text field. |
static java.lang.String |
YES
Yes property. |
| 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.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.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 | |
ColorDataField(java.util.Hashtable parameters)
The class constructor. |
|
| Method Summary | |
void |
deleteData()
Deletes data. |
javax.swing.JButton |
getColorButton()
Gets the JButton color. |
ColorDataField.JPanelColor |
getColorPanel()
Gets the JPanel Color. |
java.awt.Color |
getColorValue()
The method to get the color value from a document reference. |
javax.swing.JButton |
getDeleteButton()
Gets the delete button. |
java.lang.String |
getHEXValue()
The method to get the HEX RGB color from a document reference. |
java.lang.Number |
getNumericalValue()
The method to get the number color. |
java.lang.String |
getRGBValue()
The method to get the RGB color from a document reference. |
int |
getSQLDataType()
The method to get the integer SQL types for color, rgb string, hex string, number or integer. |
java.lang.Object |
getValue()
The method to get the number color in a object. |
void |
init(java.util.Hashtable parameters)
Calls to super() to init parameters. |
protected void |
installInnerListener()
The method to add a new inner listener. |
boolean |
isEmpty()
The empty or no empty condition according to method getValue().
|
void |
setEnabled(boolean enabled)
Checks permissions and enables the buttons according to @param. |
void |
setValue(java.lang.Object value)
The main method to set the color values. |
| 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 |
| Field Detail |
public static boolean DEBUG
public static final java.lang.String RETURN_TYPE_PROPERTY
public static final java.lang.String COLOR_TYPE_VALUE
public static final java.lang.String STRING_RGB_TYPE_VALUE
public static final java.lang.String STRING_HEX_TYPE_VALUE
public static final java.lang.String NUMBER_TYPE_VALUE
public static final java.lang.String INTEGER_TYPE_VALUE
public static final java.lang.String SHOW_TEXT_FIELD_PROPERTY
public static final java.lang.String YES
public static final java.lang.String NO
public static final java.lang.String ENABLED_TEXT_FIELD_PROPERTY
public static final java.lang.String SHOW_DELETE_BUTTON_PROPERTY
protected javax.swing.JButton colorButton
protected javax.swing.JButton deleteButton
protected ColorDataField.JPanelColor panelColor
protected static javax.swing.JColorChooser colorChooser
protected int returnType
ColorDocument.RETURN_COLORprotected boolean textFieldEnabled
protected ColorDocument colorDocument
| Constructor Detail |
public ColorDataField(java.util.Hashtable parameters)
parameters - the Hashtable with parameters from XML definition.| Method Detail |
public void init(java.util.Hashtable parameters)
init in interface FormComponentinit in class TextFieldDataFieldparameters - the Hashtable with parameters
| attribute | values | default | required | meaning |
| returnedtype | stringrgb;stringhex;number;integer | no | The returned type:
|
|
| showtextfield | yes/no | Condition to show the text field. | ||
| enabledtextfield | yes/no | Condition to activate the text field | ||
| showdeletebutton | yes/no | Condition to show the delete button | ||
| colorwidth | Width in pixels of color bar showed in this field. | |||
| colorheight | Height in pixels of color bar showed in this field. | |||
| borderbuttons | yes/no | yes | no | Condition about border of buttons for this field. by default, borders are enabled. |
| opaquebuttons | yes/no | yes | no | Condition about opacity of buttons for this field. by default, buttons are opaques. |
| highlightbuttons | yes/no | no | no | Condition about highlight of buttons for this field. by default, hightlight is disabled. |
public ColorDataField.JPanelColor getColorPanel()
public javax.swing.JButton getColorButton()
public javax.swing.JButton getDeleteButton()
protected void installInnerListener()
installInnerListener in class TextFieldDataFieldpublic int getSQLDataType()
public boolean isEmpty()
getValue().
isEmpty in interface DataComponentisEmpty in class TextFieldDataFieldgetValue()public java.awt.Color getColorValue()
JTextComponent.getDocument()public java.lang.String getRGBValue()
JTextComponent.getDocument()public java.lang.String getHEXValue()
JTextComponent.getDocument()public java.lang.Number getNumericalValue()
JTextComponent.getDocument()public java.lang.Object getValue()
JTextComponent.getDocument()public void setValue(java.lang.Object value)
value - the object where the values(color,number,...) are placedpublic void deleteData()
deleteData in interface DataComponentdeleteData in class TextFieldDataFieldpublic void setEnabled(boolean enabled)
setEnabled in interface FormComponentsetEnabled in class DataFieldenabled - the condition to enable components
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||