Protege-2000 1.7

edu.stanford.smi.protege.util
Class AllowableAction

java.lang.Object
  |
  +--javax.swing.AbstractAction
        |
        +--edu.stanford.smi.protege.util.AllowableAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable
Direct Known Subclasses:
AddAction, CreateAction, DeleteAction, ReferencersAction, RemoveAction, ViewAction

public abstract class AllowableAction
extends AbstractAction

Description of the class

Author:
Ray Fergerson
See Also:
Serialized Form

Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
AllowableAction(String name, Icon icon, Selectable selectable)
           
AllowableAction(String name, String description, Icon icon, Selectable selectable)
           
 
Method Summary
 Selectable getSelectable()
           
 Collection getSelection()
           
 void onSelectionChange()
           
 void setAllowed(boolean b)
           
 
Methods inherited from class javax.swing.AbstractAction
actionPerformed, addPropertyChangeListener, clone, firePropertyChange, getKeys, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AllowableAction

public AllowableAction(String name,
                       String description,
                       Icon icon,
                       Selectable selectable)

AllowableAction

public AllowableAction(String name,
                       Icon icon,
                       Selectable selectable)
Method Detail

getSelectable

public Selectable getSelectable()

getSelection

public Collection getSelection()

onSelectionChange

public void onSelectionChange()

setAllowed

public void setAllowed(boolean b)

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.