Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

org.argouml.ui

Class TargetManager


public class TargetManager

Title: TargetManager Manages the current target of Poseidon. The target is never null, but may be empty. The target is a collection of selected items. Each item can be one of diagrams, model elements or figs. A new target can be set by giving a single item or a collection of items. In either case model elements and figs are always selected in conjunction, i.e. if a fig is given as item, then its corresponding model element is selected as well (and vice-versa). The target manager send an notification if the target is changed.

Description:

Copyright: Copyright (c) 2002

Company: Gentleware AG

See also:
Target


 Inner Classifier Summary
public   TargetManager.Listener
 
public   TargetManager.BulkUpdateListener
 
arrow_up
 

 Method Summary
public void   addBulkUpdateListener( TargetManager.BulkUpdateListener listener )
 
public void   addListener( TargetManager.Listener listener )
Add a listener  
public void   clearBulkUpdateListeners()
 
public static TargetManager   get()
Singleton accessor method  
public boolean   getBulkUpdate()
 
public Collection   getListeners()
Returns all listeners 
public Target   getTarget()
Will never return null, but an empty target instead. 
public boolean   isSetTargetActive()
 
public void   removeBulkUpdateListener( TargetManager.BulkUpdateListener listener )
 
public void   removeListener( TargetManager.Listener listener )
Remove a listener. 
public void   setBulkUpdate(boolean b )
 
public void   setSelectedItem(Object source , Object selectedItem )
Set a new target and notify all listeners. 
public void   setSelectedItem(Object selectedItem )
Set a new target and notify all listeners. 
public void   setSelectedItems(Object source , Collection selectedItems )
Set a new target and notify all listeners. 
public void   setSelectedItems(Collection selectedItems )
Set a new target and notify all listeners. 
public void   setSetTargetActive(boolean value )
Sets the status flag for active target changes. 
public void   setTarget( Target newTarget )
Notify all listeners of a target change. 
public void   setTargetKind( Target template )
Sets the type of target that the manager produces. 
arrow_up
 

 

 Inner Classifier Detail

TargetManager.Listener

public  TargetManager.Listener

 
arrow_up
 
 

TargetManager.BulkUpdateListener

public  TargetManager.BulkUpdateListener

 
arrow_up
 

 Method Detail

addBulkUpdateListener

public void addBulkUpdateListener( TargetManager.BulkUpdateListener listener )

 
arrow_up
 
 

addListener

public void addListener( TargetManager.Listener listener )

Add a listener
Parameters:
listener -
 
arrow_up
 
 

clearBulkUpdateListeners

public void clearBulkUpdateListeners()

 
arrow_up
 
 

get

public static TargetManager get()

Singleton accessor method
Returns:
 
arrow_up
 
 

getBulkUpdate

public boolean getBulkUpdate()

 
arrow_up
 
 

getListeners

public Collection getListeners()

Returns all listeners 
arrow_up
 
 

getTarget

public Target getTarget()

Will never return null, but an empty target instead.
Returns:
the current target
 
arrow_up
 
 

isSetTargetActive

public boolean isSetTargetActive()

Returns:
true if target changed notification is currently in progress
 
arrow_up
 
 

removeBulkUpdateListener

public void removeBulkUpdateListener( TargetManager.BulkUpdateListener listener )

 
arrow_up
 
 

removeListener

public void removeListener( TargetManager.Listener listener )

Remove a listener. Even if a specific listener is not removed, it may be garbage collected, because the target manager holds only weak references to listeners.
Parameters:
listener -
 
arrow_up
 
 

setBulkUpdate

public void setBulkUpdate(boolean b )

 
arrow_up
 
 

setSelectedItem

public void setSelectedItem(Object source , Object selectedItem )

Set a new target and notify all listeners. Calls to setTarget with the current target or while target notification is in progress, are always ignored.
Parameters:
selectedItem - the single item, that will be the new target
 
arrow_up
 
 

setSelectedItem

public void setSelectedItem(Object selectedItem )

Set a new target and notify all listeners. The target will have the source property set to null. Calls to setTarget with the current target or while target notification is in progress, are always ignored.
Parameters:
selectedItem - the single item, that will be the new target
 
arrow_up
 
 

setSelectedItems

public void setSelectedItems(Object source , Collection selectedItems )

Set a new target and notify all listeners. The target will have the source property set to null. Calls to setTarget with the current target or while target notification is in progress, are always ignored.
Parameters:
selectedItems - a collection of items, that will make up the new target
 
arrow_up
 
 

setSelectedItems

public void setSelectedItems(Collection selectedItems )

Set a new target and notify all listeners. The target will have the source property set to null. Calls to setTarget with the current target or while target notification is in progress, are always ignored.
Parameters:
selectedItems - a collection of items, that will make up the new target
 
arrow_up
 
 

setSetTargetActive

public void setSetTargetActive(boolean value )

Sets the status flag for active target changes. Having this as a public operation is a HACK!!!
Parameters:
value - The new value of the active target change flag.
 
arrow_up
 
 

setTarget

public void setTarget( Target newTarget )

Notify all listeners of a target change.
Parameters:
oldTarget -
newTarget -
 
arrow_up
 
 

setTargetKind

public void setTargetKind( Target template )

Sets the type of target that the manager produces.
Parameters:
template - An instance of the new target class. May not be null.
 
arrow_up
 

Created  2003 - 3 - 4

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2001 Gentleware AG, Vogt-Kölln-Str.30, 22527 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.