|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectblackboard.data.navigation.ToolSettings
public class ToolSettings
The settings for a tool: whether the tool is available, and whether it's accessible to guests and observers. Also tracks setting locks, and the node at which the setting was created.
| Nested Class Summary | |
|---|---|
static class |
ToolSettings.Availability
Tool availability settings. |
static class |
ToolSettings.SettingNavItem
Enum used to represent the NavigationItem internal handles used for settings. |
static class |
ToolSettings.SettingNavItemFamily
Enum used to represent the NavigationItem families used for settings. |
static class |
ToolSettings.SettingsAttribute
Encapsulates everything interesting about a tool setting: Whether it's enabled Whether it's locked What node it was set at |
static class |
ToolSettings.Type
|
| Field Summary | |
|---|---|
protected Id |
_applicationId
|
protected java.lang.String |
_applicationLabel
|
protected ToolSettings.SettingsAttribute |
_enabled
|
protected ToolSettings.SettingsAttribute |
_guestAllowed
|
protected java.lang.String |
_identifier
|
protected ToolSettings.SettingsAttribute |
_observerAllowed
|
protected ToolSettings.Type |
_type
|
| Constructor Summary | |
|---|---|
ToolSettings(blackboard.platform.plugin.ContentHandler cHandler)
Constructor. |
|
ToolSettings(blackboard.platform.plugin.ContentHandler cHandler,
ToolSettings.SettingsAttribute enabled)
Constructor. |
|
ToolSettings(blackboard.data.navigation.NavigationApplication application,
ToolSettings.Type type)
Constructor. |
|
ToolSettings(blackboard.data.navigation.NavigationApplication application,
ToolSettings.Type type,
ToolSettings.SettingsAttribute toolSetting,
ToolSettings.SettingsAttribute guestSetting,
ToolSettings.SettingsAttribute observerSetting)
Constructor. |
|
| Method Summary | |
|---|---|
blackboard.data.navigation.NavigationApplication |
getApplication()
|
Id |
getApplicationId()
|
java.lang.String |
getApplicationLabel()
|
blackboard.platform.plugin.ContentHandler |
getContentHandler()
|
ToolSettings.SettingsAttribute |
getGuestAllowedSetting()
|
java.lang.String |
getIdentifier()
|
ToolSettings.SettingsAttribute |
getObserverAllowedSetting()
|
ToolSettings.SettingsAttribute |
getToolEnabledSetting()
|
ToolSettings.Type |
getType()
|
protected void |
setGuestAllowedSetting(ToolSettings.SettingsAttribute guestAllowed)
|
protected void |
setObserverAllowedSetting(ToolSettings.SettingsAttribute observerAllowed)
|
protected void |
setToolEnabledSetting(ToolSettings.SettingsAttribute value)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected ToolSettings.Type _type
protected java.lang.String _applicationLabel
protected java.lang.String _identifier
protected Id _applicationId
protected ToolSettings.SettingsAttribute _enabled
protected ToolSettings.SettingsAttribute _guestAllowed
protected ToolSettings.SettingsAttribute _observerAllowed
| Constructor Detail |
|---|
public ToolSettings(blackboard.data.navigation.NavigationApplication application,
ToolSettings.Type type)
application - The tool to which these settings applytype - The kind of object this setting applies to
public ToolSettings(blackboard.data.navigation.NavigationApplication application,
ToolSettings.Type type,
ToolSettings.SettingsAttribute toolSetting,
ToolSettings.SettingsAttribute guestSetting,
ToolSettings.SettingsAttribute observerSetting)
application - The tool to which these settings applytype - The kind of object this setting applies totoolSetting - Setting for the tool as a wholeguestSetting - Setting for the tool's guest availabilityobserverSetting - Setting for the tool's observer availability
public ToolSettings(blackboard.platform.plugin.ContentHandler cHandler,
ToolSettings.SettingsAttribute enabled)
cHandler - The content handler to create these settings forenabled - The enabled settingpublic ToolSettings(blackboard.platform.plugin.ContentHandler cHandler)
cHandler - The content handler to create these settings for| Method Detail |
|---|
public ToolSettings.SettingsAttribute getToolEnabledSetting()
public ToolSettings.SettingsAttribute getGuestAllowedSetting()
SettingsAttribute.INAPPLICABLE_SETTING if guest access is not applicable to toolToolSettings.SettingsAttribute.INAPPLICABLE_SETTINGpublic ToolSettings.SettingsAttribute getObserverAllowedSetting()
SettingsAttribute.INAPPLICABLE_SETTING if observer access is not applicable to toolToolSettings.SettingsAttribute.INAPPLICABLE_SETTINGprotected void setToolEnabledSetting(ToolSettings.SettingsAttribute value)
protected void setGuestAllowedSetting(ToolSettings.SettingsAttribute guestAllowed)
protected void setObserverAllowedSetting(ToolSettings.SettingsAttribute observerAllowed)
public ToolSettings.Type getType()
public java.lang.String getApplicationLabel()
NavigationApplication.getLabel()public java.lang.String getIdentifier()
public Id getApplicationId()
public blackboard.data.navigation.NavigationApplication getApplication()
public blackboard.platform.plugin.ContentHandler getContentHandler()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||