001package org.gwtbootstrap3.extras.summernote.client.ui.base;
002
003/*
004 * #%L
005 * GwtBootstrap3
006 * %%
007 * Copyright (C) 2015 GwtBootstrap3
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 * This enum represents Summernote toolbar buttons.
025 *
026 * @author Xiaodong SUN
027 */
028public enum ToolbarButton {
029
030    /* Insert */
031    PICTURE("picture"),
032    LINK("link"),
033    VIDEO("video"),
034    TABLE("table"),
035    HR("hr"),
036
037    /* Font Style */
038    FONT_NAME("fontname"),
039    FONT_SIZE("fontsize"),
040    COLOR("color"),
041    BOLD("bold"),
042    ITALIC("italic"),
043    UNDERLINE("underline"),
044    STRIKETHROUGH("strikethrough"),
045    SUPER_SCRIPT("superscript"),
046    SUB_SCRIPT("subscript"),
047    CLEAR("clear"),
048
049    /* Paragraph Style */
050    STYLE("style"),
051    OL("ol"),
052    UL("ul"),
053    PARAGRAPH("paragraph"),
054    HEIGHT("height"),
055
056    /* Misc */
057    FULL_SCREEN("fullscreen"),
058    CODE_VIEW("codeview"),
059    UNDO("undo"),
060    REDO("redo"),
061    HELP("help"),
062    ;
063
064    private final String id;
065
066    private ToolbarButton(String id) {
067        this.id = id;
068    }
069
070    /**
071     *
072     * @return
073     */
074    public String getId() {
075        return id;
076    }
077
078}