md3.md3view
Class MD3ModelUpdateTagMenuVisitor

java.lang.Object
  |
  +--md3.md3model.MD3ModelVisitor
        |
        +--md3.md3view.MD3ModelUpdateTagMenuVisitor

public class MD3ModelUpdateTagMenuVisitor
extends MD3ModelVisitor

An MD3Model visitor that walks through an MD3Model structure and updates a tags menu with the tags found in the visited models.

Author:
Erwin Vervaet (erwin@cs.kuleuven.ac.be)

Constructor Summary
MD3ModelUpdateTagMenuVisitor(java.awt.Menu tagsMenu)
          Create a new visitor to update the given tags menu.
MD3ModelUpdateTagMenuVisitor(java.awt.Menu tagsMenu, java.lang.String name)
          Create a new visitor to update the given tags menu.
 
Method Summary
 void visit(MD3Model model)
          Visit a MD3Model object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MD3ModelUpdateTagMenuVisitor

public MD3ModelUpdateTagMenuVisitor(java.awt.Menu tagsMenu)

Create a new visitor to update the given tags menu.

The tags menu will have menu items that pop up file dialogs to obtain the name of the files to attach.

Parameters:
tagsMenu - Menu to update.

MD3ModelUpdateTagMenuVisitor

public MD3ModelUpdateTagMenuVisitor(java.awt.Menu tagsMenu,
                                    java.lang.String name)

Create a new visitor to update the given tags menu.

The tags menu will have menu items that attach the given model to a certain tag position.

Parameters:
tagsMenu - Menu to update.
name - Name of model to attach.
Method Detail

visit

public void visit(MD3Model model)
Description copied from class: MD3ModelVisitor

Visit a MD3Model object.

Overrides:
visit in class MD3ModelVisitor
Tags copied from class: MD3ModelVisitor
Parameters:
model - The object to visit.