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

All Known Implementing Classes:
EnableInTagFilter, GenericEnabledFilter, OrEnabledFilter

public interface EnabledFilter

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

NOTE: Eventually this class will move into com.ephox.editlive.ephoxaction.filter


Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          Add a property change listener which must be 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

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

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

Parameters:
listener - the listener to add.

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