com.qintsoft.joria.runtimeapi
Interface ReportAction


public interface ReportAction

Interface to implement a context menu action in the report window User: patrick Date: 16.01.2007 Time: 07:44:24


Method Summary
 void execute(com.qintsoft.joria.data.DBData data, java.util.Stack<com.qintsoft.joria.data.DBData> stack)
          execute the action
 javax.swing.Icon getIcon(java.util.Locale loc)
          Determine the menu entry icon in a localized way
 java.lang.String getName(java.util.Locale loc)
          Determine the menu entry text in a localized way
 boolean isEnabled(com.qintsoft.joria.data.DBData data, java.util.Stack<com.qintsoft.joria.data.DBData> stack)
          Determine if the action should be enabled for the current object
 boolean isVisible(com.qintsoft.joria.data.DBData data, java.util.Stack<com.qintsoft.joria.data.DBData> stack)
          Determine if the action should be visible for the current object
 

Method Detail

execute

void execute(com.qintsoft.joria.data.DBData data,
             java.util.Stack<com.qintsoft.joria.data.DBData> stack)
execute the action

Parameters:
data - the object
stack - the stack of objects

getIcon

javax.swing.Icon getIcon(java.util.Locale loc)
Determine the menu entry icon in a localized way

Parameters:
loc - Locale for the icon
Returns:
the icon

getName

java.lang.String getName(java.util.Locale loc)
Determine the menu entry text in a localized way

Parameters:
loc - Locale for the name
Returns:
the menu entry text

isEnabled

boolean isEnabled(com.qintsoft.joria.data.DBData data,
                  java.util.Stack<com.qintsoft.joria.data.DBData> stack)
Determine if the action should be enabled for the current object

Parameters:
data - the object
stack - the stack of objects
Returns:
if the action should be enabled in the menu

isVisible

boolean isVisible(com.qintsoft.joria.data.DBData data,
                  java.util.Stack<com.qintsoft.joria.data.DBData> stack)
Determine if the action should be visible for the current object

Parameters:
data - the object
stack - the stack of objects
Returns:
if the action should be included in the menu