Ontimize 5.2072EN

com.ontimize.gui.tree
Class Tree

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JTree
                  extended bycom.ontimize.gui.tree.Tree
All Implemented Interfaces:
javax.accessibility.Accessible, ApplicationPreferencesListener, java.util.EventListener, Freeable, HasHelpIdComponent, HasPreferenceComponent, java.awt.image.ImageObserver, Internationalization, java.awt.MenuContainer, OpenDialog, javax.swing.Scrollable, SecureElement, java.io.Serializable

public class Tree
extends javax.swing.JTree
implements Internationalization, Freeable, OpenDialog, SecureElement, HasHelpIdComponent, HasPreferenceComponent, ApplicationPreferencesListener

Class that implements a tree where nodes are objects of class. This class divides nodes in two categories: organizational and data nodes.

For example, it is possible that a organizational node contains clients. This node will show a empty form with the client fields disabled. When an user expands that node, a group of client nodes are showed. These clients are data nodes. Organizational nodes could contain another organizational nodes inside, for client accounts for example.

Since:
5.2000 Default implementation, 5.2060EN Implemented pageable tree. See OTreeNode parameters
Author:
Imatia Innovation SL
See Also:
Serialized Form

Nested Class Summary
protected  class Tree.MenuListener
           
protected  class Tree.TreeMouseListener
           
 
Nested classes inherited from class javax.swing.JTree
javax.swing.JTree.AccessibleJTree, javax.swing.JTree.DynamicUtilTreeNode, javax.swing.JTree.EmptySelectionModel, javax.swing.JTree.TreeModelHandler, javax.swing.JTree.TreeSelectionRedirector
 
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 ADJUST_TREE_SPACE
           
protected static java.lang.String ascendingOrderKey
           
protected  javax.swing.JMenuItem ascOrderItem
           
protected  ReferenceTreeComponent compReference
           
protected  java.lang.String currentTree
          Name of current tree model.
protected static boolean DEBUG
           
protected  javax.swing.JMenuItem deleteNodeItem
           
protected static java.lang.String deleteNodeTextKey
           
protected static java.lang.String descendingOrderKey
           
protected  javax.swing.JMenuItem descOrderItem
           
protected  javax.swing.JMenuItem editNodeItem
           
protected static java.lang.String editNodeKey
           
static boolean enabledRowCount
           
protected  boolean fitSpaceToTree
           
protected static java.lang.String fitSpaceToTreeKey
           
protected  javax.swing.JCheckBoxMenuItem fitSpaceToTreeMenuItem
           
protected  FormManager formManager
           
protected  EntityReferenceLocator locator
           
static java.lang.String M_DELETED_NODE
           
static java.lang.String M_DELETED_NODE_es_ES
           
static java.lang.String M_DELETED_NODE_SUCCESSFULLY
           
static java.lang.String M_DELETED_NODE_SUCCESSFULLY_es_ES
           
static java.lang.String M_ERROR_DELETED_NODE
           
static java.lang.String M_ERROR_DELETED_NODE_es_ES
           
static java.lang.String M_UPDATED_NODE
           
static java.lang.String M_UPDATED_NODE_es_ES
           
protected  Tree.MenuListener menuListener
           
protected  java.util.Hashtable modelList
          List with tree models.
protected  javax.swing.ImageIcon newIcon
           
protected  javax.swing.JMenu orderBy
           
protected static java.lang.String orderByTextKey
           
protected  java.awt.Frame parentFrame
           
protected  com.ontimize.gui.tree.Tree.QueryPopup popup
           
protected  ExtendedJPopupMenu popupMenu
           
static int PREFERRED_WIDTH
           
protected  int queryDelayTime
           
protected  javax.swing.JMenuItem queryItem
           
protected static java.lang.String queryTextKey
           
protected  java.util.ResourceBundle resource
           
protected  boolean restricted
           
protected static java.lang.String selectedQueryKey
           
static java.lang.String TITLE_DELETE_NODE_RESULT_ERROR
           
static java.lang.String TITLE_DELETE_NODE_RESULT_ERROR_es_ES
           
static java.lang.String TITLE_DELETE_NODE_RESULT_SUCCESSFULLY
           
static java.lang.String TITLE_DELETE_NODE_RESULT_SUCCESSFULLY_es_ES
           
protected  TreeBuilder treeBuilder
          Reference to the tree builder that creates the tree model.
protected  Tree.TreeMouseListener treeMouseListener
           
protected  javax.swing.JMenuItem updateItem
           
protected static java.lang.String updateTextKey
           
 
Fields inherited from class javax.swing.JTree
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, cellEditor, cellRenderer, editable, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, invokesStopCellEditing, LARGE_MODEL_PROPERTY, largeModel, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, rootVisible, ROW_HEIGHT_PROPERTY, rowHeight, SCROLLS_ON_EXPAND_PROPERTY, scrollsOnExpand, SELECTION_MODEL_PROPERTY, selectionModel, selectionRedirector, SHOWS_ROOT_HANDLES_PROPERTY, showsRootHandles, TOGGLE_CLICK_COUNT_PROPERTY, toggleClickCount, TREE_MODEL_PROPERTY, treeModel, treeModelListener, VISIBLE_ROW_COUNT_PROPERTY, visibleRowCount
 
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.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, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
Tree(java.lang.String treeURI, TreeBuilder constructor)
          Class constructor.
Tree(java.lang.String treeURI, TreeBuilder constructor, EntityReferenceLocator locator)
          Class constructor.
 
Method Summary
protected  java.util.Hashtable buildQueryFilter(OTreeNode parentNode)
           
 java.util.Hashtable createDataNode(OTreeNode parentNode, EntityReferenceLocator locator)
          This function creates the child nodes of parent node.
 void deletedNode(javax.swing.tree.TreePath p, java.util.Hashtable keysValues, boolean selected)
          Notification for deleded node.
protected  void deleteNodes(int[] rows)
           
 void deleteNotOrganizationalNode(OTreeNode oTreeNode)
          This function deletes the child data nodes in an organizational node, for all child nodes.
protected  void finalize()
           
 void fireTreeWillCollapse(javax.swing.tree.TreePath path)
           
 void fireTreeWillExpand(javax.swing.tree.TreePath path)
           
 void fireValueChanged(javax.swing.event.TreeSelectionEvent e)
           
 void free()
          Makes the object to release the resources.
 java.lang.String getArchiveName()
           
 boolean getFitSpaceToTree()
           
 java.lang.String getHelpIdString()
           
 int getQueryDelay()
           
protected  java.util.Vector getSQLOrderList(OTreeNode node)
           
 java.util.Vector getTextsToTranslate()
          Returns all the texts in the element suitable for being translated.
 void initPermissions()
           
 void initPreferences(ApplicationPreferences prefs, java.lang.String user)
           
 void insertedNode(javax.swing.tree.TreePath path, java.util.Hashtable keysValues, EntityReferenceLocator locator, boolean selectedChild)
          Insertion notification.
 void installHelpId()
           
 boolean isRestricted()
           
 void loadTrees(java.util.Vector trees)
          Loads the tree models whose names are passed in vector parameter.
 void preferenceChanged(PreferenceEvent e)
          Invoked when a preference change event occurs.
protected  void processKeyEvent(java.awt.event.KeyEvent event)
          Overrides the parent method to process custom key events.
protected  void queryNode(javax.swing.tree.TreePath treePath, java.util.Hashtable keys, boolean forceComplete)
           
 void scrollRectToVisible(java.awt.Rectangle r)
           
 void setComponentLocale(java.util.Locale l)
           
 void setCurrentModel(java.lang.String tree)
          Loads (when it is not loaded) and sets the model for tree.
 void setEditable(boolean editable)
           
 void setFitSpaceToTree(boolean adjust)
           
 void setFormManager(FormManager formManager)
           
 void setParentFrame(java.awt.Frame parentFrame)
          This method is called from Form for each component that implements this interface.
 void setQueryDelay(int t)
           
 void setReferenceComponent(ReferenceTreeComponent component)
           
 void setResourceBundle(java.util.ResourceBundle resources)
          Sets the language resource bundle.
 boolean setSelectedPath(java.util.Hashtable hKeysIds)
           
 boolean setSelectedPath(java.util.Hashtable hKeysIds, boolean forzarCompleto)
           
protected  void showPopupMenu(java.awt.event.MouseEvent event)
           
 void updateChildrenNodes(OTreeNode parent, EntityReferenceLocator locator)
           
 void updatedNode(javax.swing.tree.TreePath treePath, java.util.Hashtable attributesValues, java.util.Hashtable filter, EntityReferenceLocator locator)
          Method called when a node is updated.
protected  void updatedNodeAux(javax.swing.tree.TreePath treePath, java.util.Hashtable attributesValues, java.util.Hashtable keysValues, EntityReferenceLocator locator)
           
 void updatePath(javax.swing.tree.TreePath path)
           
 void updateUI()
           
 
Methods inherited from class javax.swing.JTree
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, clearToggledPaths, collapsePath, collapseRow, convertValueToText, createTreeModel, createTreeModelListener, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDefaultTreeModel, getDescendantToggledPaths, getDragEnabled, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBetweenRows, getPathBounds, getPathForLocation, getPathForRow, getPreferredScrollableViewportSize, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, getSelectionPaths, getSelectionRows, getShowsRootHandles, getToggleClickCount, getToolTipText, getTreeExpansionListeners, getTreeSelectionListeners, getTreeWillExpandListeners, getUI, getUIClassID, getVisibleRowCount, hasBeenExpanded, isCollapsed, isCollapsed, isEditable, isEditing, isExpanded, isExpanded, isFixedRowHeight, isLargeModel, isPathEditable, isPathSelected, isRootVisible, isRowSelected, isSelectionEmpty, isVisible, makeVisible, paramString, removeDescendantSelectedPaths, removeDescendantToggledPaths, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setExpandedState, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange
 
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, 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, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, 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, addFocusListener, 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, isEnabled, 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, removeFocusListener, 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

DEBUG

protected static boolean DEBUG

PREFERRED_WIDTH

public static int PREFERRED_WIDTH

enabledRowCount

public static boolean enabledRowCount

ADJUST_TREE_SPACE

public static final java.lang.String ADJUST_TREE_SPACE
See Also:
Constant Field Values

TITLE_DELETE_NODE_RESULT_ERROR

public static java.lang.String TITLE_DELETE_NODE_RESULT_ERROR

TITLE_DELETE_NODE_RESULT_SUCCESSFULLY

public static java.lang.String TITLE_DELETE_NODE_RESULT_SUCCESSFULLY

TITLE_DELETE_NODE_RESULT_ERROR_es_ES

public static java.lang.String TITLE_DELETE_NODE_RESULT_ERROR_es_ES

TITLE_DELETE_NODE_RESULT_SUCCESSFULLY_es_ES

public static java.lang.String TITLE_DELETE_NODE_RESULT_SUCCESSFULLY_es_ES

M_DELETED_NODE

public static java.lang.String M_DELETED_NODE

M_DELETED_NODE_es_ES

public static java.lang.String M_DELETED_NODE_es_ES

M_UPDATED_NODE

public static java.lang.String M_UPDATED_NODE

M_UPDATED_NODE_es_ES

public static java.lang.String M_UPDATED_NODE_es_ES

M_ERROR_DELETED_NODE

public static java.lang.String M_ERROR_DELETED_NODE

M_DELETED_NODE_SUCCESSFULLY

public static java.lang.String M_DELETED_NODE_SUCCESSFULLY

M_DELETED_NODE_SUCCESSFULLY_es_ES

public static java.lang.String M_DELETED_NODE_SUCCESSFULLY_es_ES

M_ERROR_DELETED_NODE_es_ES

public static java.lang.String M_ERROR_DELETED_NODE_es_ES

queryTextKey

protected static java.lang.String queryTextKey

deleteNodeTextKey

protected static java.lang.String deleteNodeTextKey

updateTextKey

protected static java.lang.String updateTextKey

ascendingOrderKey

protected static java.lang.String ascendingOrderKey

orderByTextKey

protected static java.lang.String orderByTextKey

descendingOrderKey

protected static java.lang.String descendingOrderKey

editNodeKey

protected static java.lang.String editNodeKey

selectedQueryKey

protected static java.lang.String selectedQueryKey

fitSpaceToTreeKey

protected static java.lang.String fitSpaceToTreeKey

popup

protected com.ontimize.gui.tree.Tree.QueryPopup popup

newIcon

protected javax.swing.ImageIcon newIcon

resource

protected java.util.ResourceBundle resource

compReference

protected ReferenceTreeComponent compReference

locator

protected EntityReferenceLocator locator

formManager

protected FormManager formManager

modelList

protected java.util.Hashtable modelList
List with tree models. These models must contain nodes whose class is OTreeNode.


currentTree

protected java.lang.String currentTree
Name of current tree model.


popupMenu

protected ExtendedJPopupMenu popupMenu

updateItem

protected javax.swing.JMenuItem updateItem

orderBy

protected javax.swing.JMenu orderBy

queryItem

protected javax.swing.JMenuItem queryItem

deleteNodeItem

protected javax.swing.JMenuItem deleteNodeItem

ascOrderItem

protected javax.swing.JMenuItem ascOrderItem

descOrderItem

protected javax.swing.JMenuItem descOrderItem

editNodeItem

protected javax.swing.JMenuItem editNodeItem

fitSpaceToTreeMenuItem

protected javax.swing.JCheckBoxMenuItem fitSpaceToTreeMenuItem

treeBuilder

protected TreeBuilder treeBuilder
Reference to the tree builder that creates the tree model.


treeMouseListener

protected Tree.TreeMouseListener treeMouseListener

menuListener

protected Tree.MenuListener menuListener

parentFrame

protected java.awt.Frame parentFrame

fitSpaceToTree

protected boolean fitSpaceToTree

queryDelayTime

protected int queryDelayTime

restricted

protected boolean restricted
Constructor Detail

Tree

public Tree(java.lang.String treeURI,
            TreeBuilder constructor)
Class constructor. Moreover to call to super(), registers the tooltip manager, creates the contextual pop-up menu options for right mouse button and fixes the tree model.

Parameters:
treeURI - the path to the file with tree definition
constructor - reference to the tree constructor that must process tree definition file and return the tree model

Tree

public Tree(java.lang.String treeURI,
            TreeBuilder constructor,
            EntityReferenceLocator locator)
Class constructor.

Parameters:
treeURI - the path to the file with tree definition
constructor - reference to the tree constructor that must process tree definition file and return the tree model
locator - a reference to the locator
Method Detail

setEditable

public void setEditable(boolean editable)

setCurrentModel

public void setCurrentModel(java.lang.String tree)
Loads (when it is not loaded) and sets the model for tree.

Parameters:
tree - the name of model

loadTrees

public void loadTrees(java.util.Vector trees)
Loads the tree models whose names are passed in vector parameter.

Parameters:
trees -

showPopupMenu

protected void showPopupMenu(java.awt.event.MouseEvent event)

createDataNode

public java.util.Hashtable createDataNode(OTreeNode parentNode,
                                          EntityReferenceLocator locator)
This function creates the child nodes of parent node. For organizational nodes,child nodes are created with data obtained of node entity. Model for tree only contains organizational nodes, so data nodes are created dynamically. For each organizational node, this method creates the child nodes.

Parameters:
parentNode - the parent node for current node
locator - a reference to the locator
Returns:
the Hashtable with data.

deleteNotOrganizationalNode

public void deleteNotOrganizationalNode(OTreeNode oTreeNode)
This function deletes the child data nodes in an organizational node, for all child nodes. Organizational nodes are ignored.

Parameters:
oTreeNode - the node

processKeyEvent

protected void processKeyEvent(java.awt.event.KeyEvent event)
Overrides the parent method to process custom key events.

Parameters:
event - the key event

getTextsToTranslate

public java.util.Vector getTextsToTranslate()
Description copied from interface: Internationalization
Returns all the texts in the element suitable for being translated.

Specified by:
getTextsToTranslate in interface Internationalization
Returns:
all the texts in the element suitable for being translated.

setResourceBundle

public void setResourceBundle(java.util.ResourceBundle resources)
Description copied from interface: Internationalization
Sets the language resource bundle. When the application changes the configured language, for all the objects that implement this interface this method must be called with the new file.
The method must translate all the elements that have texts in the GUI

Specified by:
setResourceBundle in interface Internationalization
Parameters:
resources - the new language bundle.

setComponentLocale

public void setComponentLocale(java.util.Locale l)
Specified by:
setComponentLocale in interface Internationalization

fireTreeWillExpand

public void fireTreeWillExpand(javax.swing.tree.TreePath path)
                        throws javax.swing.tree.ExpandVetoException
Throws:
javax.swing.tree.ExpandVetoException

fireTreeWillCollapse

public void fireTreeWillCollapse(javax.swing.tree.TreePath path)
                          throws javax.swing.tree.ExpandVetoException
Throws:
javax.swing.tree.ExpandVetoException

fireValueChanged

public void fireValueChanged(javax.swing.event.TreeSelectionEvent e)

updateUI

public void updateUI()

free

public void free()
          throws java.lang.Exception
Description copied from interface: Freeable
Makes the object to release the resources.

Specified by:
free in interface Freeable
Throws:
java.lang.Exception

finalize

protected void finalize()
                 throws java.lang.Throwable
Throws:
java.lang.Throwable

updatePath

public void updatePath(javax.swing.tree.TreePath path)

setParentFrame

public void setParentFrame(java.awt.Frame parentFrame)
Description copied from interface: OpenDialog
This method is called from Form for each component that implements this interface. It fixes the parent frame for element. This frame is needed to open the modal dialog.

Specified by:
setParentFrame in interface OpenDialog
Parameters:
parentFrame - the frame

insertedNode

public void insertedNode(javax.swing.tree.TreePath path,
                         java.util.Hashtable keysValues,
                         EntityReferenceLocator locator,
                         boolean selectedChild)
Insertion notification. This path will be the associated path to the form where insertion has been produced. Collapsed nodes has not effect about tree aspect. If node is expanded, a new node is created with a icon that indicates new record. When it is not possible, organizational node is changed indicating that tree is not updated. Moreover, font color in node will be green.

Parameters:
path - the path
keysValues - the keysValues of inserted record
locator - the locator
selectedChild - the condition to allow selection children

deletedNode

public void deletedNode(javax.swing.tree.TreePath p,
                        java.util.Hashtable keysValues,
                        boolean selected)
Notification for deleded node. It is deleted the indicated node and selected the next node if condition selected is true.

Parameters:
p - the path
keysValues - the key values that determine the node
selected - the condition for allowing select a node after deleting

updatedNode

public void updatedNode(javax.swing.tree.TreePath treePath,
                        java.util.Hashtable attributesValues,
                        java.util.Hashtable filter,
                        EntityReferenceLocator locator)
Method called when a node is updated. When data changes, node is updated and tree is put in order. If node dissappears, organizational parent node is selected.

Parameters:
treePath - the path
attributesValues - the keys and values before updating node process.
filter - keyvalues to obtain the node to update
locator - the reference to locator

updatedNodeAux

protected void updatedNodeAux(javax.swing.tree.TreePath treePath,
                              java.util.Hashtable attributesValues,
                              java.util.Hashtable keysValues,
                              EntityReferenceLocator locator)

getArchiveName

public java.lang.String getArchiveName()

initPermissions

public void initPermissions()
Specified by:
initPermissions in interface SecureElement

deleteNodes

protected void deleteNodes(int[] rows)

setFormManager

public void setFormManager(FormManager formManager)

setReferenceComponent

public void setReferenceComponent(ReferenceTreeComponent component)

getHelpIdString

public java.lang.String getHelpIdString()
Specified by:
getHelpIdString in interface HasHelpIdComponent

installHelpId

public void installHelpId()
Specified by:
installHelpId in interface HasHelpIdComponent

getFitSpaceToTree

public boolean getFitSpaceToTree()

scrollRectToVisible

public void scrollRectToVisible(java.awt.Rectangle r)

isRestricted

public boolean isRestricted()
Specified by:
isRestricted in interface SecureElement

setFitSpaceToTree

public void setFitSpaceToTree(boolean adjust)

initPreferences

public void initPreferences(ApplicationPreferences prefs,
                            java.lang.String user)
Specified by:
initPreferences in interface HasPreferenceComponent

preferenceChanged

public void preferenceChanged(PreferenceEvent e)
Description copied from interface: ApplicationPreferencesListener
Invoked when a preference change event occurs. The event object contains the associated information

Specified by:
preferenceChanged in interface ApplicationPreferencesListener
Parameters:
e -

setSelectedPath

public final boolean setSelectedPath(java.util.Hashtable hKeysIds)

setSelectedPath

public final boolean setSelectedPath(java.util.Hashtable hKeysIds,
                                     boolean forzarCompleto)

queryNode

protected void queryNode(javax.swing.tree.TreePath treePath,
                         java.util.Hashtable keys,
                         boolean forceComplete)

setQueryDelay

public void setQueryDelay(int t)

getQueryDelay

public int getQueryDelay()

updateChildrenNodes

public void updateChildrenNodes(OTreeNode parent,
                                EntityReferenceLocator locator)

getSQLOrderList

protected java.util.Vector getSQLOrderList(OTreeNode node)

buildQueryFilter

protected java.util.Hashtable buildQueryFilter(OTreeNode parentNode)

Ontimize