|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.xpn.xwiki.wysiwyg.client.plugin.internal.CompositeUIExtension
public class CompositeUIExtension
Aggregates many UIExtension objects that have the same role.
| Constructor Summary | |
|---|---|
CompositeUIExtension(java.lang.String role)
|
|
| Method Summary | |
|---|---|
void |
addUIExtension(UIExtension uie)
|
java.lang.String[] |
getFeatures()
Examples of features are: bold, justifyright and macro. |
java.lang.String |
getRole()
|
com.google.gwt.user.client.ui.UIObject |
getUIObject(java.lang.String feature)
It can be a button, a menu item, a label or any other UIObject-derived instance. |
boolean |
isEnabled(java.lang.String feature)
Tells if the given feature is enabled in the current context. |
void |
removeUIExtension(UIExtension uie)
|
void |
setEnabled(java.lang.String feature,
boolean enabled)
Enables or disables the given feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeUIExtension(java.lang.String role)
| Method Detail |
|---|
public java.lang.String[] getFeatures()
getFeatures in interface UIExtensionUIExtension.getFeatures()public java.lang.String getRole()
getRole in interface UIExtensionUIExtension.getRole()public com.google.gwt.user.client.ui.UIObject getUIObject(java.lang.String feature)
UIObject-derived instance.
getUIObject in interface UIExtensionfeature - One of the features provided by the editor's plug-ins and supported by the underlying text area.
UIExtension.getUIObject(String)public boolean isEnabled(java.lang.String feature)
isEnabled in interface UIExtensionfeature - The feature whose enabled state is queried.
true if the specified feature is enabled.UIExtension.isEnabled(String)
public void setEnabled(java.lang.String feature,
boolean enabled)
setEnabled in interface UIExtensionfeature - The feature to enable or disable.enabled - true if the specified feature should be enabled.UIExtension.setEnabled(String, boolean)public void addUIExtension(UIExtension uie)
public void removeUIExtension(UIExtension uie)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||