}, ClickEvent.getType());
}});
}
private MenuItem getFontChooserMenuItem() {
if(fontChooserMenuItem == null) {
MenuBar fontChooser = new MenuBar(true);
fontChooserMenuItem = new MenuItem("Font", fontChooser);
fontChooser.addItem("<span style='font-family:\"Arial\"'>Arial", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Arial Black\"'>Arial Black", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial Black, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Arial Narrow\"'>Arial Narrow", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Arial Narrow, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Calibri\"'>Calibri", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Calibri, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Comic Sans MS\"'>Comic Sans MS", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Comic Sans MS, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Consolas\"'>Consolas", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Consolas, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Corsiva\"'>Corsiva", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Corsiva, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Courier New\"'>Courier New", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Courier New, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Droid Sans\"'>Droid Sans", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Droid Sans, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Droid Serif\"'>Droid Serif", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Droid Serif, serif");
}
});
fontChooser.addItem("<span style='font-family:\"Garamond\"'>Garamond", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Garamond, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Georgia\"'>Georgia", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Georgia, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Tahoma\"'>Tahoma", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Tahoma, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Times New Roman\"'>Times New Roman", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Times New Roman, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Trebuchet MS\"'>Trebuchet MS", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Trebuchet MS, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Ubuntu\"'>Ubuntu", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Ubuntu, sans-serif");
}
});
fontChooser.addItem("<span style='font-family:\"Verdana\"'>Verdana", true, new Command(){
@Override
public void execute() {
DOM.setStyleAttribute(invokingElement, "fontFamily", "Verdana, sans-serif");
}
});