public class MenuEditor extends Editor
Editor.EditorListener, Editor.LModel
Modifier and Type | Field and Description |
---|---|
static boolean |
actionsCreated |
protected static ImageIcon |
icon |
static EditorAction |
newMenuAction |
static EditorAction |
newMenuElementAction |
protected ProjectLibrary |
projectLibrary |
allowCopy, allowCut, allowDelete, allowPaste, basicActionsCreated, clip, clipCutted, copyAction, currentTree, cutAction, deleteAction, listeners, listModel, listSelectionModel, moveDownAction, moveUpAction, pasteAction, restrictMoveToSameType, treeModel
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
MenuEditor(Menu menu)
Creates new MenuEditor
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeParentOf(Editor e) |
boolean |
canBeSiblingOf(Editor e) |
protected boolean |
canClone() |
protected MenuElement |
checkParentMenuElementRef(boolean remove,
boolean create,
boolean move,
int index) |
void |
clearActionsOwner() |
static void |
createActions(Options options) |
protected void |
createChildren() |
EditorPanel |
createEditorPanel(Options options) |
boolean |
createNewMenu(int index,
boolean prompt,
Component dlgParent) |
boolean |
createNewMenuElement(int index,
boolean prompt,
Component dlgParent) |
boolean |
delete(boolean updateSelection) |
protected Editor |
getClone() |
Class |
getEditorPanelClass() |
static Icon |
getIcon() |
Menu |
getMenu() |
Options |
getOptions() |
ProjectLibrary |
getProjectLibrary() |
boolean |
insertEditor(Editor e,
boolean asChild,
int index,
boolean updateSelection) |
boolean |
moveDown(boolean updateSelection) |
boolean |
moveUp(boolean updateSelection) |
protected void |
saveData() |
void |
setActionsOwner() |
void |
setDescription(String description) |
String |
toString() |
addEditorListener, canPasteHere, clearBasicActionsOwner, collectData, copy, createBasicActions, createEditor, createJTree, cut, editData, findParentForDlg, fireEditorDataChanged, getChildByName, getCurrentTree, getEditorParent, getFirstChild, getFirstObject, getFirstParent, getIcon, getListModel, getListSelectionModel, getNearestIndex, getTitleKey, getTreeModel, insert, isModified, moveToIndex, paste, remove, removeEditorListener, reselect, select, setClip, setCurrentTree, setListSelectionModel, setModified, setTreeModel
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject
protected static ImageIcon icon
public static EditorAction newMenuElementAction
public static EditorAction newMenuAction
public static boolean actionsCreated
protected ProjectLibrary projectLibrary
public MenuEditor(Menu menu)
protected void createChildren()
createChildren
in class Editor
public Class getEditorPanelClass()
getEditorPanelClass
in class Editor
public EditorPanel createEditorPanel(Options options)
createEditorPanel
in class Editor
public Menu getMenu()
public Options getOptions()
protected void saveData()
public ProjectLibrary getProjectLibrary()
public void setActionsOwner()
setActionsOwner
in class Editor
public void clearActionsOwner()
clearActionsOwner
in class Editor
public static Icon getIcon()
public void setDescription(String description)
protected MenuElement checkParentMenuElementRef(boolean remove, boolean create, boolean move, int index)
public boolean insertEditor(Editor e, boolean asChild, int index, boolean updateSelection)
insertEditor
in class Editor
public boolean createNewMenu(int index, boolean prompt, Component dlgParent)
public boolean createNewMenuElement(int index, boolean prompt, Component dlgParent)
public boolean canBeParentOf(Editor e)
canBeParentOf
in class Editor
public boolean canBeSiblingOf(Editor e)
canBeSiblingOf
in class Editor
public static void createActions(Options options)
Copyright © 2004-15 Francesc Busquets (fbusquets@xtec.cat) & Departament d'Educació de la Generalitat de Catalunya (info@xtec.cat)
Licensed under the terms of the GNU General Public License.