net.sourceforge.nite.gui.actions
Class AltChangeAttributeValuePopup

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.AltChangeAttributeValuePopup
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

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

Author:
judyr, jeanc A popup menu which allows the user to select from a set of pre-specified values for a specified attribute Jeanc changing so that instead of relying on the displayedAttribute setting of the text area, this is given a tag name and an attribute name JEAN, I HAD TO CHANGE THIS FOR YOU WHEN UPDATING MY ACTION CODE. In future, wiser to extend my classes and reimplement only the necessary alterations for your own code.

Constructor Summary
AltChangeAttributeValuePopup(JDomParser p, java.lang.String tag, java.lang.String att)
           
AltChangeAttributeValuePopup(OutputComponent o, java.lang.String tag, java.lang.String att)
           
 
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 setLocation(javax.swing.JComponent location, int x, int y)
          Sets the location.
 void setPopupContext(java.util.Map popupContext)
          Sets the popupContext.
 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

AltChangeAttributeValuePopup

public AltChangeAttributeValuePopup(JDomParser p,
                                    java.lang.String tag,
                                    java.lang.String att)

AltChangeAttributeValuePopup

public AltChangeAttributeValuePopup(OutputComponent o,
                                    java.lang.String tag,
                                    java.lang.String att)
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

setLocation

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

Parameters:
location - The location to set

setPopupContext

public void setPopupContext(java.util.Map popupContext)
Sets the popupContext.

Parameters:
popupContext - The popupContext to set

setAttributeContext

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

Parameters:
attributeContext - The attributeContext to set