|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.undo.AbstractUndoableEdit
dsto.dfc.swing.undo.AbstractMonitoredEdit
dsto.dfc.swing.undo.PropertyEdit
dsto.dfc.swing.undo.PropertyEditBean
dsto.dfc.swing.panels.FloatStateEdit
public class FloatStateEdit
Edit to represent a change in floating status, customised from the
PropertyEdit for its display name.
| Field Summary | |
|---|---|
protected int |
panelIndex
|
protected PanelManager |
panelManager
|
protected String |
panelName
|
| Fields inherited from class dsto.dfc.swing.undo.PropertyEdit |
|---|
newValue, oldValue, propertyName, source |
| Fields inherited from class dsto.dfc.swing.undo.AbstractMonitoredEdit |
|---|
alive, ICON, parameterNames, parameterValues |
| Fields inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
RedoName, UndoName |
| Fields inherited from interface dsto.dfc.swing.icons.Iconic |
|---|
NULL_ICON |
| Constructor Summary | |
|---|---|
FloatStateEdit()
For bean serialisation only |
|
FloatStateEdit(PanelManager panelManager,
int panelIndex,
String oldState,
String newState)
|
|
| Method Summary | |
|---|---|
boolean |
canRedo()
|
boolean |
canUndo()
|
String |
getDescription()
Returns a description of this type of UndoableEdit. |
Icon |
getIcon()
The small (16x16) icon for the object. |
protected String |
getNameForPanelType()
|
int |
getPanelIndex()
|
String |
getPanelName()
|
String |
getPresentationName()
Returns a presentation name of the form: |
Object |
getSource()
Overridden to prevent PanelManager.Panel serialisation attempt. |
void |
redo()
Sets the PropertyEdit.source's propertyName value to newValue. |
void |
restoreContext(HashMap context)
|
void |
setPanelIndex(int newPanelIndex)
|
void |
setPanelName(String newPanelName)
|
void |
setSource(Object newSource)
Overridden to prevent PanelManager.Panel serialisation attempt. |
void |
undo()
Sets the PropertyEdit.source's propertyName value to oldValue. |
protected void |
writeSource(ObjectOutputStream out)
Override this method if your PropertyEdit.source is not serialisable. |
| Methods inherited from class dsto.dfc.swing.undo.PropertyEditBean |
|---|
getNewValue, getOldValue, setNewValue, setOldValue |
| Methods inherited from class dsto.dfc.swing.undo.PropertyEdit |
|---|
getPropertyName, getRedoPresentationName, getUndoPresentationName, setPropertyName, setPropertyValue, writeValue |
| Methods inherited from class dsto.dfc.swing.undo.AbstractMonitoredEdit |
|---|
clone, die, getLargeIcon, getName, getParameterNames, getParameterValues, setParameterNames, setParameterValues |
| Methods inherited from class javax.swing.undo.AbstractUndoableEdit |
|---|
addEdit, isSignificant, replaceEdit, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.undo.UndoableEdit |
|---|
addEdit, isSignificant, replaceEdit |
| Field Detail |
|---|
protected transient PanelManager panelManager
protected int panelIndex
protected String panelName
| Constructor Detail |
|---|
public FloatStateEdit()
public FloatStateEdit(PanelManager panelManager,
int panelIndex,
String oldState,
String newState)
| Method Detail |
|---|
public Object getSource()
getSource in class PropertyEditBeanpublic void setSource(Object newSource)
setSource in class PropertyEditBeanpublic void setPanelIndex(int newPanelIndex)
public int getPanelIndex()
public void setPanelName(String newPanelName)
public String getPanelName()
public String getDescription()
PropertyEditUndoableEdit.
getDescription in interface MonitoredEditgetDescription in class PropertyEditBeanpublic void undo()
PropertyEditPropertyEdit.source's propertyName value to oldValue.
undo in interface UndoableEditundo in class PropertyEditpublic void redo()
PropertyEditPropertyEdit.source's propertyName value to newValue.
redo in interface UndoableEditredo in class PropertyEditpublic boolean canUndo()
canUndo in interface UndoableEditcanUndo in class AbstractMonitoredEditpublic boolean canRedo()
canRedo in interface UndoableEditcanRedo in class AbstractMonitoredEditpublic String getPresentationName()
PropertyEdit"If thePropertyEdit.source" change "PropertyEdit.propertyName[PropertyEdit.oldValue} ->PropertyEdit.newValue]@quot;
Object.toString() methods of the PropertyEdit.source,
PropertyEdit.oldValue, or PropertyEdit.newValue are memory references, then their
class name is displayed instead for readability purposes.
getPresentationName in interface UndoableEditgetPresentationName in class PropertyEditprotected String getNameForPanelType()
public Icon getIcon()
Iconic
getIcon in interface IconicgetIcon in class AbstractMonitoredEditpublic void restoreContext(HashMap context)
restoreContext in interface RestorablerestoreContext in class AbstractMonitoredEdit
protected void writeSource(ObjectOutputStream out)
throws IOException
PropertyEditPropertyEdit.source is not serialisable. Make sure
that only one Object is written to the out stream,
however.
writeSource in class PropertyEditIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||