org.apache.ojb.tools.mapping.reversedb2
Interface ActionTarget

All Known Implementing Classes:
OjbMetaTreeNode

public interface ActionTarget

This interface is intended to be implemented by objects that are part of a GUI and that whish to present a context menu.

Version:
$Id: ActionTarget.java,v 1.1 2002/08/31 21:17:20 florianbruckner Exp $
Author:
Florian Bruckner

Method Summary
 boolean actionListCachable()
          Some objects may alter the list of actions they present depending on the state they are in.
 boolean actionListStatic()
          Some objects may return a list of actions depending on the state they are in or the way they have been created.
 java.util.Iterator getActions()
          Get a bunch of java.util.Action objects that this object wants to offer in a context-menu.
 

Method Detail

getActions

public java.util.Iterator getActions()
Get a bunch of java.util.Action objects that this object wants to offer in a context-menu.

Returns:
an Iterator containing all the actions.

actionListCachable

public boolean actionListCachable()
Some objects may alter the list of actions they present depending on the state they are in. If this method returns true, the list of actions can be cached (i.e. the resulting GUI object can be cached and doesn't have to be regenerated all the time)

Returns:
true if the result of getActions() may be cached.

actionListStatic

public boolean actionListStatic()
Some objects may return a list of actions depending on the state they are in or the way they have been created. Others always return the same list of actions without any dependency on the state. If this is the case, this method should return true. Other objects may cache the list of actions and the depending GUI objects on a per-class basis instead of a per-object basis. If this method returns true, actionListCacheable has to return true as well, otherwise it would not make any sense to cache the information here.



Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14