com.xpn.xwiki.wysiwyg.client.plugin.internal
Class FocusWidgetUIExtension

java.lang.Object
  extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.AbstractUIExtension
      extended by com.xpn.xwiki.wysiwyg.client.plugin.internal.FocusWidgetUIExtension
All Implemented Interfaces:
UIExtension

public class FocusWidgetUIExtension
extends AbstractUIExtension

Concrete implementation of the UIExtension interface. Each feature must have associated an user interface object derived from FocusWidget.


Constructor Summary
FocusWidgetUIExtension(java.lang.String role)
           
 
Method Summary
 boolean isEnabled(java.lang.String feature)
          Tells if the given feature is enabled in the current context.
 void setEnabled(java.lang.String feature, boolean enabled)
          Enables or disables the given feature.
 
Methods inherited from class com.xpn.xwiki.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

FocusWidgetUIExtension

public FocusWidgetUIExtension(java.lang.String role)
Method Detail

isEnabled

public boolean isEnabled(java.lang.String feature)
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:
UIExtension.isEnabled(String)

setEnabled

public void setEnabled(java.lang.String feature,
                       boolean enabled)
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.
See Also:
UIExtension.setEnabled(String, boolean)


Copyright © 2004-2008 XWiki. All Rights Reserved.