|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.awt.event.MouseAdapter
oracle.jbo.uicli.jui.JUTreeDefaultMouseListener
public class JUTreeDefaultMouseListener
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.
Constructor Summary | |
---|---|
JUTreeDefaultMouseListener(JUPanelBinding panelBinding, java.lang.String[][] rulesactions) Constructor. |
|
JUTreeDefaultMouseListener(JUPanelBinding panelBinding, java.lang.String[][] rulesactions, boolean doubleClick) Constructor |
Method Summary | |
---|---|
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 ? |
protected JUIteratorBinding |
lookupIterBinding(java.lang.String name) |
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, mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseReleased, mouseWheelMoved |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JUTreeDefaultMouseListener(JUPanelBinding panelBinding, java.lang.String[][] rulesactions)
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" } } });
public JUTreeDefaultMouseListener(JUPanelBinding panelBinding, java.lang.String[][] rulesactions, boolean doubleClick)
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" } } });
doubleClick
- defining doubleclick or not (true is the default)Method Detail |
---|
public void setPanelBinding(JUPanelBinding panelBinding)
panelBinding
- The panelBinding.getPanelBinding()
public JUPanelBinding getPanelBinding()
setPanelBinding(oracle.jbo.uicli.jui.JUPanelBinding)
public void setRulesActions(java.lang.String[][] rulesactions)
rulesactions
- Defines an target iterator per rule. example : new String [][] { { "NodeRule1", "DeptViewIter" }, { "NodeRule2", "EmpView1Iter" } } });getRulesActions()
public java.lang.String[][] getRulesActions()
setRulesActions(java.lang.String[][])
public void setDoubleClick(boolean doubleClick)
doubleClick
- Specifies whether double-clicking is required.isDoubleClick()
public boolean isDoubleClick()
setDoubleClick(boolean)
protected JUIteratorBinding lookupIterBinding(java.lang.String name)
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class java.awt.event.MouseAdapter
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 2 (11.1.2.3.0) E17483-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |