org.nakedobjects.plugins.dnd.viewer.basic
Class PopupMenuContainer

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
      extended by org.nakedobjects.plugins.dnd.viewer.basic.PopupMenuContainer
All Implemented Interfaces:
java.lang.Cloneable, View

public class PopupMenuContainer
extends AbstractView


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
PopupMenuContainer(View target, Location at)
           
 
Method Summary
 void addMenuOptions(MenuOptions options)
           
 void debug(DebugString debug)
          Returns debug details about this view.
 void dispose()
          Called when a view is no longer needed and its resources can be disposed of.
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 void firstClick(Click click)
          Called when the user clicks the mouse buttone within this view.
 Size getMaximumSize()
           
 void invalidateLayout()
          Flags that the views are possibly not displaying the content fully - too small, wrong place etc - although views exists for all the content.
 void keyPressed(KeyboardAction key)
          Called when the user presses any key on the keyboard while this view has the focus.
 void layout(Size maximumSize)
           
 void mouseMoved(Location at)
          Called as the mouse is moved around within this view.
 void show(boolean forView, boolean includeDebug, boolean includeExploration)
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debugStructure, drag, drag, dragCancel, dragFrom, dragIn, dragOut, dragStart, dragTo, drop, drop, editComplete, entered, exited, focusLost, focusReceived, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getPadding, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, identify, invalidateContent, keyReleased, keyTyped, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, secondClick, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, toString, update, updateView, viewAreaType, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PopupMenuContainer

public PopupMenuContainer(View target,
                          Location at)
Method Detail

debug

public void debug(DebugString debug)
Description copied from class: AbstractView
Returns debug details about this view.

Specified by:
debug in interface View
Overrides:
debug in class AbstractView

dispose

public void dispose()
Description copied from interface: View
Called when a view is no longer needed and its resources can be disposed of. Dissociates this view from its parent, and removes itself from the list of views that need to be updated.

Specified by:
dispose in interface View
Overrides:
dispose in class AbstractView
See Also:
View.removeView(View)

getMaximumSize

public Size getMaximumSize()
Specified by:
getMaximumSize in interface View
Overrides:
getMaximumSize in class AbstractView

layout

public void layout(Size maximumSize)
Specified by:
layout in interface View
Overrides:
layout in class AbstractView

mouseMoved

public void mouseMoved(Location at)
Description copied from interface: View
Called as the mouse is moved around within this view. Does nothing; should be overriden when needed.

Specified by:
mouseMoved in interface View
Overrides:
mouseMoved in class AbstractView
Parameters:
at - the position relative to the top-left of this view

show

public void show(boolean forView,
                 boolean includeDebug,
                 boolean includeExploration)

addMenuOptions

public void addMenuOptions(MenuOptions options)

keyPressed

public void keyPressed(KeyboardAction key)
Description copied from interface: View
Called when the user presses any key on the keyboard while this view has the focus.

Specified by:
keyPressed in interface View
Overrides:
keyPressed in class AbstractView
Parameters:
key - TODO

invalidateLayout

public void invalidateLayout()
Description copied from interface: View
Flags that the views are possibly not displaying the content fully - too small, wrong place etc - although views exists for all the content. Contrast this with invalidateContent(), which deals with an incomplete view.

Specified by:
invalidateLayout in interface View
Overrides:
invalidateLayout in class AbstractView
See Also:
View.invalidateContent()

draw

public void draw(Canvas canvas)
Description copied from interface: View
Called by the frame, or the parent view, when this view must redraw itself.

Specified by:
draw in interface View
Overrides:
draw in class AbstractView

firstClick

public void firstClick(Click click)
Description copied from interface: View
Called when the user clicks the mouse buttone within this view.

Specified by:
firstClick in interface View
Overrides:
firstClick in class AbstractView
Parameters:
click - the location within the current view where the mouse click took place


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.