public abstract class AbstractXULWidget extends AbstractXULElement implements XULWidget
| Modifier and Type | Field and Description |
|---|---|
protected short |
align
The alignment.
|
protected java.util.Map<java.lang.String,FunctionBinding> |
bindings |
comp, document, eltALIGN, CHECKED, CLASS, COLS, CURPOS, CURRENTINDEX, CURRENTITEM, DECIMALPLACES, DIALOGTYPE, DIRECTORY, DISABLED, DOCUMENT, EDITABLE, EDITING_COLUMN, EDITING_ROW, EXTENSIONS, HEIGHT, HIDDEN, HORIZONTAL, ID, IMAGE, INCREMENT, ITEMCOUNT, LABEL, LEFT, MAX, MAX_HEIGHT, MAX_WIDTH, MAXPOS, MIN, MIN_HEIGHT, MIN_WIDTH, MODE, MULTILINE, ORIENT, PAGEINCREMENT, RESIZABLE, ROWS, SCREENX, SCREENY, SELECTED, SELECTEDINDEX, SRC, STYLE, TITLE, TOOLTIPTEXT, TOP, TYPE, VALUE, VERTICAL, VIEW, WIDTH, WINDOW, WRAP| Constructor and Description |
|---|
AbstractXULWidget() |
AbstractXULWidget(XULDocument document,
org.w3c.dom.Element elt) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
bindAnyAction(java.lang.String actionType,
java.lang.String command)
Bind any kind of action.
|
void |
bindChangeAction(java.lang.String command)
Bind an "onchange" action.
|
protected void |
bindChangeActionImpl(java.lang.String command)
Bind an "onchange" action without delegating to
bindCommandAction(java.lang.String). |
void |
bindCommandAction(java.lang.String command)
Bind an "oncommand" action.
|
void |
bindMouseOutAction(java.lang.String command)
Bind an "onmouseover" action.
|
void |
bindMouseOverAction(java.lang.String command)
Bind an "onmouseover" action.
|
void |
bindSelectAction(java.lang.String command)
Bind an "onmouseover" action.
|
java.lang.Object |
get(java.lang.String property)
Return the value of a property.
|
short |
getAlignment()
Return the alignment.
|
XULDocument |
getDocument()
Return the document.
|
FunctionBinding |
getFunctionBinding(java.lang.String actionType)
Return the function bound to the widget action.
|
java.lang.String |
getOnChange()
Return the onchange function name.
|
java.lang.String |
getOnCommand()
Return the oncommand function name.
|
java.lang.String |
getOnMouseOut()
Return the onmouseout function name.
|
java.lang.String |
getOnMouseOver()
Return the onmouseover function name.
|
java.lang.String |
getOnSelect()
Return the onselect function name.
|
java.lang.String |
getStyle()
Return the style attribute for the widget.
|
java.util.Set<CSSSelector> |
getStyleClasses()
Return the style classes for the widget.
|
java.lang.String |
getWidgetType()
Return the widget type.
|
void |
jsSet_class(java.lang.String value) |
void |
jsSet_height(java.lang.String value) |
void |
jsSet_hidden(java.lang.String value) |
void |
jsSet_left(java.lang.String value) |
void |
jsSet_style(java.lang.String value) |
void |
jsSet_tooltiptext(java.lang.String value) |
void |
jsSet_top(java.lang.String value) |
void |
jsSet_width(java.lang.String value) |
protected void |
reapplyStyle() |
protected void |
reapplyStyle(short pseudoClass) |
protected void |
resetMaximumSize(java.awt.Dimension d)
Reset the maximum size of the widget component.
|
protected void |
resetMinimumSize(java.awt.Dimension d)
Reset the minimum size of the widget component.
|
protected void |
resetPosition(int left,
int top)
Reset the position of the widget component.
|
protected void |
resetSize(int width,
int height)
Reset the size of the widget component.
|
void |
set(java.lang.String property,
java.lang.String value)
Set an attribute value for this widget as a String.
|
void |
setComponent(javax.swing.JComponent comp) |
void |
setFunctionBinding(java.lang.String actionType,
FunctionBinding binding)
Set a binding to a function.
|
void |
setStyle(java.lang.String style)
Set the style attribute for the widget.
|
void |
setStyleClasses(java.util.Set<CSSSelector> styleClasses)
Set the style classes for the widget.
|
void |
setToolTipText(java.lang.String tooltiptext)
Set the tooltip text when encountering the tooltip attribute.
|
protected XULCommandEvent |
wrapActionEvent(java.awt.event.ActionEvent evt)
Wrap an AWT ActionEvent.
|
protected XULAdjustmentEvent |
wrapAdjustmentEvent(java.awt.event.AdjustmentEvent evt)
Wrap an AWT AdjustmentEvent.
|
protected XULChangeEvent |
wrapChangeEvent(java.awt.event.ActionEvent evt)
Wrap an AWT ActionEvent.
|
protected XULChangeEvent |
wrapChangeEvent(javax.swing.event.ChangeEvent evt)
Wrap an AWT ChangeEvent.
|
protected XULChangeEvent |
wrapChangeEvent(XULTreeCell cell,
javax.swing.event.TableModelEvent evt)
Wrap a TableModelEvent.
|
protected XULChangeEvent |
wrapChangeEvent(XULTreeItem item,
javax.swing.event.TableModelEvent evt)
Wrap a TableModelEvent.
|
protected XULChangeEvent |
wrapDocumentEvent(javax.swing.JComponent source,
javax.swing.event.DocumentEvent evt)
Wrap a DocumentEvent.
|
protected XULHoverEvent |
wrapHoverEvent(java.awt.event.MouseEvent evt)
Wrap an AWT MouseEntered.
|
protected XULExitEvent |
wrapOutEvent(java.awt.event.MouseEvent evt)
Wrap an AWT MouseEsit.
|
protected XULSelectedEvent |
wrapSelectedEvent(javax.swing.event.ListSelectionEvent evt)
Wrap an AWT ListSelectionEvent.
|
addAttribute, getAlignmentFromNode, getAttrValueAsBoolean, getAttrValueAsBoolean, getAttrValueAsDimension, getAttrValueAsDouble, getAttrValueAsIcon, getAttrValueAsInteger, getComponent, getElement, getIDclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyStyles, bindClickAction, bindLoadAction, canAddToHierarchy, cloneWidget, finishConstruction, getOnLoad, getParentElement, getPreferredSize, getSizedComponent, hasChildren, isEmptyContructionElementgetAttrValue, getComponent, getElement, getID, hasAttrprotected java.util.Map<java.lang.String,FunctionBinding> bindings
protected short align
public AbstractXULWidget()
public AbstractXULWidget(XULDocument document, org.w3c.dom.Element elt)
public short getAlignment()
getAlignment in interface XULWidgetpublic java.util.Set<CSSSelector> getStyleClasses()
getStyleClasses in interface XULWidgetpublic void setStyleClasses(java.util.Set<CSSSelector> styleClasses)
setStyleClasses in interface XULWidgetstyleClasses - the style classes for the widgetpublic java.lang.String getStyle()
public void setStyle(java.lang.String style)
public void setComponent(javax.swing.JComponent comp)
public XULDocument getDocument()
getDocument in interface XULElementgetDocument in class AbstractXULElementpublic void setFunctionBinding(java.lang.String actionType,
FunctionBinding binding)
setFunctionBinding in interface XULWidgetactionType - the action typebinding - the binding.public FunctionBinding getFunctionBinding(java.lang.String actionType)
XULWidgetgetFunctionBinding in interface XULWidgetactionType - the action typepublic java.lang.String getWidgetType()
getWidgetType in interface XULWidgetpublic java.lang.String getOnCommand()
getOnCommand in interface XULWidgetpublic java.lang.String getOnMouseOver()
getOnMouseOver in interface XULWidgetpublic java.lang.String getOnMouseOut()
getOnMouseOut in interface XULWidgetpublic java.lang.String getOnSelect()
getOnSelect in interface XULWidgetpublic java.lang.String getOnChange()
getOnChange in interface XULWidgetprotected void bindChangeActionImpl(java.lang.String command)
bindCommandAction(java.lang.String).command - the onchange contentpublic void bindCommandAction(java.lang.String command)
bindCommandAction in interface XULWidgetcommand - the onchange contentpublic void bindChangeAction(java.lang.String command)
bindChangeAction in interface XULWidgetcommand - the onchange contentpublic void bindMouseOverAction(java.lang.String command)
bindMouseOverAction in interface XULWidgetcommand - the onchange contentpublic void bindSelectAction(java.lang.String command)
bindSelectAction in interface XULWidgetcommand - the onchange contentpublic void bindMouseOutAction(java.lang.String command)
bindMouseOutAction in interface XULWidgetcommand - the onchange contentprotected void bindAnyAction(java.lang.String actionType,
java.lang.String command)
actionType - the action typecommand - the actionprotected XULChangeEvent wrapDocumentEvent(javax.swing.JComponent source, javax.swing.event.DocumentEvent evt)
source - the sourceevt - the DocumentEventtprotected XULCommandEvent wrapActionEvent(java.awt.event.ActionEvent evt)
evt - the AWT ActionEventprotected XULSelectedEvent wrapSelectedEvent(javax.swing.event.ListSelectionEvent evt)
evt - the AWT ListSelectionEventprotected XULChangeEvent wrapChangeEvent(java.awt.event.ActionEvent evt)
evt - the AWT ChangeEventprotected XULChangeEvent wrapChangeEvent(XULTreeItem item, javax.swing.event.TableModelEvent evt)
item - the tree itemevt - the TableModelEventprotected XULChangeEvent wrapChangeEvent(XULTreeCell cell, javax.swing.event.TableModelEvent evt)
cell - the tree cellevt - the TableModelEventprotected XULChangeEvent wrapChangeEvent(javax.swing.event.ChangeEvent evt)
evt - the AWT ChangeEventprotected XULHoverEvent wrapHoverEvent(java.awt.event.MouseEvent evt)
evt - the AWT MouseEventprotected XULExitEvent wrapOutEvent(java.awt.event.MouseEvent evt)
evt - the AWT MouseEventprotected XULAdjustmentEvent wrapAdjustmentEvent(java.awt.event.AdjustmentEvent evt)
evt - the AWT AdjustmentEventpublic void setToolTipText(java.lang.String tooltiptext)
setToolTipText in interface XULWidgettooltiptext - the tooltip textpublic java.lang.Object get(java.lang.String property)
get in interface XULElementget in class AbstractXULElementproperty - the property namepublic void set(java.lang.String property,
java.lang.String value)
set in interface XULElementproperty - the property namevalue - the property valueprotected void resetSize(int width,
int height)
width - the widhtheight - the heightprotected void resetMaximumSize(java.awt.Dimension d)
d - the dimensionprotected void resetMinimumSize(java.awt.Dimension d)
d - the dimensionprotected void resetPosition(int left,
int top)
left - the left positiontop - the top positionpublic void jsSet_tooltiptext(java.lang.String value)
public void jsSet_class(java.lang.String value)
protected void reapplyStyle(short pseudoClass)
protected void reapplyStyle()
public void jsSet_style(java.lang.String value)
public void jsSet_width(java.lang.String value)
public void jsSet_height(java.lang.String value)
public void jsSet_hidden(java.lang.String value)
public void jsSet_left(java.lang.String value)
public void jsSet_top(java.lang.String value)
Copyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence