org.nakedobjects.viewer.lightweight.view
Class EmptyBorder

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.view.EmptyBorder
All Implemented Interfaces:
Border

public class EmptyBorder
extends java.lang.Object
implements Border


Constructor Summary
EmptyBorder(int width)
           
EmptyBorder(int horizontal, int vertical)
           
 
Method Summary
 java.lang.String debug(View view)
          Determines the mininum widths of top and bottom borders, and heights of the left and right borders.
 void draw(View view, Canvas canvas)
           
 void firstClick(View view, Click click)
          Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
 Padding getPadding(View view)
          Determines the size of border in terms of it left and right widths, and top and bottom heights.
 void secondClick(View view, Click click)
           
 void viewMenuOptions(View view, MenuOptionSet menuOptions)
          Called when the popup menu is being populated for this view's border.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyBorder

public EmptyBorder(int width)

EmptyBorder

public EmptyBorder(int horizontal,
                   int vertical)
Method Detail

getPadding

public Padding getPadding(View view)
Description copied from interface: Border
Determines the size of border in terms of it left and right widths, and top and bottom heights.

Specified by:
getPadding in interface Border
Parameters:
view - the view this border is being placed around

debug

public java.lang.String debug(View view)
Description copied from interface: Border
Determines the mininum widths of top and bottom borders, and heights of the left and right borders.

Specified by:
debug in interface Border
Parameters:
view - the view this border is being placed around

firstClick

public void firstClick(View view,
                       Click click)
Description copied from interface: Border
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.

Specified by:
firstClick in interface Border
Returns:
true if the user is targeting the view itself, false if the user is targeting what is being represented

draw

public void draw(View view,
                 Canvas canvas)
Specified by:
draw in interface Border

secondClick

public void secondClick(View view,
                        Click click)
Specified by:
secondClick in interface Border

viewMenuOptions

public void viewMenuOptions(View view,
                            MenuOptionSet menuOptions)
Description copied from interface: Border
Called when the popup menu is being populated for this view's border. Any view options that need to appear on the menu should be added to the menuOptions object.

Specified by:
viewMenuOptions in interface Border
Parameters:
menuOptions -