|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.rave.designtime.markup.BasicMarkupMouseRegion
A basic implementation of MarkupMouseRegion to use for convenience.
MarkupMouseRegion| Field Summary | |
protected java.lang.String |
description
|
protected java.lang.String |
displayName
|
protected java.lang.String |
helpKey
|
protected java.awt.Image |
largeIcon
|
protected java.awt.Image |
smallIcon
|
| Constructor Summary | |
BasicMarkupMouseRegion()
|
|
BasicMarkupMouseRegion(java.lang.String displayName)
|
|
BasicMarkupMouseRegion(java.lang.String displayName,
java.lang.String description)
|
|
BasicMarkupMouseRegion(java.lang.String displayName,
java.lang.String description,
java.lang.String helpKey)
|
|
| Method Summary | |
boolean |
canLinkBeans(DesignBean targetBean,
DesignBean sourceBean,
java.lang.Class sourceClass)
This method is called when an object from a design surface or palette is being dragged 'over' a region represented by this MarkupMouseRegion. |
DisplayAction[] |
getContextItems()
Returns an array of DisplayAction objects - used to render a right-click context menu when the user right-clicks on this mouse region. |
java.lang.String |
getDescription()
Returns a description for this item. |
java.lang.String |
getDisplayName()
Returns a display name for this item. |
java.lang.String |
getHelpKey()
Returns the help key for this item. |
java.awt.Image |
getLargeIcon()
Returns a large image icon for this item. |
java.awt.Image |
getSmallIcon()
Returns a small image icon for this item. |
boolean |
isClickable()
Returns true if this markup region wishes to respond to a mouse click (or series of clicks). |
Result |
linkBeans(DesignBean targetBean,
DesignBean sourceBean)
This method is called when an object from a design surface or palette has been dropped 'on' a region represented by this MarkupMouseRegion (to establish a link). |
Result |
regionClicked(int clickCount)
This method is called when a user clicks the mouse within the bounds of this mouse region. |
void |
setDescription(java.lang.String description)
|
void |
setDisplayName(java.lang.String displayName)
|
void |
setHelpKey(java.lang.String helpKey)
|
void |
setLargeIcon(java.awt.Image largeIcon)
|
void |
setSmallIcon(java.awt.Image smallIcon)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.lang.String description
protected java.lang.String displayName
protected java.lang.String helpKey
protected java.awt.Image largeIcon
protected java.awt.Image smallIcon
| Constructor Detail |
public BasicMarkupMouseRegion()
public BasicMarkupMouseRegion(java.lang.String displayName)
public BasicMarkupMouseRegion(java.lang.String displayName,
java.lang.String description)
public BasicMarkupMouseRegion(java.lang.String displayName,
java.lang.String description,
java.lang.String helpKey)
| Method Detail |
public boolean canLinkBeans(DesignBean targetBean,
DesignBean sourceBean,
java.lang.Class sourceClass)
MarkupMouseRegion
canLinkBeans in interface MarkupMouseRegiontargetBean - The DesignBean instance that the user is 'hovering' the mouse oversourceBean - The DesignBean instance that the user may potentially 'drop' to link - may
be null if this drag operation originated from the palette, because the instance will
not have been created yetsourceClass - The class type of the object that the user may potentially 'drop' to link
MarkupMouseRegion.linkBeans(DesignBean, DesignBean)public DisplayAction[] getContextItems()
MarkupMouseRegion
getContextItems in interface MarkupMouseRegionpublic java.lang.String getDescription()
DisplayItem
getDescription in interface DisplayItempublic java.lang.String getDisplayName()
DisplayItem
getDisplayName in interface DisplayItempublic java.lang.String getHelpKey()
DisplayItem
getHelpKey in interface DisplayItempublic java.awt.Image getLargeIcon()
DisplayItem
getLargeIcon in interface DisplayItempublic java.awt.Image getSmallIcon()
DisplayItem
getSmallIcon in interface DisplayItempublic boolean isClickable()
MarkupMouseRegion
isClickable in interface MarkupMouseRegionMarkupMouseRegion.regionClicked(int)
public Result linkBeans(DesignBean targetBean,
DesignBean sourceBean)
MarkupMouseRegionThis method is called when an object from a design surface or palette has been dropped 'on' a region represented by this MarkupMouseRegion (to establish a link). This method will not be called unless the corresponding 'canLinkBeans' method call returned true. Typically, this results in property settings on potentially both of the DesignBean objects.
linkBeans in interface MarkupMouseRegiontargetBean - The target DesignBean instance that the user has 'dropped' an object onto to
establish a linksourceBean - The DesignBean instance that has been 'dropped'
MarkupMouseRegion.canLinkBeans(DesignBean, DesignBean, Class)public Result regionClicked(int clickCount)
MarkupMouseRegion
regionClicked in interface MarkupMouseRegionclickCount - The count of mouse clicks
MarkupMouseRegion.isClickable()public void setDescription(java.lang.String description)
public void setDisplayName(java.lang.String displayName)
public void setHelpKey(java.lang.String helpKey)
public void setLargeIcon(java.awt.Image largeIcon)
public void setSmallIcon(java.awt.Image smallIcon)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||