public class Button extends SkinnableControl implements WidgetWithImage
Control de tipo "boton"
Tiene un texto caption.
Lo interesante es que utiliza el patrón strategy
Cuando el usuario presiona el botón, éste, delega el evento
a un objeto de tipo Action que el desarrollador debe/puede
configurar.
El Action deberá ser responsable de ejecutar el comportamiento
deseado de dominio y de controller/vista.
Por default tiene un NoopAction.configurations| Modifier and Type | Method and Description |
|---|---|
Binding<?,Button,ButtonBuilder> |
bindCaptionToProperty(String propertyName) |
<M> Binding<M,Button,ButtonBuilder> |
bindImageToProperty(String propertyName,
org.apache.commons.collections15.Transformer<M,org.uqbar.arena.graphics.Image> transformer) |
protected ButtonBuilder |
createBuilder(PanelBuilder container) |
Button |
disableOnError() |
protected String |
getCaption() |
Button |
onClick(Action onClick) |
Button |
setAsDefault() |
Button |
setCaption(String caption) |
configureSkineableBuilder, getFontSize, setBackground, setFontSize, setForegroundbackground, bindBackground, bindEnabled, bindEnabledToProperty, bindForeground, bindValue, bindValueToProperty, bindVisible, bindVisibleToProperty, enabled, foreground, setHeight, setWidth, tooltip, value, visibleaddBinding, addBinding, addConfiguration, appendYourselfTo, configure, getContainer, getContainerModelObject, nextCaption, showOn, toStringpublic Button(Container container)
protected String getCaption()
public Button setAsDefault()
public Button disableOnError()
public Binding<?,Button,ButtonBuilder> bindCaptionToProperty(String propertyName)
public <M> Binding<M,Button,ButtonBuilder> bindImageToProperty(String propertyName, org.apache.commons.collections15.Transformer<M,org.uqbar.arena.graphics.Image> transformer)
bindImageToProperty in interface WidgetWithImageprotected ButtonBuilder createBuilder(PanelBuilder container)
createBuilder in class WidgetCopyright © 2015 Uqbar Project. All rights reserved.