com.ephox.editlive.java2.editor.actionhandler
Interface EnabledFilter


public interface EnabledFilter

The interface for filters that control when actions are enabled and disabled.


Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add a property change listener which is notified when the enabled state of this filter changes.
 boolean isEnabled()
          Calculate whether or not this filter will allow the action to be enabled.
 

Method Detail

isEnabled

public boolean isEnabled()
Calculate whether or not this filter will allow the action to be enabled. If any EnabledFilter for an action returns false the action is disabled.

Returns:
true if this filter allows the action to be enabled, otherwise returns false.

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener which is notified when the enabled state of this filter changes.

Parameters:
listener - the listener to add.

Copyright (c) 2005-2007 Ephox Pty Ltd. All rights reserved.