|
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.MemoDataField
com.ontimize.gui.field.XMLDataField
This class implements a MemoDataField extension indicated to XML
syntax.
| Nested Class Summary |
| Nested classes inherited from class com.ontimize.gui.field.MemoDataField |
MemoDataField.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 |
analyzeKey
The key for XML analyse. |
protected javax.swing.JMenuItem |
analyzeMenu
An instance of analyze menu item. |
static boolean |
DEBUG
For debugging mode. |
protected javax.xml.parsers.DocumentBuilder |
docB
A reference to document builder. |
protected javax.xml.parsers.DocumentBuilderFactory |
docBFactory
A reference to document factory. |
protected javax.swing.text.SimpleAttributeSet |
errorTextAttribute
An instance for error text attribute. |
protected boolean |
format
|
protected javax.swing.JMenuItem |
indentItem
|
static java.lang.String |
indentKey
|
protected int |
indentSize
|
protected javax.swing.text.SimpleAttributeSet |
oKTextAttribute
An instance for OK text attribute. |
| Fields inherited from class com.ontimize.gui.field.MemoDataField |
activationScrollTip, DE, dQuery, expandVertical, innerListener, maximumTextLength, parentFrame, queryKey, rows, scroll, scrollTip, searchMenu, selectAllKey, selectAllMenu, sqlTypeText, tabTransferFocus, translateDE, undoManager, uppercase, WHITE_SPACE |
| 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 | |
XMLDataField(java.util.Hashtable parameters)
The class constructor. |
|
| Method Summary | |
protected void |
createDataField()
Creates the field and overrides the JComponent.processKeyEvent(KeyEvent)
method for managing focus. |
protected void |
createPopupMenu()
Creates a pop-up menu. |
java.lang.String |
doFormat(java.lang.String xml)
Reflow XML |
int |
getEndLineOffset(int line)
Gets the end line offset. |
protected java.lang.String |
getIndentText()
|
int |
getStartLineOffset(int line)
Gets the start line offset. |
java.util.Vector |
getTextsToTranslate()
Returns all the texts in the element suitable for being translated. |
boolean |
hasErrors()
Checks the field errors. |
void |
init(java.util.Hashtable params)
Initializes parameters. |
protected void |
setErrorAttributes(int offsetIni,
int length)
Sets the error attributes. |
protected void |
setOkAttributes(int offsetIni,
int lenght)
Sets the OK attributes. |
void |
setResourceBundle(java.util.ResourceBundle res)
Sets the language resource bundle. |
void |
setValue(java.lang.Object value)
Sets the value for component. |
boolean |
showErrors()
Parses XML and shows incorrect buildings. |
protected void |
showPopupMenu(java.awt.Component s,
int x,
int y)
Shows the pop-up menu. |
| Methods inherited from class com.ontimize.gui.field.MemoDataField |
deleteData, enableInnerListener, free, getConstraints, getRowNumber, getSQLDataType, getText, getValue, hideScrollTip, installInnerListener, installScrollListener, isEmpty, registerUndoableListener, registerUndoRedoActions, setComponentLocale, setMaxLength, setParentFrame, showScrollTip, updateBackgroundColor |
| 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
protected javax.xml.parsers.DocumentBuilderFactory docBFactory
protected javax.xml.parsers.DocumentBuilder docB
protected javax.swing.text.SimpleAttributeSet errorTextAttribute
protected javax.swing.text.SimpleAttributeSet oKTextAttribute
public static java.lang.String analyzeKey
protected javax.swing.JMenuItem analyzeMenu
protected javax.swing.JMenuItem indentItem
public static java.lang.String indentKey
protected boolean format
protected int indentSize
| Constructor Detail |
public XMLDataField(java.util.Hashtable parameters)
throws java.lang.Exception
super() with parameters. This
field has not additional XML parameters.
parameters - the Hashtable with parameters
java.lang.Exception - when an Exception occurs| Method Detail |
public void init(java.util.Hashtable params)
MemoDataField
init in interface FormComponentinit in class MemoDataFieldparams - the hashtable with parameters
| attribute | values | default | required | meaning |
| sqltexttype | yes/no | no | no | no -> Varchar ; yes -> LongVarchar. |
| uppercase | yes/no | no | no | The uppercase condition. |
| rows | no | The number of rows. | ||
| maxlength | no | The maxlength for component. | ||
| expand | yes/no | no | The vertical expansion. |
protected void createPopupMenu()
DataField
createPopupMenu in class MemoDataField
protected void showPopupMenu(java.awt.Component s,
int x,
int y)
DataField
showPopupMenu in class MemoDataFieldpublic void setResourceBundle(java.util.ResourceBundle res)
Internationalization
setResourceBundle in interface InternationalizationsetResourceBundle in class MemoDataFieldpublic java.util.Vector getTextsToTranslate()
Internationalization
getTextsToTranslate in interface InternationalizationgetTextsToTranslate in class MemoDataFieldpublic void setValue(java.lang.Object value)
DataComponent
setValue in interface DataComponentsetValue in class MemoDataFieldpublic boolean hasErrors()
public boolean showErrors()
public int getStartLineOffset(int line)
line - the line to get start line offset
public int getEndLineOffset(int line)
line - the line to get end line offset
protected void setErrorAttributes(int offsetIni,
int length)
offsetIni - the initial offset positionlength - the length
protected void setOkAttributes(int offsetIni,
int lenght)
offsetIni - the initial offset positionlenght - the lengthprotected void createDataField()
MemoDataFieldJComponent.processKeyEvent(KeyEvent)
method for managing focus.
createDataField in class MemoDataFieldprotected java.lang.String getIndentText()
public java.lang.String doFormat(java.lang.String xml)
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||