Interface VisionClientInterface
- All Known Subinterfaces:
VisionDesignerInterface
- All Known Implementing Classes:
ClientContextImpl,VisionDesignerImpl
public interface VisionClientInterface
The public API interface for the Vision client. You can safely cast the Vision module to an
instance of VisionClientInterface in either the client or designer context.
Example:
ClientContext context = ... VisionClientInterface vision = (VisionClientInterface)context.getModule(VisionClientInterface.VISION_MODULE_ID);
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExtensibleBindingType(BindingType binding) Adds a new binding type to be used in the extensible binding systemvoidaddWindowListener(VisionWindowListener listener) Adds a listener to be notified when windows are opened and closed.getBindingType(String bindingTypeKey) Gets a binding type by its key.Gets the WindowUtilities for the primary desktop.getGuiUtil(String desktopHandle) Gets the WindowUtilities for a secondary desktop, by handle.Gets the NavUtilities for the primary desktop.getNavUtil(String desktopHandle) Gets the NavUtilities for a secondary desktop, by handle.voidremoveWindowListener(VisionWindowListener listener) Removes a window listener.
-
Field Details
-
VISION_MODULE_ID
- See Also:
-
-
Method Details
-
addExtensibleBindingType
Adds a new binding type to be used in the extensible binding system- Parameters:
binding- The binding type to add.
-
getBindingType
Gets a binding type by its key.- Parameters:
bindingTypeKey- The unique key for the binding type.- Returns:
- The binding type, or null if not found.
-
getGuiUtil
WindowUtilities getGuiUtil()Gets the WindowUtilities for the primary desktop.- Returns:
- The GUI utilities.
-
getGuiUtil
Gets the WindowUtilities for a secondary desktop, by handle.- Parameters:
desktopHandle- The handle of the desktop.- Returns:
- The GUI utilities for the specified desktop.
-
addWindowListener
Adds a listener to be notified when windows are opened and closed. Only works during runtime, not designer.- Parameters:
listener- The window listener to add.
-
removeWindowListener
Removes a window listener.- Parameters:
listener- The window listener to remove.
-