|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.awt.ContainerInterfaceSupport
public class ContainerInterfaceSupport
ContainerInterfaceSupport provides a default implementation for the ContainerInterface interface. It provides a set of static methods which are called from methods in ContainerInterfaceImpl.ji. This is so that containers do not each need to provide the implementation for the ContainerInterface.
All of the methods in this class take three parameters in addition to the method parameters in the corresponding ContainerInterface method. The first param is a ComponentInterface reference. This is used to call ComponentInterface methods. The second param is a ContainerInterface reference. This is used to call methods on the ContainerInterface like getContainerInterfaceSupportInfo(). The third param is a java.awt.Component reference. It is used to call methods like size(), and bounds() on the component.
Based on the three parameters that are passed in to the methods of this support class, only java.awt.Component subclasses which implement the ComponentInterface and ContainerInterface can use ContainerInterfaceSupport to help implement the ContainerInterface.
Field Summary | |
---|---|
static java.lang.String |
RB_KEY
|
Constructor Summary | |
---|---|
ContainerInterfaceSupport()
|
Method Summary | |
---|---|
static void |
addNotify(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
|
static void |
clone(ContainerInterface sourceObject,
ContainerInterface destObject)
Helper method used to clone an object which implements ContainerInterface. |
static int |
dragEnter(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtComponawtContainerInstanceentInstance,
java.awt.Point point,
int representation,
int keyState,
java.util.Vector data)
|
static void |
dragLeave(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
|
static int |
dragOver(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
java.awt.Point point,
int representation,
int keyState,
java.util.Vector data)
|
static com.sas.DesignTimeDropResult |
drop(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
java.awt.Point point,
int representation,
int keyState,
java.util.Vector data)
|
static java.awt.Component |
findDropComponent(java.awt.Component component)
findDropComponent takes a java.awt.Component and searches goes up it's ancestor hierarchy to find the highest java.awt.Component what is a drop barrier or is the component itself. |
static ErrorHandlerInterface |
getErrorHandler(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Returns the error handler for the specified component. |
static com.sas.beans.ExtendedBeanInfo |
getExtendedBeanInfo()
|
static java.awt.Insets |
getInsets(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Return the insets for this component. |
static ValidationInterface |
getValidator(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Returns the validator for the specified component. |
static boolean |
isIDEDnDDropBarrier(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Returns whether the component is a drop barrier for the IDE. |
static boolean |
isIDEDnDDropTarget(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Return whether the component is an drop target for the IDE. |
static boolean |
isValid(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
Returns whether the specified component is valid. |
static void |
removeNotify(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
|
static void |
setDefaultValues(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance)
|
static void |
setErrorHandler(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
ErrorHandlerInterface errorHandler)
Sets the error handler for the specified component. |
static void |
setIDEDnDDropBarrier(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
boolean isDropBarrier)
Sets whether the component is a drop barrier for the IDE. |
static void |
setIDEDnDDropTarget(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
boolean isDropTarget)
Set whether the component is an drop target for the IDE. |
static void |
setInsets(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
java.awt.Insets newInsets)
|
static void |
setInsets(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
int top,
int left,
int bottom,
int right)
|
static void |
setValidator(com.sas.ComponentInterface componentInstance,
ContainerInterface containerInstance,
java.awt.Container awtContainerInstance,
ValidationInterface validator)
Sets the validator for the specified component. |
Field Detail |
---|
public static final java.lang.String RB_KEY
Constructor Detail |
---|
public ContainerInterfaceSupport()
Method Detail |
---|
public static com.sas.beans.ExtendedBeanInfo getExtendedBeanInfo()
public static void setDefaultValues(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
ComponentInterface.setDefaultValues()
public static java.awt.Insets getInsets(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
ContainerInterface.getInsets()
public static void addNotify(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
ContainerInterface.addNotify()
public static void removeNotify(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
ContainerInterface.removeNotify()
public static void setInsets(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, java.awt.Insets newInsets)
ContainerInterface.setInsets(java.awt.Insets)
public static void setInsets(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, int top, int left, int bottom, int right)
public static int dragOver(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, java.awt.Point point, int representation, int keyState, java.util.Vector data)
public static int dragEnter(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtComponawtContainerInstanceentInstance, java.awt.Point point, int representation, int keyState, java.util.Vector data)
public static void dragLeave(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
public static com.sas.DesignTimeDropResult drop(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, java.awt.Point point, int representation, int keyState, java.util.Vector data)
public static boolean isIDEDnDDropTarget(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
public static void setIDEDnDDropTarget(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, boolean isDropTarget)
public static java.awt.Component findDropComponent(java.awt.Component component)
public static boolean isIDEDnDDropBarrier(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
public static void setIDEDnDDropBarrier(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, boolean isDropBarrier)
public static ErrorHandlerInterface getErrorHandler(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
setErrorHandler(com.sas.ComponentInterface, com.sas.awt.ContainerInterface, java.awt.Container, com.sas.util.errorhandlers.ErrorHandlerInterface)
public static void setErrorHandler(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, ErrorHandlerInterface errorHandler)
getErrorHandler(com.sas.ComponentInterface, com.sas.awt.ContainerInterface, java.awt.Container)
public static boolean isValid(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
getValidator(com.sas.ComponentInterface, com.sas.awt.ContainerInterface, java.awt.Container)
,
setValidator(com.sas.ComponentInterface, com.sas.awt.ContainerInterface, java.awt.Container, com.sas.util.validators.ValidationInterface)
public static ValidationInterface getValidator(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance)
public static void setValidator(com.sas.ComponentInterface componentInstance, ContainerInterface containerInstance, java.awt.Container awtContainerInstance, ValidationInterface validator)
public static void clone(ContainerInterface sourceObject, ContainerInterface destObject) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- If the ContainerInterfaceSupportInfo clone() fails
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |