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

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

public class MinimizedView
extends AbstractView


Field Summary
 
Fields inherited from interface org.nakedobjects.plugins.dnd.View
HPADDING, VPADDING
 
Constructor Summary
MinimizedView(View viewToMinimize)
           
 
Method Summary
 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 dragIn(ContentDrag drag)
          Called as the content being dragged is dragged into this view.
 void dragOut(ContentDrag drag)
          Called as the content being dragged is dragged out of this view.
 Drag dragStart(DragStart drag)
           
 void draw(Canvas canvas)
          Called by the frame, or the parent view, when this view must redraw itself.
 void drop(ContentDrag drag)
          Called as another view's contents (the source) is dropped on this view's contents (the target).
 void firstClick(Click click)
          Called when the user clicks the mouse buttone within this view.
 Size getMaximumSize()
           
 Padding getPadding()
           
 View identify(Location location)
           
 void layout(Size maximumSize)
           
 void removeView(View view)
          Removes the specifed view from the subviews contained by this view.
 void secondClick(Click click)
          Called when the user double-clicked this view.
 ViewAreaType viewAreaType(Location location)
          Determines if the user is invoking an action relating to this view, rather than to whatever this view represents.
 void viewMenuOptions(UserActionSet options)
          Called when the popup menu is being populated for this view.
 
Methods inherited from class org.nakedobjects.plugins.dnd.viewer.view.simple.AbstractView
addView, assignId, canChangeValue, canFocus, contains, containsFocus, contentMenuOptions, debugStructure, drag, drag, dragCancel, dragFrom, dragTo, drop, editComplete, entered, exited, focusLost, focusReceived, getAbsoluteLocation, getBaseline, getBounds, getContent, getFeedbackManager, getFocusManager, getId, getLocation, getParent, getRequiredSize, getSize, getSpecification, getState, getSubviews, getView, getViewAxis, getViewManager, getWorkspace, hasFocus, invalidateContent, invalidateLayout, keyPressed, keyReleased, keyTyped, limitBoundsWithin, limitBoundsWithin, markDamaged, markDamaged, mouseDown, mouseMoved, mouseUp, objectActionResult, pickupContent, pickupView, print, refresh, replaceOptions, replaceView, setBounds, setContent, setFocusManager, setLocation, setMaximumSize, setParent, setSize, setSpecification, setView, setViewAxis, subviewFor, thirdClick, toString, update, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MinimizedView

public MinimizedView(View viewToMinimize)
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)

dragStart

public Drag dragStart(DragStart drag)
Specified by:
dragStart in interface View
Overrides:
dragStart 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

getMaximumSize

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

getPadding

public Padding getPadding()
Specified by:
getPadding in interface View
Overrides:
getPadding in class AbstractView

layout

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

removeView

public void removeView(View view)
Description copied from interface: View
Removes the specifed view from the subviews contained by this view.

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

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

viewAreaType

public ViewAreaType viewAreaType(Location location)
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

viewMenuOptions

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

Specified by:
viewMenuOptions in interface View
Overrides:
viewMenuOptions 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

dragIn

public void dragIn(ContentDrag drag)
Description copied from interface: View
Called as the content being dragged is dragged into this view. This only occurs when view contents are being dragged, and not when views themselves are being dragged.

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

dragOut

public void dragOut(ContentDrag drag)
Description copied from interface: View
Called as the content being dragged is dragged out of this view. This only occurs when view contents are being dragged, and not when views themselves are being dragged.

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

identify

public View identify(Location location)
Specified by:
identify in interface View
Overrides:
identify in class AbstractView

drop

public void drop(ContentDrag drag)
Description copied from interface: View
Called as another view's contents (the source) is dropped on this view's contents (the target). The source view can be obtained from the ViewDrag object.

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


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