|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
jigcell.compare.ui.ViewerDialog
jigcell.compare.ui.SeriesDialog
jigcell.compare.ui.SeriesEditorDialog
public class SeriesEditorDialog
A dialog-based cell editor for multi-dimensional data.
This code is licensed under the DARPA BioCOMP Open Source License. See LICENSE for more details.
| Nested Class Summary | |
|---|---|
protected class |
SeriesEditorDialog.SeriesEditorModel
Model for a list editor dialog. |
| Nested classes/interfaces inherited from class jigcell.compare.ui.SeriesDialog |
|---|
SeriesDialog.SeriesModel |
| Nested classes/interfaces inherited from class javax.swing.JDialog |
|---|
javax.swing.JDialog.AccessibleJDialog |
| Nested classes/interfaces inherited from class java.awt.Dialog |
|---|
java.awt.Dialog.AccessibleAWTDialog |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
java.awt.Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
java.awt.Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected IEditableDataElement |
element
DataElement being edited |
protected IEditableDataGenerator |
generator
Generator for the element being edited |
protected static java.lang.String |
MESSAGE_VALUEERROR
Error message for unapplyable value |
protected SeriesEditorDialog.SeriesEditorModel |
newModel
Model of current table |
| Fields inherited from class jigcell.compare.ui.SeriesDialog |
|---|
BUTTON_CLOSE, checker, menuManager, popup, POPUP_DEFAULT, popupPoint, table |
| Fields inherited from class jigcell.compare.ui.ViewerDialog |
|---|
area, column, compare, DEFAULT_HEIGHT, DEFAULT_WIDTH, initialHeight, initialWidth, model, row |
| Fields inherited from class javax.swing.JDialog |
|---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface jigcell.compare.ITab |
|---|
CONFIG_TABNAME, STATE_ENDINITIALIZE, STATE_ENDUI, STATE_INITIALIZE, STATE_RUNNING, STATES |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
|
SeriesEditorDialog(Compare compare,
IEditableDataElement element,
java.lang.String name,
int row,
int column,
BasicTable.BasicTableModel model)
Creates a new dialog for editing list based data. |
protected |
SeriesEditorDialog(Compare compare,
IEditableDataGenerator generator,
IEditableDataElement element,
ITypeChecker checker,
java.lang.String name,
int row,
int column,
BasicTable.BasicTableModel model)
Creates a new dialog for editing list based data. |
|
SeriesEditorDialog(Compare compare,
IEditableDataGenerator generator,
int row,
int column,
BasicTable.BasicTableModel model)
Creates a new dialog for editing list based data. |
| Method Summary | |
|---|---|
void |
addRow()
Adds a new row to the view. |
void |
addRows(int count)
Adds several new rows to the view. |
void |
clear()
|
protected javax.swing.JPanel |
createControl()
The contents to be displayed in the dialog. |
protected javax.swing.JPanel |
createControl(SeriesEditorDialog.SeriesEditorModel model)
The contents to be displayed in the dialog. |
void |
deleteRow(int row)
Deletes a row from the table. |
void |
deleteRows(int[] rows)
Deletes rows from the table. |
void |
editCell(int row,
int column)
Starts editing a cell. |
void |
fillDown(int row,
int column)
Fills a column down with a value. |
void |
fillSelected(int row,
int column,
int[] rows)
Fills a column at selected spots with a value. |
void |
fillUp(int row,
int column)
Fills a column up with a value. |
int |
getRowCount()
The number of rows in the table. |
java.lang.Object |
getRowData(int row)
The data for a row in the table or null if the row is not valid. |
protected java.lang.Object |
getValue()
The value being edited. |
void |
insertRow(int row)
Inserts a row at a specified location. |
void |
insertRows(int row,
int count)
Inserts a number of new rows at a specified location. |
void |
moveRowsDown(int[] rows)
Moves selected rows down. |
void |
moveRowsUp(int[] rows)
Moves selected rows up. |
| Methods inherited from class jigcell.compare.ui.SeriesDialog |
|---|
actionPerformed, createAboutDialog, createButtons, createConfigEditor, createControl, createUI, getName, getSelectedRows, initialize, mouseClicked, mouseEntered, mouseExited, mousePressed, mouseReleased, readConfiguration, selectAll, selectInvert, selectInvertRows, selectNone, setSelectedRows, setVisible, viewCell |
| Methods inherited from class jigcell.compare.ui.ViewerDialog |
|---|
getInitialHeight, getInitialWidth, setInitialHeight, setInitialWidth |
| Methods inherited from class javax.swing.JDialog |
|---|
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update |
| Methods inherited from class java.awt.Dialog |
|---|
addNotify, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setResizable, setTitle, setUndecorated, show |
| Methods inherited from class java.awt.Window |
|---|
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, finalize, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, toBack, toFront |
| Methods inherited from class java.awt.Container |
|---|
add, 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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
| Methods inherited from class java.awt.Component |
|---|
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, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, 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, isOpaque, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, show, size, toString, transferFocus, transferFocusUpCycle |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface jigcell.compare.ITab |
|---|
createAboutDialog, createConfigEditor, getName, readConfiguration |
| Field Detail |
|---|
protected static final java.lang.String MESSAGE_VALUEERROR
protected IEditableDataElement element
protected IEditableDataGenerator generator
protected SeriesEditorDialog.SeriesEditorModel newModel
| Constructor Detail |
|---|
public SeriesEditorDialog(Compare compare,
IEditableDataElement element,
java.lang.String name,
int row,
int column,
BasicTable.BasicTableModel model)
compare - Comparator to attach toelement - Data elementname - Name to displayrow - Row in original model to base oncolumn - Column in original model to base onmodel - Original model to base on
public SeriesEditorDialog(Compare compare,
IEditableDataGenerator generator,
int row,
int column,
BasicTable.BasicTableModel model)
compare - Comparator to attach togenerator - Generator supporting editingrow - Row in original model to base oncolumn - Column in original model to base onmodel - Original model to base on
protected SeriesEditorDialog(Compare compare,
IEditableDataGenerator generator,
IEditableDataElement element,
ITypeChecker checker,
java.lang.String name,
int row,
int column,
BasicTable.BasicTableModel model)
compare - Comparator to attach togenerator - Generator supporting editingelement - Data elementchecker - Type checkername - Name to displayrow - Row in original model to base oncolumn - Column in original model to base onmodel - Original model to base on| Method Detail |
|---|
public void addRow()
addRow in interface IRowEditorTabpublic void addRows(int count)
addRows in interface IRowEditorTabcount - Number of rowspublic void clear()
IDataEditorTab.clear()public void deleteRow(int row)
deleteRow in interface IRowEditorTabrow - Rowpublic void deleteRows(int[] rows)
deleteRows in interface IRowEditorTabrows - Rows
public void editCell(int row,
int column)
editCell in interface ICellEditorTabeditCell in class SeriesDialogrow - Rowcolumn - Column
public void fillDown(int row,
int column)
fillDown in interface ICellEditorTabfillDown in class SeriesDialogrow - Starting rowcolumn - Column
public void fillSelected(int row,
int column,
int[] rows)
fillSelected in interface ICellEditorTabfillSelected in class SeriesDialogrow - Starting rowcolumn - Columnrows - Selected rows
public void fillUp(int row,
int column)
fillUp in interface ICellEditorTabfillUp in class SeriesDialogrow - Starting rowcolumn - Columnpublic int getRowCount()
IRowEditorTab
getRowCount in interface IRowEditorTabIRowEditorTab.getRowCount()public java.lang.Object getRowData(int row)
IRowEditorTab
getRowData in interface IRowEditorTabrow - RowIRowEditorTab.getRowData(int)public void insertRow(int row)
insertRow in interface IRowEditorTabrow - Row to insert at
public void insertRows(int row,
int count)
insertRows in interface IRowEditorTabrow - Row to insert atcount - Number of rows to insertpublic void moveRowsDown(int[] rows)
moveRowsDown in interface IRowEditorTabrows - Rowspublic void moveRowsUp(int[] rows)
moveRowsUp in interface IRowEditorTabrows - Rowsprotected javax.swing.JPanel createControl()
createControl in class SeriesDialogprotected javax.swing.JPanel createControl(SeriesEditorDialog.SeriesEditorModel model)
model - Source of display dataprotected java.lang.Object getValue()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||