|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.SharedClassObject org.openide.options.SystemOption org.openide.options.ContextSystemOption
Provides a group of system options with this as the parent.
You must still implement SystemOption.displayName()
, at least.
The suboptions are automatically saved as a group.
Field Summary | |
protected BeanContext |
beanContext
Deprecated. To obtain bean context use getBeanContextProxy() . |
Constructor Summary | |
ContextSystemOption()
Default constructor. |
Method Summary | |
void |
addOption(SystemOption so)
Add a new option to the set. |
BeanContextChild |
getBeanContextProxy()
|
SystemOption[] |
getOptions()
Get all options in the set. |
protected void |
initialize()
Initialize shared state. |
void |
readExternal(ObjectInput in)
Read all properties of this object (or subclasses) from an object input. |
void |
removeOption(SystemOption so)
Remove an option from the set. |
void |
writeExternal(ObjectOutput out)
Write all properties of this object (or subclasses) to an object output. |
Methods inherited from class org.openide.options.SystemOption |
clearSharedData, displayName, firePropertyChange, getHelpCtx, getName, isReadExternal, isWriteExternal, reset |
Methods inherited from class org.openide.util.SharedClassObject |
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, getLock, getProperty, hashCode, putProperty, putProperty, removeNotify, removePropertyChangeListener, writeReplace |
Methods inherited from class java.lang.Object |
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected BeanContext beanContext
getBeanContextProxy()
.
Constructor Detail |
public ContextSystemOption()
Method Detail |
public final void addOption(SystemOption so)
so
- the option to addpublic final void removeOption(SystemOption so)
so
- the option to removepublic final SystemOption[] getOptions()
public final BeanContextChild getBeanContextProxy()
getBeanContextProxy
in interface BeanContextProxy
protected void initialize()
SharedClassObject
SharedClassObject.putProperty(java.lang.Object, java.lang.Object)
to set up variables.
Subclasses should always call the super method.
This method need not be called explicitly; it will be called once the first time a given shared class is used (not for each instance!).
initialize
in class SharedClassObject
public void writeExternal(ObjectOutput out) throws IOException
SystemOption
writeExternal
in interface Externalizable
writeExternal
in class SystemOption
out
- the output stream
IOException
- on errorpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
SystemOption
readExternal
in interface Externalizable
readExternal
in class SystemOption
in
- the input stream
IOException
- on error
ClassNotFoundException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |