/* * SmartGWT (GWT for SmartClient) * Copyright 2008 and beyond, Isomorphic Software, Inc. * * SmartGWT is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License version 3 * as published by the Free Software Foundation. SmartGWT is also * available under typical commercial license terms - see * http://smartclient.com/license * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. */ package org.vaadin.smartgwt.server.types; /** * <code>ControlNames</code> are strings used to specify which UI controls should appear in the editor toolbar.<br> */ public enum ControlName implements ValueEnum { /** * A button to make the current selection bold. */ BOLDSELECTION("boldSelection"), /** * A button to make the current selection italic. */ ITALICSELECTION("italicSelection"), /** * A button to make the current selection underlined. */ UNDERLINESELECTION("underlineSelection"), /** * A select item allowing the user to change the font of the current text selection. */ FONTSELECTOR("fontSelector"), /** * A select item allowing the user to change the font size of the current text selection. */ FONTSIZESELECTOR("fontSizeSelector"), /** * A button to left-align the selected text. */ ALIGNLEFT("alignLeft"), /** * A button to right-align the selected text. */ ALIGNRIGHT("alignRight"), /** * A button to center the selected text */ ALIGNCENTER("alignCenter"), /** * A button to justify the selected line of text. */ JUSTIFY("justify"), /** * A color-picker allowing the user to set the text color */ COLOR("color"), /** * A color picker allowing the user to set the text background color */ BACKGROUNDCOLOR("backgroundColor"); private String value; ControlName(String value) { this.value = value; } @Override public String getValue() { return this.value; } }