UTJML

edu.utep.cs.utjml.canica
Class SearchAndInsertActionFactory

java.lang.Object
  extended by edu.utep.cs.utjml.canica.SearchAndInsertActionFactory

public class SearchAndInsertActionFactory
extends Object

A factory class to create various search and insert actions such as find, go to, replace, etcetera. These actions may be used for creating menu items or tool bar items (see MenuFactory).

Author:
Angelica B. Perez

Field Summary
protected  Mainable canica
          The main program.
 
Constructor Summary
SearchAndInsertActionFactory(Mainable canica)
          Constructor
 
Method Summary
 Action getClauses()
          Returns the action for clauses ... menu item.
 Action getFind()
          Returns the action for Find ... menu item.
 Action getFresh()
          Returns the action for \fresh ... submenu item.
 Action getGoto()
          Returns the action for go to menu item.
 Action getNothing()
          Returns the action for \nothing ... submenu item.
 Action getOld()
          Returns the action for \old ... submenu item.
 Action getReplace()
          Returns the action for Replace ... menu item.
 Action getResult()
          Returns the action for \result ... submenu item.
 Action getSpace()
          Returns the action for \space ... submenu item.
 void reset()
          It resets the action values to false.
 void setEnabledToActions(boolean[] menuItems)
          It sets the Enabled property values to these actions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

canica

protected final Mainable canica
The main program.

Constructor Detail

SearchAndInsertActionFactory

public SearchAndInsertActionFactory(Mainable canica)
Constructor

Method Detail

getGoto

public Action getGoto()
Returns the action for go to menu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actGoto;
 


getFind

public Action getFind()
Returns the action for Find ... menu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actFind;
 


getReplace

public Action getReplace()
Returns the action for Replace ... menu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actReplace;
 


getResult

public Action getResult()
Returns the action for \result ... submenu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actPrimExpr_result;
 


getOld

public Action getOld()
Returns the action for \old ... submenu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actPrimExpr_old;
 


getFresh

public Action getFresh()
Returns the action for \fresh ... submenu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actPrimExpr_fresh;
 


getSpace

public Action getSpace()
Returns the action for \space ... submenu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actPrimExpr_space;
 


getNothing

public Action getNothing()
Returns the action for \nothing ... submenu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actPrimExpr_nothing;
 


getClauses

public Action getClauses()
Returns the action for clauses ... menu item. Initially the action is disabled, and gets enabled whenever a file is open.

  assignable actClauses;
 


setEnabledToActions

public void setEnabledToActions(boolean[] menuItems)
It sets the Enabled property values to these actions.

Parameters:
menuItems - Enabled property values

reset

public void reset()
It resets the action values to false.


UTJML

UTJML is Copyright (C) 2004-2006 by University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the JML project.