edu.ucsb.nceas.morpho.datapackage
Class ColumnMetadataEditPanel

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--javax.swing.JComponent
                    |
                    +--javax.swing.JPanel
                          |
                          +--edu.ucsb.nceas.morpho.datapackage.ColumnMetadataEditPanel

public class ColumnMetadataEditPanel
extends javax.swing.JPanel

A panel that displays the metadata for a column in a data table

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Inner classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Constructor Summary
ColumnMetadataEditPanel()
           
 
Method Summary
 void colDataToFields()
           
 void enumTableToColData()
           
 void FieldsToColData()
           
 ColumnData getColumnData()
           
 java.lang.String getColumnDefinition()
           
 java.lang.String getColumnLabel()
           
 java.lang.String getColumnName()
           
 java.lang.String getDataType()
           
 boolean getEnumButton()
           
 java.lang.String getMaximum()
           
 java.lang.String getMinimum()
           
 java.lang.String getMissingValue()
           
 boolean getNumButton()
           
 java.lang.String getPrecision()
           
 boolean gettextButton()
           
 java.lang.String getTextDefinition()
           
 java.lang.String getTextPattern()
           
 java.lang.String getTextSource()
           
 java.lang.String getUnit()
           
static void main(java.lang.String[] argv)
           
 java.lang.String output()
           
 void print(org.w3c.dom.Node node)
          This method can 'print' any DOM subtree.
 void save()
          Save the DOM doc as a file
 void saveDOM(org.w3c.dom.Node nd)
          This method wraps the 'print' method to send DOM back to the XML document (file) that was used to create the DOM.
 void setColumnData(ColumnData cd)
           
 void setColumnDefinition(java.lang.String val)
           
 void setColumnLabel(java.lang.String val)
           
 void setColumnName(java.lang.String val)
           
 void setDataType(java.lang.String val)
           
 void setEnumButton(boolean b)
           
 void setMaximum(java.lang.String val)
           
 void setMinimum(java.lang.String val)
           
 void setMissingValue(java.lang.String val)
           
 void setMorpho(Morpho morpho)
           
 void setNumButton(boolean b)
           
 void setPrecision(java.lang.String val)
           
 void settextButton(boolean b)
           
 void setTextDefinition(java.lang.String val)
           
 void setTextImportWizard(TextImportWizard tiw)
           
 void setTextPattern(java.lang.String val)
           
 void setTextSource(java.lang.String val)
           
 void setUnit(java.lang.String val)
           
protected  org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
          Returns a sorted list of attributes.
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUIClassID, paramString, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInsets, getInsets, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, processComponentKeyEvent, processFocusEvent, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setCursor, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hide, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnMetadataEditPanel

public ColumnMetadataEditPanel()
Method Detail

setMorpho

public void setMorpho(Morpho morpho)

main

public static void main(java.lang.String[] argv)

output

public java.lang.String output()

setTextImportWizard

public void setTextImportWizard(TextImportWizard tiw)

getColumnName

public java.lang.String getColumnName()

getColumnLabel

public java.lang.String getColumnLabel()

getColumnDefinition

public java.lang.String getColumnDefinition()

getUnit

public java.lang.String getUnit()

getDataType

public java.lang.String getDataType()

getMissingValue

public java.lang.String getMissingValue()

getPrecision

public java.lang.String getPrecision()

getMinimum

public java.lang.String getMinimum()

getMaximum

public java.lang.String getMaximum()

getTextDefinition

public java.lang.String getTextDefinition()

getTextPattern

public java.lang.String getTextPattern()

getTextSource

public java.lang.String getTextSource()

getEnumButton

public boolean getEnumButton()

gettextButton

public boolean gettextButton()

getNumButton

public boolean getNumButton()

setColumnName

public void setColumnName(java.lang.String val)

setColumnLabel

public void setColumnLabel(java.lang.String val)

setColumnDefinition

public void setColumnDefinition(java.lang.String val)

setUnit

public void setUnit(java.lang.String val)

setDataType

public void setDataType(java.lang.String val)

setMissingValue

public void setMissingValue(java.lang.String val)

setPrecision

public void setPrecision(java.lang.String val)

setMinimum

public void setMinimum(java.lang.String val)

setMaximum

public void setMaximum(java.lang.String val)

setTextDefinition

public void setTextDefinition(java.lang.String val)

setTextPattern

public void setTextPattern(java.lang.String val)

setTextSource

public void setTextSource(java.lang.String val)

setEnumButton

public void setEnumButton(boolean b)

settextButton

public void settextButton(boolean b)

setNumButton

public void setNumButton(boolean b)

setColumnData

public void setColumnData(ColumnData cd)

getColumnData

public ColumnData getColumnData()

colDataToFields

public void colDataToFields()

enumTableToColData

public void enumTableToColData()

FieldsToColData

public void FieldsToColData()

save

public void save()
Save the DOM doc as a file

saveDOM

public void saveDOM(org.w3c.dom.Node nd)
This method wraps the 'print' method to send DOM back to the XML document (file) that was used to create the DOM. i.e. this method saves changes to disk
Parameters:
nd - node (usually the document root)

print

public void print(org.w3c.dom.Node node)
This method can 'print' any DOM subtree. Specifically it is set (by means of 'out') to write the in-memory DOM Action thus saves a new version of the XML doc
Parameters:
node - node usually set to the 'doc' node for complete XML file re-write

sortAttributes

protected org.w3c.dom.Attr[] sortAttributes(org.w3c.dom.NamedNodeMap attrs)
Returns a sorted list of attributes.


Copyright © 2000 National Center for Ecological Analysis and Synthesis. All Rights Reserved.