use of com.extjs.gxt.ui.client.widget.menu.ColorMenu in project activityinfo by bedatadriven.
the class ColorField method onTriggerClick.
@Override
protected void onTriggerClick(ComponentEvent ce) {
super.onTriggerClick(ce);
menu = new ColorMenu() {
@Override
protected void onClick(ComponentEvent ce) {
// TODO Auto-generated method stub
}
};
menu.getColorPalette().addListener(Events.BeforeSelect, new Listener<ColorPaletteEvent>() {
@Override
public void handleEvent(ColorPaletteEvent ce) {
setValue(ce.getColor());
menu.hide();
}
});
menu.show(getElement(), "l");
}
use of com.extjs.gxt.ui.client.widget.menu.ColorMenu in project activityinfo by bedatadriven.
the class ColorField method onTriggerClick.
@Override
protected void onTriggerClick(ComponentEvent ce) {
super.onTriggerClick(ce);
menu = new ColorMenu() {
@Override
protected void onClick(ComponentEvent ce) {
// TODO Auto-generated method stub
}
};
menu.getColorPalette().addListener(Events.BeforeSelect, new Listener<ColorPaletteEvent>() {
@Override
public void handleEvent(ColorPaletteEvent ce) {
setValue(ce.getColor());
menu.hide();
}
});
menu.show(getElement(), "l");
}
Aggregations