public class MenuElementEditor extends Editor
Editor.EditorListener, Editor.LModel
Modifier and Type | Field and Description |
---|---|
protected static boolean |
actionsCreated |
static EditorAction |
findIconAction |
static EditorAction |
findProjectAction |
protected static ImageIcon |
icon |
protected ImageIcon |
meIcon |
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 |
---|
MenuElementEditor(MenuElement me)
Creates new EditorMenuElement
|
Modifier and Type | Method and Description |
---|---|
boolean |
canBeParentOf(Editor e) |
boolean |
canBeSiblingOf(Editor e) |
protected boolean |
canClone() |
void |
clearActionsOwner() |
static void |
createActions(Options options) |
protected void |
createChildren() |
EditorPanel |
createEditorPanel(Options options) |
boolean |
delete(boolean updateSelection) |
void |
findIcon(Options options,
Component dlgOwner) |
void |
findProject(Options options,
Component dlgOwner) |
protected Editor |
getClone() |
Class |
getEditorPanelClass() |
static Icon |
getIcon() |
Icon |
getIcon(boolean leaf,
boolean expanded) |
MenuEditor |
getMenuEditorParent() |
MenuElement |
getMenuElement() |
ProjectLibrary |
getProjectLibrary() |
boolean |
moveDown(boolean updateSelection) |
boolean |
moveUp(boolean updateSelection) |
void |
setActionsOwner() |
protected void |
syncParentIndex() |
String |
toString() |
addEditorListener, canPasteHere, clearBasicActionsOwner, collectData, copy, createBasicActions, createEditor, createJTree, cut, editData, findParentForDlg, fireEditorDataChanged, getChildByName, getCurrentTree, getEditorParent, getFirstChild, getFirstObject, getFirstParent, getListModel, getListSelectionModel, getNearestIndex, getTitleKey, getTreeModel, insert, insertEditor, 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
protected ImageIcon meIcon
protected ProjectLibrary projectLibrary
public static EditorAction findProjectAction
public static EditorAction findIconAction
protected static boolean actionsCreated
public MenuElementEditor(MenuElement me)
protected void createChildren()
createChildren
in class Editor
public MenuElement getMenuElement()
public MenuEditor getMenuEditorParent()
public Class getEditorPanelClass()
getEditorPanelClass
in class Editor
public ProjectLibrary getProjectLibrary()
public EditorPanel createEditorPanel(Options options)
createEditorPanel
in class Editor
public static Icon getIcon()
public void setActionsOwner()
setActionsOwner
in class Editor
public void clearActionsOwner()
clearActionsOwner
in class Editor
protected void syncParentIndex()
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.