org.xwiki.gwt.wysiwyg.client.plugin.internal
Class StatelessUIExtension

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractUIExtension
      extended by org.xwiki.gwt.wysiwyg.client.plugin.internal.StatelessUIExtension
All Implemented Interfaces:
UIExtension

public class StatelessUIExtension
extends AbstractUIExtension

An user interface extension that cannot be enabled or disabled.


Constructor Summary
StatelessUIExtension(String role)
          Creates a new state less UI extension.
 
Method Summary
 boolean isEnabled(String feature)
          Tells if the given feature is enabled in the current context.
 void setEnabled(String feature, boolean enabled)
          Enables or disables the given feature.
 
Methods inherited from class org.xwiki.gwt.wysiwyg.client.plugin.internal.AbstractUIExtension
addFeature, clearFeatures, getFeatures, getRole, getUIObject, removeFeature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessUIExtension

public StatelessUIExtension(String role)
Creates a new state less UI extension.

Parameters:
role - the name of the extension point where the newly created UI extension fits
Method Detail

isEnabled

public boolean isEnabled(String feature)
Description copied from interface: UIExtension
Tells if the given feature is enabled in the current context. A feature can be temporarily disabled if it can generate invalid mark-up.

Parameters:
feature - The feature whose enabled state is queried.
Returns:
true if the specified feature is enabled.
See Also:
SyntaxValidator

setEnabled

public void setEnabled(String feature,
                       boolean enabled)
Description copied from interface: UIExtension
Enables or disables the given feature. This way a feature can be disabled as long as it can generate invalid mark-up.

Parameters:
feature - The feature to enable or disable.
enabled - true if the specified feature should be enabled.