|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
dsto.dfc.swing.undo.ParametersPanel
public class ParametersPanel
Shows details of a monitored edit, including its parameters in a table.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected UndoableEdit |
edit
The UndoableEdit selected in the EditListView. |
protected EditListView |
editListView
A link to the EditListView where the edit is displayed. |
static int |
MAX_PARAMETERS
Maximum number of parameters displayable for a single edit. |
protected JTable |
parametersTable
|
protected JScrollPane |
tableScroller
|
| 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 |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ParametersPanel(EditListView editListView)
Creates a ParametersPanel which listens to editListView for
changes in edit selection. |
|
| Method Summary | |
|---|---|
protected void |
clearTable()
Clear the table's contents. |
protected void |
displayParameters(MonitoredEdit newEdit)
Fill the table with the edit's parameters and their values. |
protected void |
displayParameters(Object[] names,
Object[] values)
Display in the table the parameter names and values. |
UndoableEdit |
getEdit()
Accessor for the selected UndoableEdit. |
void |
setEdit(UndoableEdit newEdit)
Change the edit managed to newEdit and redisplay the parameter table. |
void |
setEditable(boolean editable)
Sets the property of the parameters table which allows its cells to be edited. |
void |
valueChanged(ListSelectionEvent e)
Updates the parameters table when the selected edit changes. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static int MAX_PARAMETERS
protected UndoableEdit edit
UndoableEdit selected in the EditListView.
protected EditListView editListView
EditListView where the edit is displayed.
protected JScrollPane tableScroller
protected JTable parametersTable
| Constructor Detail |
|---|
public ParametersPanel(EditListView editListView)
ParametersPanel which listens to editListView for
changes in edit selection.
| Method Detail |
|---|
public UndoableEdit getEdit()
UndoableEdit.
public void setEdit(UndoableEdit newEdit)
MonitoredEdits can have their parameters displayed.
public void setEditable(boolean editable)
protected void displayParameters(MonitoredEdit newEdit)
protected void clearTable()
protected void displayParameters(Object[] names,
Object[] values)
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||