LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.view.win.swing.component
Class LyJTreeComponent

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JTree
                  extended by leon.view.win.swing.component.LyJTreeComponent
All Implemented Interfaces:
java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeSelectionListener, javax.swing.Scrollable, LyActionListener, LyEventTransmitter, LySelectionListener, LyIsIdleInterface, LySetIdleInterface, LySplittableCanvas

public class LyJTreeComponent
extends javax.swing.JTree
implements java.awt.event.MouseMotionListener, java.awt.event.MouseListener, java.awt.event.KeyListener, javax.swing.event.TreeSelectionListener, javax.swing.event.TreeExpansionListener, LySelectionListener, LyActionListener, LyEventTransmitter, LySetIdleInterface, LyIsIdleInterface, LySplittableCanvas

This class implements a graphical component that display the data in a tree view.

See Also:
LySwingTree, JTree, Serialized Form

Nested Class Summary
 class LyJTreeComponent._LyJTreeCellRenderer
          This class implements the way each node is displayed switching its node description.
 
Nested classes/interfaces inherited from class javax.swing.JTree
javax.swing.JTree.DropLocation, javax.swing.JTree.DynamicUtilTreeNode
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.BaselineResizeBehavior
 
Field Summary
static java.lang.String __VERSION
           
static java.awt.Cursor LY_OVER_CURSOR
          Cursor for mouse over sensitive node.
 
Fields inherited from class javax.swing.JTree
ANCHOR_SELECTION_PATH_PROPERTY, CELL_EDITOR_PROPERTY, CELL_RENDERER_PROPERTY, EDITABLE_PROPERTY, EXPANDS_SELECTED_PATHS_PROPERTY, INVOKES_STOP_CELL_EDITING_PROPERTY, LARGE_MODEL_PROPERTY, LEAD_SELECTION_PATH_PROPERTY, ROOT_VISIBLE_PROPERTY, ROW_HEIGHT_PROPERTY, SCROLLS_ON_EXPAND_PROPERTY, SELECTION_MODEL_PROPERTY, SHOWS_ROOT_HANDLES_PROPERTY, TOGGLE_CLICK_COUNT_PROPERTY, TREE_MODEL_PROPERTY, VISIBLE_ROW_COUNT_PROPERTY
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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 java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
LyJTreeComponent(LyJTreeElement root)
          Creates a new tree component.
LyJTreeComponent(LyJTreeElement root, boolean dragNDrop)
          Creates a new tree component.
LyJTreeComponent(LyJTreeElement root, boolean dragNDrop, boolean forceOpen)
          Creates a tree component.
 
Method Summary
 void actionPerformed(LyActionEvent actionEvent)
          (non-Javadoc).
 void centerOnElement(javax.swing.tree.TreePath path)
          Centers the tree vertically on the specified element.
 void drawInSplitter(java.awt.Graphics gc, int xOffset, int yOffset)
          (non-Javadoc).
 LyActionTransmitter getActionTransmitter()
          (non-Javadoc).
 int getHeight()
          (non-Javadoc).
 float getHeightFactor()
          Gets the height factor.
 int getLeftHeaderWidth()
          (non-Javadoc).
 java.awt.Dimension getPreferredScrollableViewportSize()
          (non-Javadoc).
 java.awt.Dimension getScrollableSize()
          (non-Javadoc).
 javax.swing.tree.TreePath[] getSelectionPaths()
          Gets all selected valuesi without the nodes that have children when the leaves only select mode is set.
 LySelectionTransmitter getSelectionTransmitter()
          (non-Javadoc).
 int getTopHeaderHeight()
          (non-Javadoc).
 int getWidth()
          (non-Javadoc).
 boolean isIdle()
          (non-Javadoc).
 boolean isNotifySelections()
          Indicates if selection events are notified.
 void keyPressed(java.awt.event.KeyEvent evt)
          (non-Javadoc).
 void keyReleased(java.awt.event.KeyEvent evt)
          Nothing is done.
 void keyTyped(java.awt.event.KeyEvent evt)
          Nothing is done.
 void mouseClicked(java.awt.event.MouseEvent e)
          (non-Javadoc).
 void mouseDragged(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseEntered(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseExited(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseMoved(java.awt.event.MouseEvent e)
          Underlines the text under the mouse cursor and changes the cursor to a hand.
 void mousePressed(java.awt.event.MouseEvent e)
          Nothing is done.
 void mouseReleased(java.awt.event.MouseEvent e)
          Nothing is done.
 void paintComponent(java.awt.Graphics g)
          Paints the component with the highlighted row.
 void selectionPerformed(LySelectionEvent selectionEvent)
          (non-Javadoc).
 void setCanvasSplitter(LyAbstractCanvasSplitterManager splitter)
          (non-Javadoc).
 void setCheckboxMode(boolean checkboxMode)
          Sets the checkbox mode.
 void setDisplayDefaultIcons(boolean displayDefaultIcons)
          Sets the display default icons mode.
 void setFixedWidth(int fixedWidth)
          Changes the fixed width of the tree.
 void setFont(java.awt.Font font)
          Sets the font of this component and gets the font metrics when it changes.
 void setForceOpen(boolean forceOpen)
          Sets the force open mode.
 void setHeightFactor(float factor)
          Sets the height factor of this tree.
 void setIdle(boolean status)
          (non-Javadoc).
 void setMinWidth(int minWidth)
          Sets the minimum width of this tree component.
 void setNotifySelections(boolean notify)
          Sets the notify selections mode.
 void setNRows(int nRows)
          Changes the method for computing height of the tree.
 void setPopupMenu(javax.swing.JPopupMenu popupMenu)
          Registers the popup menu displayed on the tree component.
 void setPopupMode(boolean popup)
          Sets the popup mode.
 void setSelectLeavesOnly(boolean selectLeavesOnly)
          Sets the select leaves only mode.
 void setSensitive(boolean sensitive)
          Sets the sensitive mode.
 void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
          (non-Javadoc).
 void treeExpanded(javax.swing.event.TreeExpansionEvent event)
          (non-Javadoc).
 void updateTree(LyJTreeElement node)
          Sets the state of all the nodes.
 void valueChanged(javax.swing.event.TreeSelectionEvent e)
          Called when the selection on the tree has changed.
 
Methods inherited from class javax.swing.JTree
addSelectionInterval, addSelectionPath, addSelectionPaths, addSelectionRow, addSelectionRows, addTreeExpansionListener, addTreeSelectionListener, addTreeWillExpandListener, cancelEditing, clearSelection, collapsePath, collapseRow, convertValueToText, expandPath, expandRow, fireTreeCollapsed, fireTreeExpanded, fireTreeWillCollapse, fireTreeWillExpand, getAccessibleContext, getAnchorSelectionPath, getCellEditor, getCellRenderer, getClosestPathForLocation, getClosestRowForLocation, getDragEnabled, getDropLocation, getDropMode, getEditingPath, getExpandedDescendants, getExpandsSelectedPaths, getInvokesStopCellEditing, getLastSelectedPathComponent, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getModel, getNextMatch, getPathBounds, getPathForLocation, getPathForRow, getRowBounds, getRowCount, getRowForLocation, getRowForPath, getRowHeight, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getScrollsOnExpand, getSelectionCount, getSelectionModel, getSelectionPath, 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, removeSelectionInterval, removeSelectionPath, removeSelectionPaths, removeSelectionRow, removeSelectionRows, removeTreeExpansionListener, removeTreeSelectionListener, removeTreeWillExpandListener, scrollPathToVisible, scrollRowToVisible, setAnchorSelectionPath, setCellEditor, setCellRenderer, setDragEnabled, setDropMode, setEditable, setExpandsSelectedPaths, setInvokesStopCellEditing, setLargeModel, setLeadSelectionPath, setModel, setRootVisible, setRowHeight, setScrollsOnExpand, setSelectionInterval, setSelectionModel, setSelectionPath, setSelectionPaths, setSelectionRow, setSelectionRows, setShowsRootHandles, setToggleClickCount, setUI, setVisibleRowCount, startEditingAtPath, stopEditing, treeDidChange, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, 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, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, 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, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, 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, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, 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, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface leon.view.win.swing.component.LySplittableCanvas
getKeyListeners, getMouseListeners, getMouseMotionListeners
 

Field Detail

__VERSION

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

LY_OVER_CURSOR

public static java.awt.Cursor LY_OVER_CURSOR
Cursor for mouse over sensitive node.

Constructor Detail

LyJTreeComponent

public LyJTreeComponent(LyJTreeElement root)
Creates a new tree component. This tree component cannot have drag and drop actions and its elements are not opened.

Parameters:
root - the data this tree displays

LyJTreeComponent

public LyJTreeComponent(LyJTreeElement root,
                        boolean dragNDrop)
Creates a new tree component. This tree component's nodes are not opened.

Parameters:
root - the data this tree displays
dragNDrop - Indicates that drag and drop is allowed on this component.

LyJTreeComponent

public LyJTreeComponent(LyJTreeElement root,
                        boolean dragNDrop,
                        boolean forceOpen)
Creates a tree component. Initializes it and registers its event listeners (mouse, tree...).

Parameters:
root - the data this tree displays
dragNDrop - Indicates that drag and drop is allowed on this component.
forceOpen - Indicates that the nodes must be opened.
Method Detail

setCheckboxMode

public void setCheckboxMode(boolean checkboxMode)
Sets the checkbox mode.

Parameters:
checkboxMode - the checkbox mode

setSensitive

public void setSensitive(boolean sensitive)
Sets the sensitive mode.

Parameters:
sensitive - Indicates that the tree is sensitive.

setPopupMode

public void setPopupMode(boolean popup)
Sets the popup mode.

Parameters:
popup - Indicates that the tree is in a popup.

setForceOpen

public void setForceOpen(boolean forceOpen)
Sets the force open mode.

Parameters:
forceOpen - Indicates that all the nodes of this tree must be opened.

setMinWidth

public void setMinWidth(int minWidth)
Sets the minimum width of this tree component.

Parameters:
minWidth - the new minimum width

setNRows

public void setNRows(int nRows)
Changes the method for computing height of the tree. Tries to display (approximatively) nRows in the tree.

Parameters:
nRows - the number of row to display. Use -1 for standard behavior.

setHeightFactor

public void setHeightFactor(float factor)
Sets the height factor of this tree.

Parameters:
factor - the factor to use to compute the height of the rows.
See Also:
getHeightFactor()

getHeightFactor

public float getHeightFactor()
Gets the height factor.

Returns:
the factor used to compute the heights of the rows
See Also:
setHeightFactor(float)

centerOnElement

public void centerOnElement(javax.swing.tree.TreePath path)
Centers the tree vertically on the specified element.

Parameters:
path - the node to center the element

setFixedWidth

public void setFixedWidth(int fixedWidth)
Changes the fixed width of the tree.

Parameters:
fixedWidth - the new fixed width of the tree

getPreferredScrollableViewportSize

public java.awt.Dimension getPreferredScrollableViewportSize()
(non-Javadoc).

Specified by:
getPreferredScrollableViewportSize in interface javax.swing.Scrollable
Overrides:
getPreferredScrollableViewportSize in class javax.swing.JTree
See Also:
Scrollable.getPreferredScrollableViewportSize()

updateTree

public void updateTree(LyJTreeElement node)
Sets the state of all the nodes. This method does not notify the data model.

Parameters:
node - the root of the sub-tree that is updated

setFont

public void setFont(java.awt.Font font)
Sets the font of this component and gets the font metrics when it changes.

Overrides:
setFont in class javax.swing.JComponent
See Also:
Component.setFont(java.awt.Font)

paintComponent

public void paintComponent(java.awt.Graphics g)
Paints the component with the highlighted row.

Overrides:
paintComponent in class javax.swing.JComponent
See Also:
JComponent.paintComponent(java.awt.Graphics)

setSelectLeavesOnly

public void setSelectLeavesOnly(boolean selectLeavesOnly)
Sets the select leaves only mode.

Parameters:
selectLeavesOnly - Indicates that the select leaves only mode must be set or unset.

isNotifySelections

public boolean isNotifySelections()
Indicates if selection events are notified.

Returns:
true if selection events are notified, false otherwise.

setNotifySelections

public void setNotifySelections(boolean notify)
Sets the notify selections mode.

Parameters:
notify - Indicates whether that selection events are notify or not.

setDisplayDefaultIcons

public void setDisplayDefaultIcons(boolean displayDefaultIcons)
Sets the display default icons mode.

Parameters:
displayDefaultIcons - Indicates that the default display icons mode must be set or unset.

valueChanged

public void valueChanged(javax.swing.event.TreeSelectionEvent e)
Called when the selection on the tree has changed.

Specified by:
valueChanged in interface javax.swing.event.TreeSelectionListener
See Also:
TreeSelectionListener.valueChanged(javax.swing.event.TreeSelectionEvent)

getSelectionPaths

public javax.swing.tree.TreePath[] getSelectionPaths()
Gets all selected valuesi without the nodes that have children when the leaves only select mode is set.

Overrides:
getSelectionPaths in class javax.swing.JTree
See Also:
JTree.getSelectionPaths()

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent e)
Underlines the text under the mouse cursor and changes the cursor to a hand.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
See Also:
MouseMotionListener.mouseMoved(java.awt.event.MouseEvent)

setPopupMenu

public void setPopupMenu(javax.swing.JPopupMenu popupMenu)
Registers the popup menu displayed on the tree component.

Parameters:
popupMenu - the popup menu instance displayed on the tree component.

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
See Also:
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseEntered(java.awt.event.MouseEvent)

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseExited in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseExited(java.awt.event.MouseEvent)

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mousePressed in interface java.awt.event.MouseListener
See Also:
MouseListener.mousePressed(java.awt.event.MouseEvent)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Nothing is done.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseReleased(java.awt.event.MouseEvent)

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
(non-Javadoc).

Specified by:
mouseClicked in interface java.awt.event.MouseListener
See Also:
MouseListener.mouseClicked(java.awt.event.MouseEvent)

treeCollapsed

public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
(non-Javadoc).

Specified by:
treeCollapsed in interface javax.swing.event.TreeExpansionListener
See Also:
TreeExpansionListener.treeCollapsed(javax.swing.event.TreeExpansionEvent)

treeExpanded

public void treeExpanded(javax.swing.event.TreeExpansionEvent event)
(non-Javadoc).

Specified by:
treeExpanded in interface javax.swing.event.TreeExpansionListener
See Also:
TreeExpansionListener.treeExpanded(javax.swing.event.TreeExpansionEvent)

actionPerformed

public void actionPerformed(LyActionEvent actionEvent)
(non-Javadoc).

Specified by:
actionPerformed in interface LyActionListener
See Also:
LyActionListener.actionPerformed(leon.view.event.LyActionEvent)

selectionPerformed

public void selectionPerformed(LySelectionEvent selectionEvent)
(non-Javadoc).

Specified by:
selectionPerformed in interface LySelectionListener
Parameters:
selectionEvent - description of the selection which has occured
See Also:
LySelectionListener.selectionPerformed(leon.view.event.LySelectionEvent)

getActionTransmitter

public LyActionTransmitter getActionTransmitter()
(non-Javadoc).

Specified by:
getActionTransmitter in interface LyEventTransmitter
Returns:
the action transmitter of this component
See Also:
LyEventTransmitter.getActionTransmitter()

getSelectionTransmitter

public LySelectionTransmitter getSelectionTransmitter()
(non-Javadoc).

Specified by:
getSelectionTransmitter in interface LyEventTransmitter
Returns:
the selection transmitter of this component
See Also:
LyEventTransmitter.getSelectionTransmitter()

setIdle

public void setIdle(boolean status)
(non-Javadoc).

Specified by:
setIdle in interface LySetIdleInterface
Parameters:
status - new idle status (LySetIdleInterface interface)
See Also:
LySetIdleInterface.setIdle(boolean)

isIdle

public boolean isIdle()
(non-Javadoc).

Specified by:
isIdle in interface LyIsIdleInterface
Returns:
true if the component is idle (it is not refreshed when modifications are applied).
See Also:
LyIsIdleInterface.isIdle()

drawInSplitter

public void drawInSplitter(java.awt.Graphics gc,
                           int xOffset,
                           int yOffset)
(non-Javadoc).

Specified by:
drawInSplitter in interface LySplittableCanvas
Parameters:
gc - the graphical context
xOffset - the horizontal offset for the splitter drawing
yOffset - the vertical offset for the splitter drawing
See Also:
LySplittableCanvas.drawInSplitter(java.awt.Graphics, int, int)

getWidth

public int getWidth()
(non-Javadoc).

Overrides:
getWidth in class javax.swing.JComponent
See Also:
Component.getWidth()

getHeight

public int getHeight()
(non-Javadoc).

Overrides:
getHeight in class javax.swing.JComponent
See Also:
Component.getHeight()

setCanvasSplitter

public void setCanvasSplitter(LyAbstractCanvasSplitterManager splitter)
(non-Javadoc).

Specified by:
setCanvasSplitter in interface LySplittableCanvas
Parameters:
splitter - the splitter
See Also:
LySplittableCanvas.setCanvasSplitter(leon.view.win.swing.component.LyAbstractCanvasSplitterManager)

getScrollableSize

public java.awt.Dimension getScrollableSize()
(non-Javadoc).

Specified by:
getScrollableSize in interface LySplittableCanvas
Returns:
the scrollable size
See Also:
LySplittableCanvas.getScrollableSize()

getTopHeaderHeight

public int getTopHeaderHeight()
(non-Javadoc).

Specified by:
getTopHeaderHeight in interface LySplittableCanvas
Returns:
the top header height
See Also:
LySplittableCanvas.getTopHeaderHeight()

getLeftHeaderWidth

public int getLeftHeaderWidth()
(non-Javadoc).

Specified by:
getLeftHeaderWidth in interface LySplittableCanvas
Returns:
the left header width
See Also:
LySplittableCanvas.getLeftHeaderWidth()

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Nothing is done.

Specified by:
keyTyped in interface java.awt.event.KeyListener
See Also:
KeyListener.keyTyped(java.awt.event.KeyEvent)

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Nothing is done.

Specified by:
keyReleased in interface java.awt.event.KeyListener
See Also:
KeyListener.keyReleased(java.awt.event.KeyEvent)

keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
(non-Javadoc).

Specified by:
keyPressed in interface java.awt.event.KeyListener
See Also:
KeyListener.keyPressed(java.awt.event.KeyEvent)

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com