org.fopps.ui
Interface ViewActionReceiver

All Known Implementing Classes:
ActionHandler, EnhancedList, EnhancedTable, EnhancedTree, ProjectPanel

public interface ViewActionReceiver

Interface ViewActionReceiver provides an interface for all views which must react on actions that doesn't affect the model itself (e. g. 'select all items').


Method Summary
 boolean allowMultipleSelection()
          Returns true if view allows multiple selection.
 boolean canZoom()
          Returns true if view can be zoomed.
 void invertSelection()
          Inverts current selection
 void narrow()
          Narrows current view, if applicable
 void selectAll()
          Selects all items in a view
 void selectItem(java.lang.Object pObject)
          Select an object in the view
 void unselectAll()
          Unselects all items in a view
 void widen()
          Widens current view, if applicable
 void zoomIn()
          Zooms current view, if applicable
 void zoomOut()
          Unzooms current view, if applicable
 

Method Detail

selectAll

public void selectAll()
Selects all items in a view


selectItem

public void selectItem(java.lang.Object pObject)
Select an object in the view

Parameters:
pObject - Object to select in view. If null, the method does nothing

unselectAll

public void unselectAll()
Unselects all items in a view


invertSelection

public void invertSelection()
Inverts current selection


zoomIn

public void zoomIn()
Zooms current view, if applicable


zoomOut

public void zoomOut()
Unzooms current view, if applicable


narrow

public void narrow()
Narrows current view, if applicable


widen

public void widen()
Widens current view, if applicable


canZoom

public boolean canZoom()
Returns true if view can be zoomed. If false, all zoom actions are disabled


allowMultipleSelection

public boolean allowMultipleSelection()
Returns true if view allows multiple selection. If false, (un)selectAll and invertSelection actions are disabled



Fopps 0.19 - Copyright © 2002 Oliver Wieland. All Rights Reserved.