public class MetadataEditor extends JFrame implements ActionListener, ItemListener, Runnable
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description | 
|---|---|
| protected JCheckBoxMenuItem | advViewThe checkboxes that switch between the four views. | 
| protected File | currentFileHolds the current file being displayed. | 
| protected JMenuItem | fileNewThe File>New menu item. | 
| protected JMenuItem | fileSaveThe File>Save menu item. | 
| protected MetadataPane | mdpHolds the xml viewer that displays xml data in a JTree. | 
| static int | MENU_MASKKey mask for use with keyboard shortcuts on this operating system. | 
| protected MetadataPane | metadataThe MetadataPane used to display/edit OMEXML content. | 
| protected JCheckBoxMenuItem | normViewThe checkboxes that switch between the four views. | 
| protected NotePane | notePThe NotePane that displays a comprehensive list of all notes. | 
| protected JCheckBoxMenuItem | noteViewThe checkboxes that switch between the four views. | 
| protected ExtensionFileFilter | omeFilterFormat filters for saver JFileChooser. | 
| protected JFileChooser | openerThe file chooser used to save and open files. | 
| protected boolean | openingSignifies whether we're opening(true) or saving(false) a file. | 
| protected JFileChooser | saverThe file chooser used to save and open files. | 
| protected WiscScanPane | scanPThe WiscScan emulator that mimics the GUI of the WiscScan
 program for ease of use by our in-house biologists. | 
| protected JCheckBoxMenuItem | scanViewThe checkboxes that switch between the four views. | 
| protected JCheckBoxMenuItem | showIDThe checkboxes that switch between the four views. | 
| protected JMenu | tabsMenuThe "Tabs" menu. | 
| protected ExtensionFileFilter | tiffFilterFormat filters for saver JFileChooser. | 
| static String | URL_OME_METADATA_EDITORURL of OME Metadata Editor web page. | 
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description | 
|---|
| MetadataEditor() | 
| MetadataEditor(String[] args)Create a default editor window with save function and editing enabled. | 
| MetadataEditor(String[] args,
              org.openmicroscopy.xml.OMENode ome,
              String title,
              boolean addSave,
              boolean editable)Create an editor window with specified save and editing policies. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | actionPerformed(ActionEvent e)Handles menu commands. | 
| void | changeTabMenu(String[] tabs)Given an array of Strings of appropriate tab names,
 this method sets up the tab menu accordingly. | 
| void | itemStateChanged(ItemEvent e)Handles the checkbox menuitems that change the view. | 
| static void | main(String[] args)Test method for debug uses, or simply to bring up an editor window
  from the console or whatever. | 
| void | openFile(File file)Opens a file, sets the title of the frame to reflect the current file. | 
| void | run()Opens a file in a separate thread. | 
| void | saveCompanionFile(File file)Saves to a companion file, same path with .meta extenstion, pure ome. | 
| void | saveFile(File file)Saves to a file, sets title of frame to reflect the current file. | 
| void | saveTiffFile(File file) | 
| void | saveTiffFile(File file,
            String outPath) | 
| protected void | setCurrentFile(File aFile)Sets the current file being displayed to this file. | 
| protected void | wait(boolean wait)Toggles wait cursor. | 
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontadd, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic static final String URL_OME_METADATA_EDITOR
public static final int MENU_MASK
protected JFileChooser opener
protected JFileChooser saver
protected ExtensionFileFilter tiffFilter
protected ExtensionFileFilter omeFilter
protected MetadataPane metadata
protected File currentFile
protected JMenu tabsMenu
protected boolean opening
protected MetadataPane mdp
protected JMenuItem fileNew
protected JMenuItem fileSave
protected NotePane noteP
protected WiscScanPane scanP
protected JCheckBoxMenuItem advView
protected JCheckBoxMenuItem noteView
protected JCheckBoxMenuItem normView
protected JCheckBoxMenuItem scanView
protected JCheckBoxMenuItem showID
public MetadataEditor()
public MetadataEditor(String[] args)
public MetadataEditor(String[] args, org.openmicroscopy.xml.OMENode ome, String title, boolean addSave, boolean editable)
args - an array of strings the first entry of which should be a
 filename, otherwise, send a (String[]) null as this parameter.ome - An OMENode xml root to be launched if a filename is not
 appropriate, for instance when in the LociDataBrowser we have a
 FilePattern if using a FileStitcher. Thus, send ome instead. Note
 that this is a temporary fix. If your file is OME-Tiff there's going
 to be a problem if saving is enabled and you try to save to it, since
 we're circumventing the code that flags TIFF files.title - Sets the title of the editor window, which is done by
 default if a file URL is given in args, but otherwise should be set
 using this String parameter.addSave - whether or not saving should be enablededitable - whether or not users should be able to edit the xmlprotected void setCurrentFile(File aFile)
public void openFile(File file)
public void saveFile(File file)
public void saveCompanionFile(File file)
public void saveTiffFile(File file)
public void changeTabMenu(String[] tabs)
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerpublic void itemStateChanged(ItemEvent e)
itemStateChanged in interface ItemListenerprotected void wait(boolean wait)
public static void main(String[] args)
Copyright © 2014 Open Microscopy Environment