public class DBCanvas
extends org.biolegato.main.DataCanvas
implements org.biopcd.widgets.CloseableWindow
javax.swing.JApplet.AccessibleJApplet
java.applet.Applet.AccessibleApplet
Modifier and Type | Field and Description |
---|---|
DBCanvas |
dbcanvasSelf
A self reference to the current object (this is used for customized
subclass code defined within the class's methods).
|
protected javax.swing.JPanel |
mainPanel
The main panel object for the canvas (this is used for refreshing
while in applet mode, so everything can be displayed within one window.
|
protected java.util.Map<java.lang.String,org.biopcd.widgets.Widget> |
widgets
List of widgets for the window.
|
ABOUT_MENUITEM, EMPTY_STRING, EXIT_MENUITEM, NAME, properties, serialVersionUID
accessibleContext, rootPane, rootPaneCheckingEnabled
Constructor and Description |
---|
DBCanvas()
Creates a new instance of BioLegato's database canvas
|
DBCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
Creates a new instance of BioLegato's database canvas
|
Modifier and Type | Method and Description |
---|---|
void |
browseTable(java.lang.String value)
Displays the brows table canvas for the BLDB
|
void |
close()
Action for command buttons to close the window.
|
void |
dbBack()
The code for displaying the database home screen/page
|
java.awt.Component |
display()
Displays the command parameter window.
|
DBSchema |
getCurrentSchema()
Returns the current schema
|
java.lang.String[] |
getEntries()
Get all of the entries for the current database schema
|
java.lang.String |
getPluginName()
Returns the name of this canvas (i.e.
|
java.lang.String[] |
getSchemas() |
void |
loadSchema(java.lang.String schemaname) |
static void |
main(java.lang.String[] args)
Starts BioLegato PCD canvas
|
void |
readFile(java.lang.String format,
java.io.Reader in,
boolean overwrite)
Reads data into the canvas
|
DBSchema |
readSchema(java.lang.String schemaname) |
void |
refreshMainPanel(java.awt.Component add) |
void |
writeFile(java.lang.String format,
java.lang.Appendable out,
boolean forceall)
Writes data out from the canvas
|
addMenuHeading, addMenuHeading, createJFrame, error, getJFrame, getProperty, init, message, testNumber, useTurtle, warning
addImpl, createRootPane, getAccessibleContext, getContentPane, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isRootPaneCheckingEnabled, paramString, remove, repaint, setContentPane, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
destroy, getAppletContext, getAppletInfo, getAudioClip, getAudioClip, getCodeBase, getDocumentBase, getImage, getImage, getLocale, getParameter, getParameterInfo, isActive, isValidateRoot, newAudioClip, play, play, resize, resize, setStub, showStatus, start, stop
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
action, 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected java.util.Map<java.lang.String,org.biopcd.widgets.Widget> widgets
protected javax.swing.JPanel mainPanel
public final DBCanvas dbcanvasSelf
public DBCanvas()
public DBCanvas(java.util.Map<? extends java.lang.Object,? extends java.lang.Object> importProperties)
importProperties
- a list of properties attributes to import into the canvaspublic java.awt.Component display()
display
in class org.biolegato.main.DataCanvas
public void dbBack()
public void refreshMainPanel(java.awt.Component add)
public void loadSchema(java.lang.String schemaname)
public DBSchema readSchema(java.lang.String schemaname)
public java.lang.String[] getSchemas()
public java.lang.String[] getEntries()
public void close()
close
in interface org.biopcd.widgets.CloseableWindow
public java.lang.String getPluginName()
getPluginName
in class org.biolegato.main.DataCanvas
public void readFile(java.lang.String format, java.io.Reader in, boolean overwrite) throws java.io.IOException
readFile
in interface org.biopcd.parser.PCDIO
format
- the file format to use for parsing the file.in
- the "stream" to read in from.overwrite
- whether to overwrite the currently selected sequences with the data imported.java.io.IOException
- if an error occurs while readingpublic void writeFile(java.lang.String format, java.lang.Appendable out, boolean forceall) throws java.io.IOException
writeFile
in interface org.biopcd.parser.PCDIO
format
- the file format to use for writing the file.out
- the "stream" to write out to.forceall
- use the entire canvas instead of just its selected sequences.java.io.IOException
- if an error occurs while writingpublic static void main(java.lang.String[] args)
args
- the command line arguments for BioLegatopublic DBSchema getCurrentSchema()
public void browseTable(java.lang.String value)
value
- - the schema to view/browseCopyright © 2008-2014 University of Manitoba.