com.appperfect.devcommon.script.javaelement
Interface SwingSplitPane

All Superinterfaces:
AwtComponent, AwtContainer, IScript, JavaComponent, SwingComponent

public interface SwingSplitPane
extends SwingComponent

SwingSplitPane is created to represent javax.swing.JSplitPane component

The following code fragment illustrates how to create an SwingSplitPane element.

 var element = engine.createSwingSplitPane(1, 5);
 
where engine is object of IScriptEngine


Method Summary
 int getDividerLocation()
 Returns the last value passed to setDividerLocation.
 int getDividerSize()
 Returns the divider size.
 int getOrientation()
 Returns the orientation.
 boolean setDividerLocation(int location)
 Sets the location of the divider.
 boolean setDividerSize(int size)
 Set the divider size.
 boolean setOrientation(int orientation)
 Set the orientation.
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.AwtContainer
getComponentCount
 
Methods inherited from interface com.appperfect.devcommon.script.javaelement.JavaComponent
activate, addAttribute, captureImage, click, close, dblClick, drag, drop, getName, getText, getToolTipText, maximize, minimize, mouseMove, restore, rightClick, set, setBreakPoint, setIgnored, setImagePath, setName, setThinkTime, setTitle, type
 
Methods inherited from interface com.appperfect.devcommon.script.IScript
getReasonForFailure, isIgnored, isTaskSuccessful, isTaskTimedOut, setReasonForFailure, setTaskSuccessful, setTaskTimedout, setTimeout
 

Method Detail

getDividerLocation

int getDividerLocation()
Returns the last value passed to setDividerLocation. The value returned from this method may differ from the actual divider location (if setDividerLocation was passed a value bigger than the curent size).

Returns:
an integer specifying the location of the divider

getDividerSize

int getDividerSize()
Returns the divider size.

Returns:
an integer giving the size in pixels

getOrientation

int getOrientation()
Returns the orientation.

Returns:
an integer giving the orientation

setDividerLocation

boolean setDividerLocation(int location)
Sets the location of the divider. This is passed off to the look and feel implementation, and then listeners are notified. A value less than 0 implies the divider should be reset to a value that attempts to honor the preferred size of the left/top component. After notifying the listeners, the last divider location is updated,

Parameters:
location - an int specifying a UI-specific value (typically a pixel count)

setDividerSize

boolean setDividerSize(int size)
Set the divider size.

Parameters:
size - an integer giving the size in pixel
Returns:
true if event was executed successfully, returns false if there is any failure during execution

setOrientation

boolean setOrientation(int orientation)
Set the orientation.

Parameters:
orientation - an integer giving the orientation
Returns:
true if event was executed successfully, returns false if there is any failure during execution


Copyright © 2003-2011 AppPerfect Corporation. All Rights Reserved.