public class MediaBagEditor extends Editor
Editor.EditorListener, Editor.LModel
Modifier and Type | Field and Description |
---|---|
static boolean |
actionsCreated |
static int |
DEFAULT_IMG_MAX_HEIGHT |
static int |
DEFAULT_IMG_MAX_WIDTH |
static EditorAction |
exportAllMediaAction |
static int |
IMG_MIN_SIZE |
protected static int |
imgMaxHeight |
protected static int |
imgMaxWidth |
static EditorAction |
newMediaBagElementAction |
static String |
RESIZED |
static EditorAction |
updateAllMediaAction |
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 |
---|
MediaBagEditor(MediaBag mb)
Creates a new instance of MediaBagEditor
|
addEditorListener, canBeParentOf, canBeSiblingOf, canClone, canPasteHere, clearBasicActionsOwner, collectData, copy, createBasicActions, createEditor, createJTree, cut, delete, editData, findParentForDlg, fireEditorDataChanged, getChildByName, getClone, getCurrentTree, getEditorParent, getFirstChild, getFirstObject, getFirstParent, getIcon, getListModel, getListSelectionModel, getNearestIndex, getTreeModel, insert, insertEditor, isModified, moveDown, moveToIndex, moveUp, paste, remove, removeEditorListener, reselect, select, setClip, setCurrentTree, setListSelectionModel, setModified, setTreeModel, toString
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
public static final int DEFAULT_IMG_MAX_WIDTH
public static final int DEFAULT_IMG_MAX_HEIGHT
public static final int IMG_MIN_SIZE
public static final String RESIZED
public static boolean actionsCreated
public static EditorAction newMediaBagElementAction
public static EditorAction updateAllMediaAction
public static EditorAction exportAllMediaAction
protected static int imgMaxWidth
protected static int imgMaxHeight
public MediaBagEditor(MediaBag mb)
public Options getOptions()
protected void createChildren()
createChildren
in class Editor
public EditorPanel createEditorPanel(Options options)
createEditorPanel
in class Editor
public Class getEditorPanelClass()
getEditorPanelClass
in class Editor
public String getTitleKey()
getTitleKey
in class Editor
public MediaBag getMediaBag()
public JClicProjectEditor getProjectEditor()
public static String[] selectMediaFiles(MediaBag mediaBag, Options options, Component dlgOwner, int fileFilters, String defaultFile)
public MediaBagElementEditor addMediaBagElement(MediaBagElement mbe)
public MediaBagElementEditor[] createNewMediaBagElements(Options options, Component dlgOwner, int fileFilters)
public void updateAllElements(JComponent parent)
public void exportAllElements(JComponent parent)
public void setActionsOwner()
setActionsOwner
in class Editor
public void clearActionsOwner()
clearActionsOwner
in class Editor
public static void createActions(Options opt)
public MediaBagElementEditor getChildFor(MediaBagElement mbe)
public List<MediaBagElementEditor> getChildrenList(int filters)
public static Icon getIcon()
public int checkOrphanElements(Options options, Component parent, boolean prompt)
public static int getImgMaxWidth()
public static void setImgMaxWidth(int width)
public static int getImgMaxHeight()
public static void setImgMaxHeight(int height)
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.