001package gwt.material.design.addins.client.richeditor.base.constants;
002
003/*
004 * #%L
005 * GwtMaterial
006 * %%
007 * Copyright (C) 2015 - 2016 GwtMaterialDesign
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023
024/**
025 * This enum represents the RichEditor Toolbar buttons
026 * @author kevzlou7979
027 */
028public enum ToolbarButton {
029
030    /* Style Options */
031    STYLE("style"),
032    BOLD("bold"),
033    ITALIC("italic"),
034    UNDERLINE("underline"),
035    STRIKETHROUGH("strikethrough"),
036    CLEAR("clear"),
037    SUPERSCRIPT("superscript"),
038    SUBSCRIPT("subscript"),
039
040    /* Font Options */
041    FONT_SIZE("fontsize"),
042    FONT_NAME("fontname"),
043
044    /* Color Options */
045    COLOR("color"),
046
047    /* Undo Options */
048    UNDO("undo"),
049    REDO("redo"),
050    HELP("help"),
051
052    /* CKMedia */
053    CK_IMAGE_UPLOAD("ckImageUploader"),
054    CK_IMAGE_VIDEO("ckVideoEmbeeder"),
055
056    /* Misc Options */
057    LINK("link"),
058    PICTURE("picture"),
059    TABLE("table"),
060    HR("hr"),
061    CODE_VIEW("codeview"),
062    FULLSCREEN("fullscreen"),
063
064    /* Para Options */
065    UL("ul"),
066    OL("ol"),
067    PARAGRAPH("paragraph"),
068    LEFT("leftButton"),
069    CENTER("centerButton"),
070    RIGHT("rightButton"),
071    JUSTIFY("justifyButton"),
072    OUTDENT("outdentButton"),
073    INDENT("indentButton"),
074
075    /* Height Options */
076    LINE_HEIGHT("lineheight");
077
078    String id;
079
080    ToolbarButton(String id) {
081        this.id = id;
082    }
083
084    public String getId() {
085        return id;
086    }
087
088    public void setId(String id) {
089        this.id = id;
090    }
091}