java.io.Serializablepublic static interface CloneableOpenSupport.Env
extends java.io.Serializable
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
PROP_MODIFIED |
that is fired when the objects wants to mark itself modified
or not modified.
|
static java.lang.String |
PROP_VALID |
that is fired when the objects wants to mark itself as
invalid, so all components should be closed.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Adds property listener.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l) |
Adds veto listener.
|
CloneableOpenSupport |
findCloneableOpenSupport() |
Method that allows environment to find its
cloneable open support.
|
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 |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
Removes property listener.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l) |
Removes veto listener.
|
void |
unmarkModified() |
Reverse method that can be called to make the environment
unmodified.
|
static final java.lang.String PROP_VALID
static final java.lang.String PROP_MODIFIED
void addPropertyChangeListener(java.beans.PropertyChangeListener l)
void removePropertyChangeListener(java.beans.PropertyChangeListener l)
void addVetoableChangeListener(java.beans.VetoableChangeListener l)
void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
boolean isValid()
boolean isModified()
void markModified()
throws java.io.IOException
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 changesvoid unmarkModified()
CloneableOpenSupport findCloneableOpenSupport()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.