net.sourceforge.nite.gui.actions
Class ChangeAttributeValuePopup

java.lang.Object
  extended by net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
      extended by net.sourceforge.nite.nstyle.handler.JComponentHandler
          extended by net.sourceforge.nite.gui.actions.ChangeAttributeValuePopup
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ChangeAttributeValuePopup
extends JComponentHandler
implements java.awt.event.ActionListener

Author:
judyr A popup menu which allows the user to select from a set of pre-specified values for a specified attribute

Constructor Summary
ChangeAttributeValuePopup(JDomParser p)
           
ChangeAttributeValuePopup(OutputComponent o)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 ObjectModelElement getSelectedElement()
          Returns the selectedElement.
 void registerAction(java.lang.String s, NiteAction a)
          There should be no actions registered with this, so nothing happens here
 void setAttributeContext(java.util.Map popupContext)
          Sets the attributeContext.
 void setDisplayer(Displayer displayer)
          Sets the displayer which is the object claiming it can redisplay after this action.
 void setLocation(javax.swing.JComponent location, int x, int y)
          Sets the location.
 void setSelectedElement(ObjectModelElement selectedElement)
          Sets the selectedElement.
 
Methods inherited from class net.sourceforge.nite.nstyle.handler.JComponentHandler
addActionReference, addChild, getImage, getJComponent, setImage, setUpBackgroundColour, setUpFont, setUpForegroundColour, setUpImage, setUpToolTip
 
Methods inherited from class net.sourceforge.nite.nstyle.handler.NDisplayObjectHandler
addActionReference, getActionReferences, getChildren, getClock, getElement, getEndTime, getID, getParent, getSourceID, getStartTime, init, setChildren, setClock, setElement, setEndTime, setID, setParent, setSourceID, setStartTime, setUpTimes
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeAttributeValuePopup

public ChangeAttributeValuePopup(JDomParser p)

ChangeAttributeValuePopup

public ChangeAttributeValuePopup(OutputComponent o)
Method Detail

registerAction

public void registerAction(java.lang.String s,
                           NiteAction a)
There should be no actions registered with this, so nothing happens here

Overrides:
registerAction in class JComponentHandler
See Also:
net.sourceforge.nite.nstyle.handler.JComponentHandler#registerAction(net.sourceforge.nite.gui.actions.NiteAction)

getSelectedElement

public ObjectModelElement getSelectedElement()
Returns the selectedElement.

Returns:
ObjectModelElement

setSelectedElement

public void setSelectedElement(ObjectModelElement selectedElement)
Sets the selectedElement.

Parameters:
selectedElement - The selectedElement to set

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

setDisplayer

public void setDisplayer(Displayer displayer)
Sets the displayer which is the object claiming it can redisplay after this action. This will override any default redisplay behaviour.


setLocation

public void setLocation(javax.swing.JComponent location,
                        int x,
                        int y)
Sets the location.

Parameters:
location - The location to set

setAttributeContext

public void setAttributeContext(java.util.Map popupContext)
Sets the attributeContext.

Parameters:
attributeContext - The attributeContext to set