|
org.netbeans.modules.editor/3 1.32.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.SharedClassObject
org.openide.options.SystemOption
org.netbeans.modules.editor.options.OptionSupport
public class OptionSupport
Options for the base editor kit
Constructor Summary | |
---|---|
OptionSupport(Class kitClass,
String typeName)
Construct new option support. |
Method Summary | |
---|---|
String |
displayName()
|
void |
doSetSettingValue(String settingName,
Object newValue,
String propertyName)
|
Class |
getKitClass()
|
protected boolean |
getSettingBoolean(String settingName)
Get the value of the boolean setting from the Settings |
protected int |
getSettingInteger(String settingName)
Get the value of the integer setting from the Settings |
protected String |
getSettingsInitializerName()
Get the name of the Settings.Initializer related
to these options. |
Object |
getSettingValue(String settingName)
Get the value of the setting from the Settings |
protected String |
getString(String s)
|
String |
getTypeName()
|
static String |
getTypeName(Class kitClass)
|
static String[] |
mergeStringArrays(String[] a1,
String[] a2)
Helper method for merging string arrays without searching for the same strings. |
protected void |
setSettingBoolean(String settingName,
boolean newValue,
String propertyName)
Enables easier handling of the boolean settings. |
protected void |
setSettingInteger(String settingName,
int newValue,
String propertyName)
Enables easier handling of the integer settings. |
void |
setSettingValue(String settingName,
Object newValue)
Can be used when the settingName is the same as the propertyName |
void |
setSettingValue(String settingName,
Object newValue,
String propertyName)
Set the value into the Settings and optionally
fire the property change. |
protected void |
updateSettingsMap(Class kitClass,
Map settingsMap)
|
Methods inherited from class org.openide.options.SystemOption |
---|
clearSharedData, firePropertyChange, getHelpCtx, getName, isReadExternal, isWriteExternal, readExternal, reset, writeExternal |
Methods inherited from class org.openide.util.SharedClassObject |
---|
addNotify, addPropertyChangeListener, equals, finalize, findObject, findObject, getLock, getProperty, hashCode, initialize, putProperty, putProperty, removeNotify, removePropertyChangeListener, writeReplace |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionSupport(Class kitClass, String typeName)
kitClass
- class of the editorr kit for which this support is constructed.typeName
- nameMethod Detail |
---|
public Class getKitClass()
public String getTypeName()
public static String getTypeName(Class kitClass)
public String displayName()
displayName
in class SystemOption
public Object getSettingValue(String settingName)
Settings
settingName
- name of the setting to get.protected final boolean getSettingBoolean(String settingName)
Settings
settingName
- name of the setting to get.protected final int getSettingInteger(String settingName)
Settings
settingName
- name of the setting to get.public void setSettingValue(String settingName, Object newValue)
public void setSettingValue(String settingName, Object newValue, String propertyName)
Settings
and optionally
fire the property change.
settingName
- name of the setting to changenewValue
- new value of the settingpropertyName
- if non-null it means that the property change
should be fired if the newValue is differernt from the old one.
Firing is performed using the given property name. Nothing is fired
when it's set to null.public void doSetSettingValue(String settingName, Object newValue, String propertyName)
protected void setSettingBoolean(String settingName, boolean newValue, String propertyName)
settingName
- name of the setting to changenewValue
- new boolean value of the settingpropertyName
- if non-null it means that the property change
should be fired if the newValue is differernt from the old one.
Firing is performed using the given property name. Nothing is fired
when it's set to null.protected void setSettingInteger(String settingName, int newValue, String propertyName)
settingName
- name of the setting to changenewValue
- new integer value of the settingpropertyName
- if non-null it means that the property change
should be fired if the newValue is differernt from the old one.
Firing is performed using the given property name. Nothing is fired
when it's set to null.protected String getString(String s)
public static String[] mergeStringArrays(String[] a1, String[] a2)
a1
- array that will be at the begining of the resulting arraya1
- array that will be at the end of the resulting arrayprotected String getSettingsInitializerName()
Settings.Initializer
related
to these options.
protected void updateSettingsMap(Class kitClass, Map settingsMap)
|
org.netbeans.modules.editor/3 1.32.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |