org.nakedobjects.viewer.lightweight
Interface Border

All Known Implementing Classes:
EmptyBorder, SimpleBorder

public interface Border


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.
 

Method Detail

getPadding

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

Parameters:
view - the view this border is being placed around

debug

public java.lang.String debug(View view)
Determines the mininum widths of top and bottom borders, and heights of the left and right borders.

Parameters:
view - the view this border is being placed around

firstClick

public 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.

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)

secondClick

public void secondClick(View view,
                        Click click)

viewMenuOptions

public void viewMenuOptions(View view,
                            MenuOptionSet menuOptions)
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.

Parameters:
menuOptions -