|
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.CheckDataField
This class create a checkbox field where methods getValue and setValue
use Integer with '1' for selected value and '0' for deselected value.
| Nested Class Summary | |
protected static class |
CheckDataField.CheckBoxUIE
This class provides a Windows checkbox.
|
protected class |
CheckDataField.InnerListener
This class implements an 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 javax.swing.border.Border |
borderNotIncluded
An instance of a line and a bevel border definition. |
static javax.swing.ImageIcon |
defaultDeselectIcon
|
static javax.swing.ImageIcon |
defaultSelectIcon
|
static java.lang.String |
DESELECT_ICON
Key for unselected icon. |
static java.lang.Integer |
deselectedValue
Numeric value that indicates the value to store when check is deselected. |
protected javax.swing.ImageIcon |
deselectIcon
|
static java.lang.String |
INCLUDE_MENU_KEY
The key to include the menu key. |
protected javax.swing.JCheckBoxMenuItem |
includeMenu
An instance of checkbox menu item. |
protected CheckDataField.InnerListener |
innerListener
An instance for a inner listener. |
static java.lang.String |
NO
The 'no' condition. |
protected boolean |
returnBoolean
The returned boolean. |
static java.lang.String |
RETURNBOOLEAN
Key for return boolean parameter. |
protected boolean |
returnString
The returned string. |
static java.lang.String |
RETURNSTRING
Key for return string parameter. |
static java.lang.String |
SELECT_ICON
Key for selected icon. |
static java.lang.Integer |
selectedValue
Numeric value that indicates the value to store when check is selected. |
protected javax.swing.ImageIcon |
selectIcon
|
static java.lang.Integer |
UNO
Deprecated. 5.2059EN |
static java.lang.String |
YES
The 'yes' condition. |
static java.lang.Integer |
ZERO
Deprecated. 5.2059EN |
| 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 com.ontimize.util.templates.ITemplateField |
DATA_TYPE_FIELD, DATA_TYPE_FIELD_ATTR, DATA_TYPE_IMAGE, DATA_TYPE_IMAGE_ATTR, DATA_TYPE_TABLE, DATA_TYPE_TABLE_ATTR, TEMPLATE_DATA_TYPE |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, PROPERTIES, SOMEBITS |
| Constructor Summary | |
CheckDataField(java.util.Hashtable parameters)
The class constructor. |
|
| Method Summary | |
void |
addItemListener(java.awt.event.ItemListener cl)
Adds an ItemListener to the checkbox. |
protected void |
createDataField()
Creates the checkbox. |
protected void |
createPopupMenu()
Creates a pop-up menu. |
void |
deleteData()
The method to delete data for component. |
javax.swing.AbstractButton |
getAbstractButton()
Gets a reference of an AbstractButton of this field. |
java.lang.Object |
getAttribute()
Gets the object attribute. |
int |
getSQLDataType()
Returns the sql data type according to java.sql.Types
|
int |
getTemplateDataType()
Returns the data type. |
java.lang.Object |
getTemplateDataValue()
Gets the value to show in the template |
java.lang.String |
getText()
Gets text. |
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
java.lang.Object |
getValue()
Gets the value of a component. |
void |
init(java.util.Hashtable parameters)
Initializes parameters and selects the bundle equals to class ResourceBundle, adding a suffix to basic file name.
|
protected void |
installLabelListener()
Installs the label listener. |
boolean |
isEmpty()
Checks the data existence in component. |
boolean |
isSelected()
Checks the selected condition. |
void |
removeItemListener(java.awt.event.ItemListener cl)
Removes an ItemListener to the checkbox. |
void |
setAdvancedQueryMode(boolean enabled)
This method must establish the advanced query state, to support advanced query conditions. |
void |
setComponentLocale(java.util.Locale l)
|
void |
setEnabled(boolean enabled)
Description method to set enabled or not the component according the boolean condition in parameter. |
protected void |
setInnerListenerEnabled(boolean enable)
Enables the inner listener. |
void |
setResourceBundle(java.util.ResourceBundle resources)
Sets the language resource bundle. |
void |
setValue(java.lang.Object value)
Sets the value for component. |
protected void |
showPopupMenu(java.awt.Component c,
int x,
int y)
Shows the pop-up menu. |
| 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, isModified, isRequired, setModifiable, setRequired |
| Methods inherited from interface com.ontimize.gui.field.FormComponent |
getConstraints, isEnabled, setVisible |
| Methods inherited from interface com.ontimize.gui.SecureElement |
initPermissions, isRestricted |
| Field Detail |
public static final java.lang.Integer UNO
selectedValuepublic static final java.lang.Integer ZERO
deselectedValuepublic static final java.lang.String SELECT_ICON
public static final java.lang.String DESELECT_ICON
public static final java.lang.String RETURNSTRING
public static final java.lang.String RETURNBOOLEAN
public static java.lang.Integer selectedValue
public static java.lang.Integer deselectedValue
public static java.lang.String YES
public static java.lang.String NO
protected boolean returnBoolean
protected boolean returnString
public static java.lang.String INCLUDE_MENU_KEY
protected javax.swing.JCheckBoxMenuItem includeMenu
protected javax.swing.border.Border borderNotIncluded
protected CheckDataField.InnerListener innerListener
public static javax.swing.ImageIcon defaultSelectIcon
public static javax.swing.ImageIcon defaultDeselectIcon
protected javax.swing.ImageIcon selectIcon
protected javax.swing.ImageIcon deselectIcon
| Constructor Detail |
public CheckDataField(java.util.Hashtable parameters)
parameters - the Hashtable with parameters| Method Detail |
protected void installLabelListener()
protected void createDataField()
public void setEnabled(boolean enabled)
FormComponent
setEnabled in interface FormComponentsetEnabled in class DataFieldenabled - the condition to set enablepublic void init(java.util.Hashtable parameters)
ResourceBundle, adding a suffix to basic file name.
init in interface FormComponentinit in class DataFieldparameters - the Hashtable with parameters
| attribute | values | default | required | meaning |
| returnboolean | yes/no | no | no | Indicates whether getValue() returns a boolean. By default, returns an Integer.
|
| returnstring | yes/no | no | no | Indicates whether returns the value in String format.(S->True, N->False)
|
| selecticon | no | Path to icon used when check is selected. | ||
| deselecticon | no | Path to icon used when check is unselected. |
public java.lang.Object getValue()
DataComponent
getValue in interface DataComponentobject with value.protected void setInnerListenerEnabled(boolean enable)
enable - the conditionpublic void setValue(java.lang.Object value)
DataComponent
setValue in interface DataComponentvalue - the object with value to setpublic java.lang.Object getAttribute()
IdentifiedElement
getAttribute in interface IdentifiedElementgetAttribute in class DataFieldpublic void deleteData()
DataComponent
deleteData in interface DataComponentpublic boolean isEmpty()
DataComponent
isEmpty in interface DataComponenttrue when component is emptypublic void setComponentLocale(java.util.Locale l)
setComponentLocale in interface InternationalizationsetComponentLocale in class DataFieldpublic int getSQLDataType()
DataComponentsql data type according to java.sql.Types
getSQLDataType in interface DataComponentInteger typepublic void addItemListener(java.awt.event.ItemListener cl)
cl - the item listener to be addedpublic void removeItemListener(java.awt.event.ItemListener cl)
cl - the item listener to be removedprotected void createPopupMenu()
DataField
createPopupMenu in class DataField
protected void showPopupMenu(java.awt.Component c,
int x,
int y)
DataField
showPopupMenu in class DataFieldc - the componentx - the x coordinatey - the y coordinatepublic boolean isSelected()
public void setAdvancedQueryMode(boolean enabled)
AdvancedDataComponent
setAdvancedQueryMode in interface AdvancedDataComponentenabled - the condition to enable this statepublic java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface InternationalizationgetTextsToTranslate in class DataFieldpublic void setResourceBundle(java.util.ResourceBundle resources)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class DataFieldpublic java.lang.String getText()
DataField
getText in class DataFieldpublic javax.swing.AbstractButton getAbstractButton()
AbstractButton of this field.
public int getTemplateDataType()
ITemplateFieldITemplateField.DATA_TYPE_FIELD
ITemplateField.DATA_TYPE_IMAGE
ITemplateField.DATA_TYPE_TABLE
getTemplateDataType in interface ITemplateFieldint with the data type.public java.lang.Object getTemplateDataValue()
ITemplateField
getTemplateDataValue in interface ITemplateField
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||