com.sas
Interface DesignTimeDropTargetInterface

All Known Subinterfaces:
ContainerInterface
All Known Implementing Classes:
ArrowButton, BaseButton, BasicColorsPanel, BorderedContainer, BorderedPanel, BufferedPanel, ButtonDialog, ButtonPanel, CatalogSelectorDialog, CheckBoxCell, ClassSelectorPanel, CloseCancelCustomizerDialog, ColorDialog, ColorPanel, ComboBox, CompositeContainer, CompositePanel, Container, ContainerContainerComponent, CustomColorsPanel, CustomizerDialog, CustomizerPanel, DataSetSelectorDialog, Dialog, DialogContainerComponent, DirectoryDialog, DualSelector, EISSelectorDialog, FileListFiltersPanel, FontDialog, FontPanel, Frame, FrameContainerComponent, GraphicalCheckBox, IndexedPropertyEditorHost, LibrarySelectorDialog, MessageBox, MetabaseSelectorDialog, NavigationBar, OkCancelHelpDialog, OrientationSelector, Panel, PanelContainerComponent, ProgressDialog, PropertyEditorHost, PropertySheet, PushButton, RadioBox, RadioButton, RemoteObjectCustomizerPanel, RemoteObjectSelectorDialog, Scrollbar, ScrollPane, ScrollPaneContainerComponent, SpinBox, TabBar, TabbedView, TabButton, TabFolder, TableView, TextEditComposite, ToggleButton, Toolbar, ToolbarButton, TreeView, UnitsBox, UpDownListBox, UpDownTextArea

public interface DesignTimeDropTargetInterface

The DesignTimeDropTargetInterface is implemented by visual components which wish to allow models and/or viewers to be dropped in/on them inside webAF. Typically, this interface is implemented by a container object such as com.sas.awt.Panel.

A typical component will only have significant implementation in the dragOver and drop methods.


Method Summary
abstract  int dragEnter(java.awt.Point point, int representation, int keyState, java.util.Vector data)
          dragEnter is called when the mouse cursor enters a component in webAF.
abstract  void dragLeave()
          dragLeave is called when the cursor leaves the component.
abstract  int dragOver(java.awt.Point point, int representation, int keyState, java.util.Vector data)
          dragOver is called when a model or view is dragged over a component.
abstract  DesignTimeDropResult drop(java.awt.Point point, int representation, int keyState, java.util.Vector data)
          drop is alled when a model or view is dropped on a component.
 

Method Detail

dragEnter

int dragEnter(java.awt.Point point,
              int representation,
              int keyState,
              java.util.Vector data)
dragEnter is called when the mouse cursor enters a component in webAF. The component may choose to change it's visual representation when something is being dragged within it.

NOTE: dragEnter is currently not functioning properly due to a problem in the C/Java event handling. It may not be called on a component, or it may not always be called on a component at the expected time.

Parameters:
point - The x/y coordinates of the mouse cursor inside the component.
representation - One of com.sas.DesignTimeDropResult.{representationComponent,representationModel,representationAttribute,representationViewer}
keyState - Unused.
data - A Vector containing information about the drag.
Returns:
One of com.sas.DesignTimeDropResult.{dragIndeterminate,dragMove,dragCopy,dragLink,dragNone}

dragLeave

void dragLeave()
dragLeave is called when the cursor leaves the component.

NOTE: dragLeave is currently not functioning properly due to a problem in the C/Java event handling. It may not be called on a component, or it may not always be called on a component at the expected time.


dragOver

int dragOver(java.awt.Point point,
             int representation,
             int keyState,
             java.util.Vector data)
dragOver is called when a model or view is dragged over a component.

Parameters:
point - The x/y coordinates of the mouse cursor inside the component.
representation - One of com.sas.DesignTimeDropResult.{representationComponent,representationModel,representationAttribute,representationViewer}
keyState - Unused.
data - A Vector containing information about the drag.
Returns:
One of com.sas.DesignTimeDropResult.{dragIndeterminate,dragMove,dragCopy,dragLink,dragNone}

drop

DesignTimeDropResult drop(java.awt.Point point,
                          int representation,
                          int keyState,
                          java.util.Vector data)
drop is alled when a model or view is dropped on a component.

Parameters:
point - The x/y coordinates of the mouse cursor inside the component.
representation - One of com.sas.DesignTimeDropResult.{representationComponent,representationModel,representationAttribute,representationViewer}
keyState - Unused.
data - A Vector containing information about the drag.
Returns:
An instance of com.sas.DesignTimeDropResult or null to indicate that a drop was refused.



Copyright © 2009 SAS Institute Inc. All Rights Reserved.