org.nakedobjects.plugins.dnd.viewer.table
Class TableHeader

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

public class TableHeader
extends AbstractView


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
TableHeader(Content content, ViewAxis axis)
           
 
Method Summary
 Drag dragStart(DragStart drag)
           
 void dragTo(InternalDrag drag)
          Called as the drag ends within and without this view.
 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()
           
 View identify(Location location)
           
 void invalidateContent()
          Flags that the views do not properly represent the content, and hence it needs rebuilding.
 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.
 java.lang.String toString()
           
 ViewAreaType viewAreaType(Location at)
          Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debug, debugStructure, dispose, drag, drag, dragCancel, dragFrom, dragIn, dragOut, 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, invalidateLayout, keyPressed, keyReleased, keyTyped, layout, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, removeView, replaceOptions, replaceView, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, update, updateView, viewMenuOptions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableHeader

public TableHeader(Content content,
                   ViewAxis axis)
Method Detail

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

invalidateContent

public void invalidateContent()
Description copied from interface: View
Flags that the views do not properly represent the content, and hence it needs rebuilding. Contrast this with invalidateLayout(), which deals with an a complete view, but one that is not showing properly.

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

getMaximumSize

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

dragStart

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

dragTo

public void dragTo(InternalDrag drag)
Description copied from interface: View
Called as the drag ends within and without this view. This only occurs when no content or view is being dragged.

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

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

identify

public View identify(Location location)
Specified by:
identify in interface View
Overrides:
identify 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

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 AbstractView

toString

public java.lang.String toString()
Overrides:
toString in class AbstractView

viewAreaType

public ViewAreaType viewAreaType(Location at)
Description copied from interface: View
Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.

Specified by:
viewAreaType in interface View
Overrides:
viewAreaType in class AbstractView
Returns:
true if the user is targeting the view itself, false if the user is targeting what is being represented


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