de.cau.cs.kieler.ksbase.ui.menus
Class KSbasEBalloonPopup

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.menus.KSbasEBalloonPopup
All Implemented Interfaces:
IBalloonContribution

public class KSbasEBalloonPopup
extends Object
implements IBalloonContribution

Edit policy for the KSBasE popup balloons.

Rating proposed yellow
(2010-03-22)

Constructor Summary
KSbasEBalloonPopup()
          Creates an empty balloon popup.
 
Method Summary
 Image getImage()
          Returns the image for the balloon.
 String getTooltip()
          Returns the name of the transformation for the popup tooltip.
 void init(EditPart editPartParam)
          Sets the balloon attributes.
 void init(Map<String,String> map)
          Sets the balloon attributes.
 boolean isValid()
          Sets the corresponding edit part that is target for this balloon.
 void run()
          Executes the transformation by using the TransformationUIManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KSbasEBalloonPopup

public KSbasEBalloonPopup()
Creates an empty balloon popup.

Method Detail

getImage

public Image getImage()
Returns the image for the balloon.

Specified by:
getImage in interface IBalloonContribution
Returns:
The image, may return null if no images is defined

getTooltip

public String getTooltip()
Returns the name of the transformation for the popup tooltip.

Specified by:
getTooltip in interface IBalloonContribution
Returns:
The name of the transformation

run

public void run()
Executes the transformation by using the TransformationUIManager.

Specified by:
run in interface IBalloonContribution

init

public void init(Map<String,String> map)
Sets the balloon attributes.

Specified by:
init in interface IBalloonContribution
Parameters:
map - A map of key-value pairs.

init

public void init(EditPart editPartParam)
Sets the balloon attributes.

Specified by:
init in interface IBalloonContribution
Parameters:
editPartParam - The edit part to use.

isValid

public boolean isValid()
Sets the corresponding edit part that is target for this balloon. FIXME: separate setter and tester

Specified by:
isValid in interface IBalloonContribution
Returns:
true iff the given EditPart is target for the balloon