Rev 1503 | Blame | Compare with Previous | Last modification | View Log | RSS feed
package org.tela_botanica.del.client.composants.motsclesimages.motcle;
import org.tela_botanica.del.client.i18n.I18n;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.HasBlurHandlers;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.HasFocusHandlers;
import com.google.gwt.event.dom.client.HasMouseOutHandlers;
import com.google.gwt.event.dom.client.HasMouseOverHandlers;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FocusPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.InlineHTML;
import com.google.gwt.user.client.ui.Panel;
import com.google.gwt.user.client.ui.Widget;
public class MotCleVue extends Composite implements MotClePresenteur.Vue {
@UiField
public InlineHTML motCle;
@UiField
public FocusPanel suppressionMotCle;
@UiField
public FocusPanel conteneurMotCle;
interface MyUiBinder extends UiBinder<Widget, MotCleVue> {
}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);
public MotCleVue(String mot) {
initWidget(uiBinder.createAndBindUi(this));
motCle.setText(mot);
suppressionMotCle.setTitle(I18n.getVocabulary().indiceSupprimerMotCle());
}
@Override
public HasClickHandlers getZoneSuppressionMotCle() {
return suppressionMotCle;
}
@Override
public void afficherZoneSuppression() {
suppressionMotCle.removeStyleName("invisible");
}
@Override
public void cacherZoneSuppression() {
suppressionMotCle.addStyleName("invisible");
}
@Override
public HasMouseOverHandlers getZoneMotCleMouseHover() {
return conteneurMotCle;
}
@Override
public HasMouseOutHandlers getZoneMotCleMouseOut() {
return conteneurMotCle;
}
}