|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.loaders.OpenSupport.Env
Environment that connects the support together with DataObject.
Field Summary |
Fields inherited from interface org.openide.windows.CloneableOpenSupport.Env |
PROP_MODIFIED, PROP_VALID |
Constructor Summary | |
OpenSupport.Env(DataObject obj)
Constructor. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds property listener. |
void |
addVetoableChangeListener(VetoableChangeListener l)
Adds veto listener. |
CloneableOpenSupport |
findCloneableOpenSupport()
Method that allows environment to find its cloneable open support. |
protected void |
firePropertyChange(String name,
Object oldValue,
Object newValue)
Fires property change. |
protected void |
fireVetoableChange(String name,
Object oldValue,
Object newValue)
Fires vetoable change. |
protected DataObject |
getDataObject()
Getter for data object. |
boolean |
isModified()
Test whether the object is modified or not. |
boolean |
isValid()
Test whether the support is in valid state or not. |
void |
markModified()
Support for marking the environement modified. |
void |
propertyChange(PropertyChangeEvent ev)
Accepts property changes from DataObject and fires them to own listeners. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes property listener. |
void |
removeVetoableChangeListener(VetoableChangeListener l)
Removes veto listener. |
void |
unmarkModified()
Reverse method that can be called to make the environment unmodified. |
void |
vetoableChange(PropertyChangeEvent ev)
Accepts vetoable changes and fires them to own listeners. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public OpenSupport.Env(DataObject obj)
obj
- data object to be attached toMethod Detail |
protected final DataObject getDataObject()
public void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener
in interface CloneableOpenSupport.Env
public void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener
in interface CloneableOpenSupport.Env
public void addVetoableChangeListener(VetoableChangeListener l)
addVetoableChangeListener
in interface CloneableOpenSupport.Env
public void removeVetoableChangeListener(VetoableChangeListener l)
removeVetoableChangeListener
in interface CloneableOpenSupport.Env
public boolean isValid()
isValid
in interface CloneableOpenSupport.Env
public boolean isModified()
isModified
in interface CloneableOpenSupport.Env
public void markModified() throws IOException
markModified
in interface CloneableOpenSupport.Env
IOException
- if the environment cannot be marked modified
(for example when the file is readonly), when such exception
is the support should discard all previous changespublic void unmarkModified()
unmarkModified
in interface CloneableOpenSupport.Env
public CloneableOpenSupport findCloneableOpenSupport()
findCloneableOpenSupport
in interface CloneableOpenSupport.Env
public void propertyChange(PropertyChangeEvent ev)
propertyChange
in interface PropertyChangeListener
public void vetoableChange(PropertyChangeEvent ev) throws PropertyVetoException
vetoableChange
in interface VetoableChangeListener
PropertyVetoException
protected void firePropertyChange(String name, Object oldValue, Object newValue)
name
- the name of property that changedoldValue
- old valuenewValue
- new valueprotected void fireVetoableChange(String name, Object oldValue, Object newValue) throws PropertyVetoException
name
- the name of property that changedoldValue
- old valuenewValue
- new value
PropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |