org.nakedobjects.plugins.dnd.viewer.border
Class AbstractWindowBorder

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
      extended by org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
          extended by org.nakedobjects.plugins.dnd.viewer.border.AbstractWindowBorder
All Implemented Interfaces:
java.lang.Cloneable, View
Direct Known Subclasses:
DialogBorder, WindowBorder

public abstract class AbstractWindowBorder
extends AbstractBorder


Field Summary
protected  BorderDrawing borderRender
           
protected  WindowControl[] controls
           
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
bottom, left, right, top
 
Fields inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
wrappedView
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
AbstractWindowBorder(View enclosedView)
           
 
Method Summary
 void debugDetails(DebugString debug)
           
 Drag dragStart(DragStart drag)
           
 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 getRequiredSize(Size maximumSize)
           
 void mouseMoved(Location at)
          Called as the mouse is moved around within this view.
 void secondClick(Click click)
          Called when the user double-clicked this view.
 void setBounds(Bounds bounds)
           
protected  void setControls(WindowControl[] controls)
           
 void setSize(Size size)
           
 void thirdClick(Click click)
          Called when the user triple-clicks the mouse buttone within this view.
protected abstract  java.lang.String title()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractBorder
contentArea, dragFrom, dragIn, dragOut, drop, drop, exited, getBaseline, getBottom, getLeft, getPadding, getRight, getSize, getTop, identify, isOnBorder, mouseDown, mouseUp, overBorder, overContent, pickupContent, pickupView, setMaximumSize, viewAreaType
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.border.AbstractViewDecorator
addView, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragTo, editComplete, entered, focusLost, focusReceived, getAbsoluteLocation, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getMaximumSize, getParent, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, markDamaged, markDamaged, objectActionResult, print, refresh, removeView, replaceView, setFocusManager, setLocation, setParent, setView, subviewFor, toString, update, updateView, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

borderRender

protected BorderDrawing borderRender

controls

protected WindowControl[] controls
Constructor Detail

AbstractWindowBorder

public AbstractWindowBorder(View enclosedView)
Method Detail

debugDetails

public void debugDetails(DebugString debug)
Overrides:
debugDetails in class AbstractBorder

dragStart

public Drag dragStart(DragStart drag)
Specified by:
dragStart in interface View
Overrides:
dragStart in class AbstractBorder

setControls

protected void setControls(WindowControl[] controls)

setSize

public void setSize(Size size)
Specified by:
setSize in interface View
Overrides:
setSize in class AbstractBorder

setBounds

public void setBounds(Bounds bounds)
Specified by:
setBounds in interface View
Overrides:
setBounds in class AbstractBorder

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 AbstractBorder

title

protected abstract java.lang.String title()

getRequiredSize

public Size getRequiredSize(Size maximumSize)
Specified by:
getRequiredSize in interface View
Overrides:
getRequiredSize in class AbstractBorder

secondClick

public void secondClick(Click click)
Description copied from interface: View
Called when the user double-clicked this view. This method will have been preceded by a call to click.

Specified by:
secondClick in interface View
Overrides:
secondClick in class AbstractBorder

thirdClick

public void thirdClick(Click click)
Description copied from interface: View
Called when the user triple-clicks the mouse buttone within this view. This method will have been preceded by a call to doubleClick.

Specified by:
thirdClick in interface View
Overrides:
thirdClick in class AbstractBorder

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 AbstractBorder
Parameters:
click - the location within the current view where the mouse click took place

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 AbstractBorder
Parameters:
at - the position relative to the top-left of this view


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