java.lang.Cloneable
, Operator.ComponentVisualizer
MouseVisualizer
public class DefaultVisualizer extends java.lang.Object implements Operator.ComponentVisualizer, java.lang.Cloneable
Operator.setVisualizer(Operator.ComponentVisualizer)
,
Operator.ComponentVisualizer
Constructor | Description |
---|---|
DefaultVisualizer() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
activate(WindowOperator winOper) |
Activates a window.
|
void |
activateInternalFrame(boolean yesOrNo) |
Informs that an internal frame contained component
should be activated.
|
void |
activateWindow(boolean yesOrNo) |
Informs that a window contained component should be activated.
|
void |
checkForModal(boolean yesOrNo) |
Forces vizualizer to check that component is
on the top modal dialog or no modal dialog
displayed.
|
DefaultVisualizer |
cloneThis() |
Creates an exact copy of this visualizer.
|
protected void |
initInternalFrame(JInternalFrameOperator intOper) |
Inits an internal frame.
|
protected boolean |
isWindowActive(WindowOperator winOper) |
Returns true if window is active.
|
void |
makeVisible(ComponentOperator compOper) |
Prepares the component for user input.
|
protected void |
makeWindowActive(WindowOperator winOper) |
Performs an atomic window-activization precedure.
|
void |
scroll(boolean yesOrNo) |
Informs that scrolling should be made.
|
protected void |
scroll(JScrollPaneOperator scrollOper,
java.awt.Component target) |
Scrolls JScrollPane to make the component visible.
|
void |
switchTab(boolean yesOrNo) |
Informs that tab switching should be made.
|
protected void |
switchTab(JTabbedPaneOperator tabOper,
java.awt.Component target) |
Switches tabs to make the component visible.
|
public void checkForModal(boolean yesOrNo)
yesOrNo
- If true, JemmyInputException will be throught
if component is not on the top modal dialog and a modal dialog
is dislayed.public void activateWindow(boolean yesOrNo)
yesOrNo
- true if windows need to be activated.public void activateInternalFrame(boolean yesOrNo)
yesOrNo
- true if internal frames need to be activated.public void scroll(boolean yesOrNo)
yesOrNo
- true if scroll panes need to be scrolled.public void switchTab(boolean yesOrNo)
yesOrNo
- true if tabbed panes need to be switched.protected boolean isWindowActive(WindowOperator winOper)
winOper
- an operator representing the window.protected void makeWindowActive(WindowOperator winOper)
winOper
- an operator representing the window.protected void activate(WindowOperator winOper)
winOper
- an operator representing the window.makeWindowActive(org.netbeans.jemmy.operators.WindowOperator)
protected void initInternalFrame(JInternalFrameOperator intOper)
intOper
- an operator representing the frame.protected void scroll(JScrollPaneOperator scrollOper, java.awt.Component target)
scrollOper
- an operator representing a scroll pane.target
- a component - target to be made visible.protected void switchTab(JTabbedPaneOperator tabOper, java.awt.Component target)
tabOper
- an operator representing a tabbed pane.target
- a component - target to be made visible.public void makeVisible(ComponentOperator compOper)
makeVisible
in interface Operator.ComponentVisualizer
compOper
- an operator representing the component.JemmyInputException
checkForModal(boolean)
public DefaultVisualizer cloneThis()