|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectqx.core.Object
qx.core.Target
qx.ui.core.Widget
qx.ui.core.Parent
qx.ui.layout.BoxLayout
qx.ui.layout.HorizontalBoxLayout
qx.ui.menu.Button
public class Button
Field Summary |
---|
Fields inherited from class qx.ui.core.Widget |
---|
AUTO |
Constructor Summary | |
---|---|
Button()
|
|
Button(java.lang.Object vLabel)
|
|
Button(java.lang.Object vLabel,
java.lang.Object vIcon)
|
|
Button(java.lang.Object vLabel,
java.lang.Object vIcon,
java.lang.Object vCommand)
|
|
Button(java.lang.Object vLabel,
java.lang.Object vIcon,
java.lang.Object vCommand,
java.lang.Object vMenu)
|
Method Summary | |
---|---|
void |
_applyCommand(java.lang.Object value,
java.lang.Object old)
|
void |
_applyIcon(java.lang.Object value,
java.lang.Object old)
|
void |
_applyLabel(java.lang.Object value,
java.lang.Object old)
|
void |
_applyMenu(java.lang.Object value,
java.lang.Object old)
|
BoxLayout |
_createLayoutImpl()
This creates an new instance of the layout impl this widget uses |
void |
_onmouseup(MouseEvent e)
Callback method for “mouseUp” event |
Image |
getArrowObject()
Accessor method for the button arrow |
java.lang.String |
getIcon()
Returns the (computed) value of the property icon . |
Image |
getIconObject()
Accessor method for the button icon |
java.lang.Object |
getLabel()
Returns the (computed) value of the property label . |
Label |
getLabelObject()
Accessor method for the button label |
Menu |
getMenu()
Returns the (computed) value of the property menu . |
java.lang.Object |
getParentMenu()
Accessor method for the parent menu (if available) |
Label |
getShortcutObject()
Accessor method for the button shortcut |
boolean |
hasIcon()
Returns true if the button instance has an icon |
boolean |
hasLabel()
Returns true if the button instance has a label |
boolean |
hasMenu()
Returns true if the button instance has a submenu |
boolean |
hasShortcut()
Returns true if the button instance has a shortcut |
void |
initIcon(java.lang.String arg)
Calls the apply method and dispatches the change event of the property icon
with the default value defined by the class developer. |
void |
initLabel(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property label
with the default value defined by the class developer. |
void |
initMenu(Menu arg)
Calls the apply method and dispatches the change event of the property menu
with the default value defined by the class developer. |
void |
resetIcon()
Resets the user value of the property icon . |
void |
resetLabel()
Resets the user value of the property label . |
void |
resetMenu()
Resets the user value of the property menu . |
void |
setIcon(java.lang.String arg)
Sets the user value of the property icon . |
void |
setLabel(java.lang.Object arg)
Sets the user value of the property label . |
void |
setMenu(Menu arg)
Sets the user value of the property menu . |
Methods inherited from class qx.core.Target |
---|
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener |
Methods inherited from class qx.core.Object |
---|
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_ |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Button()
public Button(java.lang.Object vLabel)
public Button(java.lang.Object vLabel, java.lang.Object vIcon)
public Button(java.lang.Object vLabel, java.lang.Object vIcon, java.lang.Object vCommand)
public Button(java.lang.Object vLabel, java.lang.Object vIcon, java.lang.Object vCommand, java.lang.Object vMenu)
Method Detail |
---|
public void _applyCommand(java.lang.Object value, java.lang.Object old)
public void _applyIcon(java.lang.Object value, java.lang.Object old)
public void _applyLabel(java.lang.Object value, java.lang.Object old)
public void _applyMenu(java.lang.Object value, java.lang.Object old)
public BoxLayout _createLayoutImpl()
This creates an new instance of the layout impl this widget uses
_createLayoutImpl
in class BoxLayout
public void _onmouseup(MouseEvent e)
Callback method for “mouseUp” event
Simply calls the Widget.execute()
method
public Image getArrowObject()
Accessor method for the button arrow
public java.lang.String getIcon()
Returns the (computed) value of the property icon
.
For further details take a look at the property definition: icon
.
public Image getIconObject()
Accessor method for the button icon
public java.lang.Object getLabel()
Returns the (computed) value of the property label
.
For further details take a look at the property definition: label
.
public Label getLabelObject()
Accessor method for the button label
public Menu getMenu()
Returns the (computed) value of the property menu
.
For further details take a look at the property definition: menu
.
public java.lang.Object getParentMenu()
Accessor method for the parent menu (if available)
public Label getShortcutObject()
Accessor method for the button shortcut
public boolean hasIcon()
Returns true
if the button instance has an icon
public boolean hasLabel()
Returns true
if the button instance has a label
public boolean hasMenu()
Returns true
if the button instance has a submenu
public boolean hasShortcut()
Returns true
if the button instance has a shortcut
public void initIcon(java.lang.String arg)
Calls the apply method and dispatches the change event of the property icon
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: icon
.
public void initLabel(java.lang.Object arg)
Calls the apply method and dispatches the change event of the property label
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: label
.
public void initMenu(Menu arg)
Calls the apply method and dispatches the change event of the property menu
with the default value defined by the class developer. This function can
only be called from the constructor of a class.
For further details take a look at the property definition: menu
.
public void resetIcon()
Resets the user value of the property icon
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: icon
.
public void resetLabel()
Resets the user value of the property label
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: label
.
public void resetMenu()
Resets the user value of the property menu
.
The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.
For further details take a look at the property definition: menu
.
public void setIcon(java.lang.String arg)
Sets the user value of the property icon
.
For further details take a look at the property definition: icon
.
public void setLabel(java.lang.Object arg)
Sets the user value of the property label
.
For further details take a look at the property definition: label
.
public void setMenu(Menu arg)
Sets the user value of the property menu
.
For further details take a look at the property definition: menu
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |