public class ClientNavigationTree extends de.ipcon.swing.IPanel implements ClientPluginI, ClientStrukturListenerI, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, javax.swing.event.TreeSelectionListener, DBManEventListenerI
inhibitFocusChange, SCROLLING_MODE_ANY, SCROLLING_MODE_HORIZONTAL_ONLY, SCROLLING_MODE_VERTICAL_ONLY, TEXTURE_CENTERED, TEXTURE_REPEATTOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW| Constructor and Description |
|---|
ClientNavigationTree(ClientContextI _ctx,
electric.xml.Element _confroot,
FormContextI _ftx) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
action_collapse_enabled() |
void |
action_collapse()
Action method to collapse the currently selected nodes.
|
void |
action_collapseAll()
Action method to collapse all nodes of the tree.
|
boolean |
action_copy_enabled() |
void |
action_copy() |
boolean |
action_copyForEditing_enabled()
Determines whether the "Copy for Editing" action should be enabled.
|
void |
action_copyForEditing() |
boolean |
action_cut_enabled() |
void |
action_cut() |
boolean |
action_delete_enabled() |
void |
action_delete()
Action method to delete the currently selected nodes.
|
boolean |
action_editOriginal_enabled() |
void |
action_editOriginal() |
boolean |
action_expand_enabled() |
void |
action_expand()
Action method to expand the currently selected nodes.
|
void |
action_expandAll()
Action method to expand all nodes of the tree.
|
boolean |
action_favorite_enabled() |
void |
action_favorite() |
boolean |
action_find_enabled() |
void |
action_find()
Action method to find Struktur elements with given name.
|
void |
action_focus()
Action method to give the focus to the navtree.
|
boolean |
action_info_enabled() |
void |
action_info()
Action method to show "information" of/for the currently selected nodes.
|
boolean |
action_link_enabled() |
void |
action_link() |
boolean |
action_newCodebaustein_enabled() |
void |
action_newCodebaustein() |
boolean |
action_newFolder_enabled()
Generic check if the "create new folder" action should be enabled at all given the general current state
of the client, the tree and the currently selected tree nodes.
|
void |
action_newFolder()
Action method to create a new folder with the (associated
BO of the) first of the currently
selected tree nodes as parent. |
boolean |
action_newFormular_enabled() |
void |
action_newFormular() |
boolean |
action_newLesezeichen_enabled() |
void |
action_newLesezeichen() |
boolean |
action_newReport_enabled() |
void |
action_newReport() |
boolean |
action_newSchablone_enabled() |
void |
action_newSchablone() |
boolean |
action_newStruktur_enabled(java.lang.String entityName)
Checks if creating a new
Struktur of the given entity name is allowed in a clicked node. |
void |
action_newStruktur(java.lang.String entityName)
Action method to create a new
Struktur by entity name
while entity name can be i.e. |
boolean |
action_open_enabled() |
void |
action_open()
Action method to open the currently selected nodes.
|
boolean |
action_paste_enabled() |
void |
action_paste() |
boolean |
action_refresh_enabled() |
void |
action_refresh()
Action method to rebuild/refresh whole tree.
|
boolean |
action_rename_enabled() |
void |
action_rename()
Action method to rename the currently selected node.
|
void |
checkActionsEnabledStatus() |
java.lang.String |
clientCloseVeto() |
void |
close() |
void |
collapseSubtreeNodes(NavigationTreeNode _node) |
void |
expandSubtreeNodes(NavigationTreeNode _node) |
void |
focus() |
void |
forcedClientDisconnectInitiated(java.util.Date dateForcedDisconnect)
Called if the server demanded a forced client-disconnect which is relevant to our client.
|
void |
forcedClientDisconnectStopped()
Called if the server cancelled a forced client-disconnect which is relevant to our client.
|
java.util.LinkedHashMap |
getActions()
Tiny helper class for the action_refresh() and postInit() methods.
|
NavigationTreeNode |
getActualDestinationNode(NavigationTreeNode _nodeDest) |
java.awt.Color |
getDragHighlightColor() |
java.lang.String[] |
getMenuArrayFromActionArray(FormAction[] actionarray)
returns a StringArray with the Menu-Values from the given FormActionArray
|
java.lang.String |
getName() |
javax.swing.JMenu |
getOrCreateNewItemInMenu(java.lang.String menupath)
returns an already existing JMenu from Cache by the Menu-Path of the Node in Menu,
if no JMenu exists for the given Menu-Path of the Node, a new JMenu, include all not
already existing parent JMenus, will be created, cached and returned
|
java.awt.Dimension |
getPreferredSize() |
int |
getRowDragLast() |
int |
getSafety() |
java.util.ArrayList |
getSelectedNodes()
Returns a List of all the currently selected nodes, including different
nodes that reference the same BO, if _ignoreDuplicates is not true.
|
java.util.ArrayList |
getSelectedNodes(boolean _ignoreDuplicates) |
int |
getSelectionCount()
Returns how many "objects" are selected; as one object may be referenced by
multiple nodes (because of Aliases and search results) this may be lesser
than the number of selected *nodes*.
|
int |
getSelectionCount(boolean _resolveAliases) |
NavigationTreeNode |
getSelectionLeadNode() |
java.lang.Object |
instPlugin(electric.xml.Element el,
java.lang.Class typ) |
boolean |
isDragInProgress() |
boolean |
isDragToRoot(java.awt.event.MouseEvent _m) |
static boolean |
isPermitted(ClientContextI _ctx) |
void |
keyPressed(java.awt.event.KeyEvent _ke)
Invoked when a key has been pressed while dragging items in the navigation,
cause the mousepointer should show the current action (copy, move or link)
|
void |
keyReleased(java.awt.event.KeyEvent _ke)
Invoked when a key has been pressed while dragging items in the navigation,
cause the mousepointer should show the current action (copy, move or link)
|
void |
keyTyped(java.awt.event.KeyEvent _ke) |
void |
localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale)
Called whenever the default locale in @see de.ipcon.tools.L10n is changed.
|
void |
majorUpdateHappened() |
void |
mouseClicked(java.awt.event.MouseEvent _m) |
void |
mouseDragged(java.awt.event.MouseEvent _m) |
void |
mouseEntered(java.awt.event.MouseEvent _m) |
void |
mouseExited(java.awt.event.MouseEvent _m) |
void |
mouseMoved(java.awt.event.MouseEvent _m) |
void |
mousePressed(java.awt.event.MouseEvent _m) |
void |
mouseReleased(java.awt.event.MouseEvent _m) |
int |
parseSafety(java.lang.String _val) |
void |
postInit() |
void |
processDBManEvent(DBManEvent event)
Invoked when a subscribed DBManEvent occurs.
|
void |
refreshActions() |
void |
refreshActions(boolean sync) |
void |
reloadConfig(electric.xml.Element _el) |
void |
repaintNodes(NavigationTreeNode[] _list) |
void |
reregisterActions() |
void |
serverConnectionEstablished(java.lang.String serverURL)
Called if a new server connection was established.
|
void |
serverConnectionLost(java.lang.String serverURL,
java.lang.String reason)
Called if the current server connection was lost.
|
void |
serverConnectionRollingOver(java.lang.String serverURL,
java.lang.String reason)
Called if the current server connection will be replaced by a better one.
|
void |
serverIsShutdown(java.util.Date _dateShutdownOnClient,
java.util.Date _dateShutdownOnServer)
Called if the server we were connected to was shut down.
|
void |
serverShutdownInitiated(java.util.Date dateShutdown)
Called if the server we are connected to is going to shut down.
|
void |
serverShutdownStopped()
Called if the shutdown of the server we are connected to was stopped.
|
void |
setActions(java.util.LinkedHashMap $123) |
void |
setDragHighlightColor(java.awt.Color $125) |
void |
setRowDragLast(int $124) |
void |
updateServerHealth(DBManServerHealthEvent she)
Called if the server sent an update to his health information.
|
void |
valueChanged(javax.swing.event.TreeSelectionEvent _tse) |
getPreferredScrollableViewportSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollingMode, grabFocus, init, init, init, paintComponent, requestFocus, setScrollingMode, setTexturegetAccessibleContext, getUI, getUIClassID, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validateaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic ClientNavigationTree(ClientContextI _ctx, electric.xml.Element _confroot, FormContextI _ftx)
public javax.swing.JMenu getOrCreateNewItemInMenu(java.lang.String menupath)
menupath - the MenuPath of the Nodepublic java.lang.String[] getMenuArrayFromActionArray(FormAction[] actionarray)
actionarray - the FormActions to take the MenuPath frompublic int parseSafety(java.lang.String _val)
public void postInit()
postInit in interface ClientPluginIpublic void reloadConfig(electric.xml.Element _el)
reloadConfig in interface ClientPluginIpublic java.lang.Object instPlugin(electric.xml.Element el,
java.lang.Class typ)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentExceptionpublic boolean isDragInProgress()
public boolean isDragToRoot(java.awt.event.MouseEvent _m)
public void mouseEntered(java.awt.event.MouseEvent _m)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent _m)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent _m)
mouseClicked in interface java.awt.event.MouseListenerpublic void mousePressed(java.awt.event.MouseEvent _m)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent _m)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent _m)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseMoved(java.awt.event.MouseEvent _m)
mouseMoved in interface java.awt.event.MouseMotionListenerpublic void keyPressed(java.awt.event.KeyEvent _ke)
keyPressed in interface java.awt.event.KeyListener_ke - the KeyEventpublic void keyReleased(java.awt.event.KeyEvent _ke)
keyReleased in interface java.awt.event.KeyListener_ke - the KeyEventpublic void keyTyped(java.awt.event.KeyEvent _ke)
keyTyped in interface java.awt.event.KeyListenerpublic void checkActionsEnabledStatus()
public void action_refresh()
public boolean action_refresh_enabled()
public void action_delete()
public boolean action_delete_enabled()
public void action_open()
public boolean action_open_enabled()
public void action_newFolder()
BO of the) first of the currently
selected tree nodes as parent.public boolean action_newFolder_enabled()
public boolean action_newStruktur_enabled(java.lang.String entityName)
Struktur of the given entity name is allowed in a clicked node.entityName - the entity name of the new structure element BO for which the right to create shall be checkedpublic boolean action_newSchablone_enabled()
public boolean action_newFormular_enabled()
public boolean action_newLesezeichen_enabled()
public boolean action_newReport_enabled()
public boolean action_newCodebaustein_enabled()
public void action_newStruktur(java.lang.String entityName)
Struktur by entity name
while entity name can be i.e. "Lesezeichen", "Formular",...entityName - the entity name of the new structure element BO to createpublic void action_newSchablone()
public void action_newFormular()
public void action_newLesezeichen()
public void action_newReport()
public void action_newCodebaustein()
public void action_info()
public boolean action_info_enabled()
public void action_editOriginal()
public boolean action_editOriginal_enabled()
public void action_rename()
public boolean action_rename_enabled()
public void action_find()
public boolean action_find_enabled()
public void action_collapseAll()
public void collapseSubtreeNodes(NavigationTreeNode _node)
public void action_expandAll()
public void expandSubtreeNodes(NavigationTreeNode _node)
public void action_collapse()
public boolean action_collapse_enabled()
public void action_expand()
public boolean action_expand_enabled()
public void action_focus()
public boolean action_cut_enabled()
public void action_cut()
public boolean action_copy_enabled()
public void action_copy()
public boolean action_link_enabled()
public void action_link()
public boolean action_paste_enabled()
public void action_paste()
public boolean action_favorite_enabled()
public void action_favorite()
public boolean action_copyForEditing_enabled()
public void action_copyForEditing()
public NavigationTreeNode getSelectionLeadNode()
public java.util.ArrayList getSelectedNodes()
public java.util.ArrayList getSelectedNodes(boolean _ignoreDuplicates)
public int getSelectionCount()
public int getSelectionCount(boolean _resolveAliases)
public void processDBManEvent(DBManEvent event)
DBManEventListenerIDBManBOChangeEvent for events triggered after modification on BOs.processDBManEvent in interface DBManEventListenerIpublic void repaintNodes(NavigationTreeNode[] _list)
public java.awt.Dimension getPreferredSize()
getPreferredSize in class javax.swing.JComponentpublic NavigationTreeNode getActualDestinationNode(NavigationTreeNode _nodeDest)
public int getSafety()
public void close()
close in interface ClientPluginIpublic java.lang.String getName()
getName in interface ClientPluginIgetName in class java.awt.Componentpublic void reregisterActions()
reregisterActions in interface ClientPluginIpublic void refreshActions()
refreshActions in interface ClientPluginIpublic void refreshActions(boolean sync)
refreshActions in interface ClientPluginIpublic java.lang.String clientCloseVeto()
clientCloseVeto in interface ClientPluginIpublic void localeChanged(java.util.Locale oldLocale,
java.util.Locale newLocale)
ClientPluginIlocaleChanged in interface ClientPluginIpublic void updateServerHealth(DBManServerHealthEvent she)
ClientPluginIupdateServerHealth in interface ClientPluginIpublic void serverShutdownInitiated(java.util.Date dateShutdown)
ClientPluginIserverShutdownInitiated in interface ClientPluginIpublic void serverShutdownStopped()
ClientPluginIserverShutdownStopped in interface ClientPluginIpublic void serverIsShutdown(java.util.Date _dateShutdownOnClient,
java.util.Date _dateShutdownOnServer)
ClientPluginIserverIsShutdown in interface ClientPluginIpublic void forcedClientDisconnectInitiated(java.util.Date dateForcedDisconnect)
ClientPluginIforcedClientDisconnectInitiated in interface ClientPluginIpublic void forcedClientDisconnectStopped()
ClientPluginIforcedClientDisconnectStopped in interface ClientPluginIpublic void serverConnectionEstablished(java.lang.String serverURL)
ClientPluginIserverConnectionEstablished in interface ClientPluginIpublic void serverConnectionLost(java.lang.String serverURL,
java.lang.String reason)
ClientPluginIserverConnectionLost in interface ClientPluginIpublic void serverConnectionRollingOver(java.lang.String serverURL,
java.lang.String reason)
ClientPluginIserverConnectionRollingOver in interface ClientPluginIpublic static boolean isPermitted(ClientContextI _ctx)
public void focus()
public void valueChanged(javax.swing.event.TreeSelectionEvent _tse)
valueChanged in interface javax.swing.event.TreeSelectionListenerpublic void majorUpdateHappened()
majorUpdateHappened in interface ClientStrukturListenerIpublic java.util.LinkedHashMap getActions()
public void setActions(java.util.LinkedHashMap $123)
public int getRowDragLast()
public void setRowDragLast(int $124)
public java.awt.Color getDragHighlightColor()
public void setDragHighlightColor(java.awt.Color $125)
Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.