|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.shortcut.ShortcutSchemaManager
public class ShortcutSchemaManager
ShortcutSchemaManager is a manager for ShortcutSchema.
| Field Summary | |
|---|---|
protected EventListenerList |
_listenerList
List of listeners |
| Constructor Summary | |
|---|---|
ShortcutSchemaManager()
Creates an empty ShortcutSchemaManager. |
|
ShortcutSchemaManager(ShortcutSchemaManager manager)
This is a copy constructor for ShortcutSchemaManager. |
|
| Method Summary | |
|---|---|
void |
addShortcutSchema(ShortcutSchema shortcutSchema)
Adds a ShortcutSchema to ShortcutSchemaManager. |
void |
addShortcutSchemaListener(ShortcutSchemaListener l)
Adds a listener to the list that's notified each time a change to the shortcut schema occurs. |
void |
clear()
Removes all shortcut schema. |
void |
fireShortcutSchemaChanged(ShortcutSchemaEvent e)
Forwards the given notification event to all ShortcutSchemaListener that registered themselves as
listeners for this shortcut schema manager. |
ShortcutSchema |
getActiveShortcutSchema()
Gets active shortcut schema. |
String |
getActiveShortcutSchemaName()
Gets active shortcut schema name. |
ShortcutSchema |
getShortcutSchema(String schemaName)
Gets the ShortcutSchema by its name. |
ShortcutSchemaListener[] |
getShortcutSchemaListeners()
Returns an array of all the shortcut schema listeners registered on this shortcut schema manager. |
ShortcutSchema[] |
getShortcutSchemas()
Gets an array of ShortcutSchema that are managed by this ShortcutSchemaManager. |
String |
getVersion()
Gets an optional version string. |
void |
removeShortcutSchema(String shortcutSchemaName)
Removes the shortcut schema with the specified name. |
void |
removeShortcutSchemaListener(ShortcutSchemaListener l)
Removes a listener from the list that's notified each time a change to the shortcut schema occurs. |
void |
renameSchema(String oldName,
String newName)
Renames the schema. |
void |
setActiveShortcutSchemaName(String schemaName)
Sets active shortcut schema. |
void |
setVersion(String version)
Sets version string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected EventListenerList _listenerList
| Constructor Detail |
|---|
public ShortcutSchemaManager()
ShortcutSchemaManager.
public ShortcutSchemaManager(ShortcutSchemaManager manager)
ShortcutSchemaManager.
manager - | Method Detail |
|---|
public ShortcutSchema[] getShortcutSchemas()
ShortcutSchema that are managed by this ShortcutSchemaManager.
ShortcutSchema.public void addShortcutSchema(ShortcutSchema shortcutSchema)
ShortcutSchema to ShortcutSchemaManager. It will fire SHORTCUT_SCHEMA_ADDED
event.
shortcutSchema -
IllegalArgumentException - if input shortcut schema is null or the name already exists in
ShortcutSchemaManager.public String getActiveShortcutSchemaName()
public ShortcutSchema getActiveShortcutSchema()
public ShortcutSchema getShortcutSchema(String schemaName)
ShortcutSchema by its name.
schemaName -
ShortcutSchema with specified name.public void setActiveShortcutSchemaName(String schemaName)
schemaName -
public void renameSchema(String oldName,
String newName)
oldName - the old namenewName - the new namepublic void removeShortcutSchema(String shortcutSchemaName)
shortcutSchemaName - public void clear()
public void addShortcutSchemaListener(ShortcutSchemaListener l)
l - the SchemaListenerpublic void removeShortcutSchemaListener(ShortcutSchemaListener l)
l - the SchemaListenerpublic ShortcutSchemaListener[] getShortcutSchemaListeners()
SchemaListeners or an empty array if no shortcut schema listeners are
currently registeredaddShortcutSchemaListener(com.jidesoft.shortcut.ShortcutSchemaListener),
removeShortcutSchemaListener(com.jidesoft.shortcut.ShortcutSchemaListener)public void fireShortcutSchemaChanged(ShortcutSchemaEvent e)
ShortcutSchemaListener that registered themselves as
listeners for this shortcut schema manager.
e - the event to be forwardedaddShortcutSchemaListener(com.jidesoft.shortcut.ShortcutSchemaListener),
ShortcutSchemaEventpublic String getVersion()
public void setVersion(String version)
version -
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||