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