import java.awt.event.*;
import javax.swing.*;
import javax.swing.text.html.HTMLEditorKit;

/**
  The application's Table Menu.
  <br><br><a href="../source/TableMenu.java">View Source File</a>
*/
public class TableMenu extends JMenu {
  public static final String table = InsertMenu.table;
  public static final String rows = "table-insert-rows";
  public static final String cell = "table-insert-cell";
  public static final String caption = "table-caption";
  public static final String deleteCells = "table-delete-cells";
  public static final String mergeCells = "table-merge-cells";
  public static final String splitCell = "table-split-cell";
  public static final String cellProperties = "table-cell-properties";
  public static final String tableProperties = "table-properties";

  public TableMenu(Mozart mozart) {
    super("Table");

    // Get Mozart's Actions
    MozartActions actions = mozart.getActions();

    // Table Menu
    add(new JMenuItem("Insert Table..."));
    add(new JMenuItem("Insert Rows/Columns"));
    add(new JMenuItem("Insert Cell"));
    add(new JMenuItem("Insert Caption"));
    addSeparator();
    add(new JMenuItem("Delete Cells"));
    add(new JMenuItem("Merge Cells"));
    add(new JMenuItem("Split Cell"));
    addSeparator();
    add(new JMenuItem("Cell Properties..."));
    add(new JMenuItem("Table Properties..."));
  }
}
