oracle.jbo.uicli.jui
Class JUTreeDefaultMouseListener
java.lang.Object
|
+--java.awt.event.MouseAdapter
|
+--oracle.jbo.uicli.jui.JUTreeDefaultMouseListener
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener
- public class JUTreeDefaultMouseListener
- extends java.awt.event.MouseAdapter
A sample mouse adapter that could be wired up with a JUTreeBinding to
handle double-click on the tree nodes: The selected row is made current
in the associated row iterator. This is used to allow JTree to be used
as a row-navigation control.
| Type | Method |
JUPanelBinding |
getPanelBinding()
Gets the panelBinding containing the iterators for which tree needs to sync. |
java.lang.String[][] |
getRulesActions()
Defines the target iterator per rule definition. |
boolean |
isDoubleClick()
will a double click activate the events ? |
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
setDoubleClick(boolean doubleClick)
Controls whether a double-click will activate the events (true is the default). |
void |
setPanelBinding(JUPanelBinding panelBinding)
Sets the panelBinding containing the iterators for which the tree needs to sync. |
void |
setRulesActions(java.lang.String[][] rulesactions)
Defines one target iterator per rule. |
| Methods inherited from class java.awt.event.MouseAdapter |
mouseClicked, mouseEntered, mouseExited, mouseReleased |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUTreeDefaultMouseListener
public JUTreeDefaultMouseListener(JUPanelBinding panelBinding,
java.lang.String[][] rulesactions)
- Constructor.
- Parameters:
panelBinding - The panelBinding containing the iterators for which the tree needs to sync.rulesactions - defines an target iterator per rule.
example : new String [][] { { "NodeRule1", "DeptViewIter" }, { "NodeRule2", "EmpView1Iter" } } });
JUTreeDefaultMouseListener
public JUTreeDefaultMouseListener(JUPanelBinding panelBinding,
java.lang.String[][] rulesactions,
boolean doubleClick)
- Constructor
- Parameters:
panelBinding - The panelBinding containing the iterators for which the tree needs to sync.rulesactions - defines an target iterator per rule.
example : new String [][] { { "NodeRule1", "DeptViewIter" }, { "NodeRule2", "EmpView1Iter" } } });boolean - defining doubleclick or not (true is the default)
setPanelBinding
public void setPanelBinding(JUPanelBinding panelBinding)
- Sets the panelBinding containing the iterators for which the tree needs to sync.
- Parameters:
panelBinding - The panelBinding.- See Also:
getPanelBinding
getPanelBinding
public JUPanelBinding getPanelBinding()
- Gets the panelBinding containing the iterators for which tree needs to sync.
- Returns:
- panelBinding The panelBinding.
- See Also:
setPanelBinding
setRulesActions
public void setRulesActions(java.lang.String[][] rulesactions)
- Defines one target iterator per rule.
- Parameters:
rulesactions - Defines an target iterator per rule.
example : new String [][] { { "NodeRule1", "DeptViewIter" }, { "NodeRule2", "EmpView1Iter" } } });- See Also:
getRulesActions
getRulesActions
public java.lang.String[][] getRulesActions()
- Defines the target iterator per rule definition.
- Returns:
- rulesactions Defines an target iterator per rule.
- See Also:
setRulesActions
setDoubleClick
public void setDoubleClick(boolean doubleClick)
- Controls whether a double-click will activate the events (true is the default).
- Parameters:
doubleClick - Specifies whether double-clicking is required.- See Also:
isDoubleClick
isDoubleClick
public boolean isDoubleClick()
- will a double click activate the events ?
- Returns:
- doubleClick Specifies whether double-clicking is required.
- See Also:
setDoubleClick
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Overrides:
mousePressed in class java.awt.event.MouseAdapter