001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.juneau.console.widgets; 018 019/** 020 * How a header/menu action behaves when the user activates it. 021 * 022 * <ul> 023 * <li class='jc'>{@link #LINK} — navigate to a same-origin {@code href}. 024 * <li class='jc'>{@link #SAFE} — dispatch a format-validated client event token; the toolkit interprets none 025 * (the host app listens and acts). 026 * <li class='jc'>{@link #MENU} — open an attached single-level menu. The menu manager has not shipped 027 * yet; until it lands, the trigger is disabled and the list is omitted (no fake disclosure). 028 * </ul> 029 * 030 * @since 10.0.0 031 */ 032public enum Behavior { 033 034 /** Navigate to a same-origin {@code href}. */ 035 LINK, 036 037 /** Dispatch a format-validated client-safe event token (host-interpreted). */ 038 SAFE, 039 040 /** Open an attached single-level menu (menu manager has not shipped yet). */ 041 MENU 042}