//# 0 errors, 104 messages
//#
/*
    //#MenuTab.java:1:1: class: org.apache.roller.weblogger.ui.core.util.menu.MenuTab
    //#MenuTab.java:1:1: method: org.apache.roller.weblogger.ui.core.util.menu.MenuTab.org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init
 * Licensed to the Apache Software Foundation (ASF) under one or more
 *  contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

package org.apache.roller.weblogger.ui.core.util.menu;

import java.util.ArrayList;
import java.util.List;


/**
 * Tab in a Menu.
 */
public class MenuTab {
    //#MenuTab.java:28: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.org.apache.roller.weblogger.ui.core.util.menu.MenuTab()
    //#input(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this
    //#output(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): new ArrayList(MenuTab#1) num objects
    //#output(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.action
    //#output(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.items
    //#output(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.key
    //#output(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.selected
    //#new obj(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): new ArrayList(MenuTab#1)
    //#post(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.action == null
    //#post(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.key == null
    //#post(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.items == &new ArrayList(MenuTab#1)
    //#post(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): this.selected == 0
    //#post(void org.apache.roller.weblogger.ui.core.util.menu.MenuTab()): new ArrayList(MenuTab#1) num objects == 1
    
    private String key = null;
    private String action = null;
    private boolean selected = false;
    private List items = new ArrayList();
    //#MenuTab.java:33: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.org.apache.roller.weblogger.ui.core.util.menu.MenuTab()
    
    
    public void addItem(MenuTabItem item) {
        this.items.add(item);
    //#MenuTab.java:37: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.addItem(MenuTabItem)
    //#input(void addItem(MenuTabItem)): item
    //#input(void addItem(MenuTabItem)): this
    //#input(void addItem(MenuTabItem)): this.items
    //#pre[3] (void addItem(MenuTabItem)): this.items != null
    }
    //#MenuTab.java:38: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.addItem(MenuTabItem)
    
    
    public String getKey() {
        return key;
    //#MenuTab.java:42: method: String org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getKey()
    //#input(String getKey()): this
    //#input(String getKey()): this.key
    //#output(String getKey()): return_value
    //#pre[2] (String getKey()): init'ed(this.key)
    //#post(String getKey()): return_value == this.key
    //#post(String getKey()): init'ed(return_value)
    //#MenuTab.java:42: end of method: String org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getKey()
    }

    public void setKey(String key) {
        this.key = key;
    //#MenuTab.java:46: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setKey(String)
    //#input(void setKey(String)): key
    //#input(void setKey(String)): this
    //#output(void setKey(String)): this.key
    //#post(void setKey(String)): this.key == key
    //#post(void setKey(String)): init'ed(this.key)
    }
    //#MenuTab.java:47: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setKey(String)

    public String getAction() {
        return action;
    //#MenuTab.java:50: method: String org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getAction()
    //#input(String getAction()): this
    //#input(String getAction()): this.action
    //#output(String getAction()): return_value
    //#pre[2] (String getAction()): init'ed(this.action)
    //#post(String getAction()): return_value == this.action
    //#post(String getAction()): init'ed(return_value)
    //#MenuTab.java:50: end of method: String org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getAction()
    }

    public void setAction(String url) {
        this.action = url;
    //#MenuTab.java:54: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setAction(String)
    //#input(void setAction(String)): this
    //#input(void setAction(String)): url
    //#output(void setAction(String)): this.action
    //#post(void setAction(String)): this.action == url
    //#post(void setAction(String)): init'ed(this.action)
    }
    //#MenuTab.java:55: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setAction(String)

    public boolean isSelected() {
        return selected;
    //#MenuTab.java:58: method: bool org.apache.roller.weblogger.ui.core.util.menu.MenuTab.isSelected()
    //#input(bool isSelected()): this
    //#input(bool isSelected()): this.selected
    //#output(bool isSelected()): return_value
    //#pre[2] (bool isSelected()): init'ed(this.selected)
    //#post(bool isSelected()): return_value == this.selected
    //#post(bool isSelected()): init'ed(return_value)
    //#MenuTab.java:58: end of method: bool org.apache.roller.weblogger.ui.core.util.menu.MenuTab.isSelected()
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    //#MenuTab.java:62: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setSelected(bool)
    //#input(void setSelected(bool)): selected
    //#input(void setSelected(bool)): this
    //#output(void setSelected(bool)): this.selected
    //#post(void setSelected(bool)): this.selected == selected
    //#post(void setSelected(bool)): init'ed(this.selected)
    }
    //#MenuTab.java:63: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setSelected(bool)
    
    public List getItems() {
        return items;
    //#MenuTab.java:66: method: List org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getItems()
    //#input(List getItems()): this
    //#input(List getItems()): this.items
    //#output(List getItems()): return_value
    //#pre[2] (List getItems()): init'ed(this.items)
    //#post(List getItems()): return_value == this.items
    //#post(List getItems()): init'ed(return_value)
    //#MenuTab.java:66: end of method: List org.apache.roller.weblogger.ui.core.util.menu.MenuTab.getItems()
    }

    public void setItems(List items) {
        this.items = items;
    //#MenuTab.java:70: method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setItems(List)
    //#input(void setItems(List)): items
    //#input(void setItems(List)): this
    //#output(void setItems(List)): this.items
    //#post(void setItems(List)): this.items == items
    //#post(void setItems(List)): init'ed(this.items)
    }
    //#MenuTab.java:71: end of method: void org.apache.roller.weblogger.ui.core.util.menu.MenuTab.setItems(List)
    
}
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/core/util/menu/MenuTab]
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.addItem(Lorg/apache/roller/weblogger/ui/core/util/menu/MenuTabItem;)V
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getAction()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getItems()Ljava/util/List;
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getKey()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.isSelected()Z
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setAction(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setItems(Ljava/util/List;)V
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setKey(Ljava/lang/String;)V
    //#output(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setSelected(Z)V
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/core/util/menu/MenuTab] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.addItem(Lorg/apache/roller/weblogger/ui/core/util/menu/MenuTabItem;)V == &addItem
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getAction()Ljava/lang/String; == &getAction
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getItems()Ljava/util/List; == &getItems
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.getKey()Ljava/lang/String; == &getKey
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.isSelected()Z == &isSelected
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setAction(Ljava/lang/String;)V == &setAction
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setItems(Ljava/util/List;)V == &setItems
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setKey(Ljava/lang/String;)V == &setKey
    //#post(org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init): __Dispatch_Table.setSelected(Z)V == &setSelected
    //#MenuTab.java:: end of method: org.apache.roller.weblogger.ui.core.util.menu.MenuTab.org.apache.roller.weblogger.ui.core.util.menu.MenuTab__static_init
    //#MenuTab.java:: end of class: org.apache.roller.weblogger.ui.core.util.menu.MenuTab
