addComponent(buttonText);
addComponent(buttonTextIcon);
addComponent(buttonTextIconAlt);
NativeButton nativeButtonText = new NativeButton("Only text");
NativeButton nativeButtonTextIcon = new NativeButton("Text icon");
nativeButtonTextIcon.setIcon(new ThemeResource(
"../runo/icons/64/ok.png"));
NativeButton nativeButtonTextIconAlt = new NativeButton("Text icon alt");
nativeButtonTextIconAlt.setIcon(new ThemeResource(
"../runo/icons/64/cancel.png"));
nativeButtonTextIconAlt.setIconAlternateText(INITIAL_ALTERNATE_TEXT);
nativeButtonText.addClickListener(this);
nativeButtonTextIcon.addClickListener(this);
nativeButtonTextIconAlt.addClickListener(this);
nativeButtonText.setId(NATIVE_BUTTON_TEXT);
nativeButtonTextIcon.setId(NATIVE_BUTTON_TEXT_ICON);
nativeButtonTextIconAlt.setId(NATIVE_BUTTON_TEXT_ICON_ALT);
addComponent(nativeButtonText);
addComponent(nativeButtonTextIcon);
addComponent(nativeButtonTextIconAlt);
}