'STRAP:multiple sequence alignments '

charite.christo.metannogen
Class AbstractDatasetView

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by charite.christo.ChPanel
                      extended by charite.christo.metannogen.AbstractDatasetView
All Implemented Interfaces:
ChProcessEvent, ChRunnable, Disposable, PaintHook, DatasetView, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable
Direct Known Subclasses:
ORIGINAL_DatasetView

public abstract class AbstractDatasetView
extends ChPanel
implements DatasetView, ChProcessEvent, PaintHook, ChRunnable

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Component
Component.BaselineResizeBehavior
 
Field Summary
static String BUT_LAB_changeSource
           
 
Fields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, 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
 
Fields inherited from interface charite.christo.interfaces.ChRunnable
APPEND, DOWNLOAD_FINISHED, INTERPRET_LINE, LOG, SET_ICON_IMAGE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
AbstractDatasetView()
           
 
Method Summary
 JComponent buttonAddCompartment()
           
 JComponent buttonAddCompound()
           
 JComponent buttonClose()
           
 JComponent buttonKill()
           
 JComponent buttonUpload()
           
 ChCombo choice(String columnName, String[] values)
          GUI Element for datasets.
 void dispose()
           
 JComponent getCompartmentPanel()
           
 Dataset getDataset()
           
static JComponent horizontalBox(Object... compounds)
          GUI Element for datasets.
 boolean isPermanent()
           
abstract  void layoutDatasetView()
           
 boolean paintHook(JComponent c, Graphics g, boolean after)
           
static JComponent panel(Object... compounds)
          GUI Element for datasets.
 JComponent panelDatasetIdentifier()
           
 JComponent panelEquationHumanReadable()
           
 JComponent panelEquationOriginal()
           
 JComponent panelWarnIfChangedOnServer()
           
 boolean processEvent(JComponent c, AWTEvent ev)
          returns true if the component should also invoke processEvent();
 Object run(String id, Object arg)
           
 void setChangedOnServer()
           
 void setDataset(Dataset ds)
          Call this exactly once after instantiation
 void setIsPermanent(boolean b)
           
 JTextComponent textField(String columnName, int width, boolean multiLine)
          GUI Element for datasets.
 JTextComponent textFieldComments()
           
 JScrollPane textFieldCommentsScrollPane()
           
 JTextComponent textFieldDeltaG()
           
 JTextComponent textFieldEC()
           
 JTextComponent textFieldEquation()
           
 JTextComponent textFieldPathway()
           
 ChButton toggle(String columnName)
          GUI Element for datasets.
 AbstractButton toggleAccepted()
           
 AbstractButton toggleNotUsed()
           
 ChButton togglePermanent()
           
static JComponent verticalBox(Object... compounds)
          GUI Element for datasets.
 
Methods inherited from class charite.christo.ChPanel
getDndDateien, getPreferredScrollableViewportSize, getPreferredSize, getScrollableBlockIncrement, getScrollableTracksViewportHeight, getScrollableTracksViewportWidth, getScrollableUnitIncrement, getToolTipLocation, getToolTipText, getWhenPainted, isAlreadyPainted, isShowing, paintChildren, paintComponent, processEvent
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, 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, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BUT_LAB_changeSource

public static final String BUT_LAB_changeSource
See Also:
Constant Field Values
Constructor Detail

AbstractDatasetView

public AbstractDatasetView()
Method Detail

toggle

public ChButton toggle(String columnName)
GUI Element for datasets. For a data-field containing the values true and false


choice

public ChCombo choice(String columnName,
                      String[] values)
GUI Element for datasets. For a datafield containing a choice of values.


textField

public JTextComponent textField(String columnName,
                                int width,
                                boolean multiLine)
GUI Element for datasets. Single-line or multi-line Textfield


horizontalBox

public static JComponent horizontalBox(Object... compounds)
GUI Element for datasets. Creates a horizontal container with the given compounds


verticalBox

public static JComponent verticalBox(Object... compounds)
GUI Element for datasets. Creates a vertical container with the given compounds


panel

public static JComponent panel(Object... compounds)
GUI Element for datasets. Creates a horizontal container with the given compounds


textFieldComments

public JTextComponent textFieldComments()

textFieldCommentsScrollPane

public JScrollPane textFieldCommentsScrollPane()

textFieldEquation

public JTextComponent textFieldEquation()

panelDatasetIdentifier

public JComponent panelDatasetIdentifier()

textFieldEC

public JTextComponent textFieldEC()

textFieldDeltaG

public JTextComponent textFieldDeltaG()

textFieldPathway

public JTextComponent textFieldPathway()

togglePermanent

public ChButton togglePermanent()

toggleAccepted

public AbstractButton toggleAccepted()

toggleNotUsed

public AbstractButton toggleNotUsed()

buttonUpload

public JComponent buttonUpload()

buttonAddCompound

public JComponent buttonAddCompound()

buttonAddCompartment

public JComponent buttonAddCompartment()

buttonKill

public JComponent buttonKill()

buttonClose

public JComponent buttonClose()

panelWarnIfChangedOnServer

public JComponent panelWarnIfChangedOnServer()

panelEquationHumanReadable

public JComponent panelEquationHumanReadable()

panelEquationOriginal

public JComponent panelEquationOriginal()

processEvent

public boolean processEvent(JComponent c,
                            AWTEvent ev)
Description copied from interface: ChProcessEvent
returns true if the component should also invoke processEvent();

Specified by:
processEvent in interface ChProcessEvent

run

public Object run(String id,
                  Object arg)
Specified by:
run in interface ChRunnable

getCompartmentPanel

public JComponent getCompartmentPanel()

isPermanent

public boolean isPermanent()
Specified by:
isPermanent in interface DatasetView

setIsPermanent

public void setIsPermanent(boolean b)
Specified by:
setIsPermanent in interface DatasetView

setChangedOnServer

public void setChangedOnServer()
Specified by:
setChangedOnServer in interface DatasetView

getDataset

public Dataset getDataset()
Specified by:
getDataset in interface DatasetView

setDataset

public void setDataset(Dataset ds)
Call this exactly once after instantiation

Specified by:
setDataset in interface DatasetView

layoutDatasetView

public abstract void layoutDatasetView()

dispose

public void dispose()
Specified by:
dispose in interface Disposable

paintHook

public boolean paintHook(JComponent c,
                         Graphics g,
                         boolean after)
Specified by:
paintHook in interface PaintHook
after - This method is called once before and once after super.paintComponent.
Returns:
means do not call super.paintComponent

'STRAP:multiple sequence alignments '

'The most important classes are StrapAlign, StrapProtein and StrapEvent.'