public interface XULWidget extends XULElement
| Modifier and Type | Method and Description |
|---|---|
default boolean |
applyStyles(CSSStyles.Rules rules)
Apply the styles on the widget.
|
default void |
bindChangeAction(java.lang.String command)
Bind an "oncommand" action.
|
default void |
bindClickAction(java.lang.String command)
Bind an "onclick" action.
|
default void |
bindCommandAction(java.lang.String command)
Bind an "oncommand" action.
|
default void |
bindLoadAction(java.lang.String command)
Bind an "onload" action.
|
default void |
bindMouseOutAction(java.lang.String command)
Bind an "onmouseout" action.
|
default void |
bindMouseOverAction(java.lang.String command)
Bind an "onmouseover" action.
|
default void |
bindSelectAction(java.lang.String command)
Bind an "onselect" action.
|
default boolean |
canAddToHierarchy()
Return true if the widget can be added to to swing hierarchy.
|
default XULWidget |
cloneWidget()
Clone the widget.
|
default void |
finishConstruction()
Finish the construction of the widget.
|
default short |
getAlignment()
Return the alignment.
|
default FunctionBinding |
getFunctionBinding(java.lang.String actionType)
Return the function bound to the widget action.
|
default java.lang.String |
getOnChange()
Return the onchange function name.
|
default java.lang.String |
getOnCommand()
Return the oncommand function name.
|
default java.lang.String |
getOnLoad()
Return the onload function name.
|
default java.lang.String |
getOnMouseOut()
Return the onmouseout function name.
|
default java.lang.String |
getOnMouseOver()
Return the onmouseover function name.
|
default java.lang.String |
getOnSelect()
Return the onselect function name.
|
default org.w3c.dom.Element |
getParentElement()
Return the effective parent element.
|
default java.awt.Dimension |
getPreferredSize()
Return the preferred size of the widget.
|
default javax.swing.JComponent |
getSizedComponent()
Return the associated Swing component which must be used foer the
getPreferredSize() method. |
default java.lang.String |
getStyle()
Return the style attribute for the widget.
|
default java.util.Set<CSSSelector> |
getStyleClasses()
Return the style classes for the widget.
|
java.lang.String |
getWidgetType()
Return the widget type.
|
default boolean |
hasChildren()
Return true if the widget has children.
|
default boolean |
isEmptyContructionElement()
Return true if the widget is an empty construction element.
|
default void |
setFunctionBinding(java.lang.String actionType,
FunctionBinding binding)
Set a binding to a function.
|
default void |
setStyle(java.lang.String style)
Set the style attribute for the widget.
|
default void |
setStyleClasses(java.util.Set<CSSSelector> styleClasses)
Set the style classes for the widget.
|
default void |
setToolTipText(java.lang.String tooltiptext)
Set the tooltip text when encountering the tooltip attribute.
|
get, getAttrValue, getComponent, getDocument, getElement, getID, hasAttr, setjava.lang.String getWidgetType()
default javax.swing.JComponent getSizedComponent()
getPreferredSize() method.default boolean canAddToHierarchy()
default void finishConstruction()
default XULWidget cloneWidget()
default java.awt.Dimension getPreferredSize()
default org.w3c.dom.Element getParentElement()
default boolean isEmptyContructionElement()
default boolean hasChildren()
default short getAlignment()
default void setFunctionBinding(java.lang.String actionType,
FunctionBinding binding)
actionType - the action typebinding - the binding.default FunctionBinding getFunctionBinding(java.lang.String actionType)
actionType - the action typedefault java.util.Set<CSSSelector> getStyleClasses()
default void setStyleClasses(java.util.Set<CSSSelector> styleClasses)
styleClasses - the style classes for the widgetdefault java.lang.String getStyle()
default void setStyle(java.lang.String style)
style - the style attribute for the widgetdefault void setToolTipText(java.lang.String tooltiptext)
tooltiptext - the tooltip textdefault void bindCommandAction(java.lang.String command)
button.bindCommandAction("clicked()");
command - the onchange contentdefault void bindMouseOverAction(java.lang.String command)
label.bindMouseOverAction("hover()");
command - the onmouseover contentdefault void bindMouseOutAction(java.lang.String command)
label.bindMouseOutAction("exit()");
command - the onmouseover contentdefault void bindSelectAction(java.lang.String command)
lsitbox.bindSelectAction("select()");
command - the onmouseover contentdefault void bindChangeAction(java.lang.String command)
scale.bindChangeAction("moved()");
command - the onchange contentdefault void bindClickAction(java.lang.String command)
button.bindClickAction("clicked()");
command - the onchange contentdefault void bindLoadAction(java.lang.String command)
window.bindLoadAction("loaded()");
command - the onload contentdefault java.lang.String getOnCommand()
default java.lang.String getOnMouseOver()
default java.lang.String getOnMouseOut()
default java.lang.String getOnSelect()
default java.lang.String getOnChange()
default java.lang.String getOnLoad()
default boolean applyStyles(CSSStyles.Rules rules)
rules - the CSS rules applied to this widgetCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence