|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.jidesoft.shortcut.ShortcutEditor
public class ShortcutEditor
ShortcutEditor
is an editor for ShortcutSchemaManager
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected JButton |
_assignButton
|
protected JList |
_commandsList
|
protected JComboBox |
_contextComboBox
|
protected JButton |
_copyButton
|
protected JButton |
_deleteButton
|
protected QuickFilterField |
_filterField
|
protected JCheckBox |
_overriddenOnlyCheckBox
|
protected JLabel |
_parentSchemaLabel
|
protected JButton |
_removeButton
|
protected JList |
_schemaList
|
protected DefaultListModel |
_schemaListModel
|
protected JButton |
_setActiveButton
|
protected ShortcutField |
_shortcutField
|
protected com.jidesoft.shortcut.ShortcutLabel |
_shortcutLabel
|
protected JComboBox |
_shortcutsComboBox
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
ShortcutEditor(ShortcutSchemaManager manager)
|
|
ShortcutEditor(ShortcutSchemaManager manager,
boolean allowMultipleShortcuts)
|
|
ShortcutEditor(ShortcutSchemaManager manager,
String[] contexts)
Creates ShortcutEditor. |
|
ShortcutEditor(ShortcutSchemaManager manager,
String[] contexts,
boolean multipleShortcutsAllowed)
Creates ShortcutEditor. |
Method Summary | |
---|---|
protected JPanel |
createConflictingShortcutPanel()
Creates the panel for the conflicting shortcuts. |
protected JPanel |
createEditingShortcutPanel()
Creates the editing panel for the shortcut. |
protected JPanel |
createExistingShortcutPanel()
Creates the panel for the existing shortcut. |
protected QuickFilterField |
createFilterField()
Creates a QuickListFilterField for the command JList. |
protected ListCellRenderer |
createListCellRenderer()
Creates the list cell renderer for the list. |
protected JPanel |
createSchemaPanel()
Creates the panel that contains the schema JList as well as the buttons for it. |
protected ShortcutField |
createShortcutField()
Creates the shortcut field. |
protected JPanel |
createShortcutFilterPanel()
Creates the panel that contains the shortcut filter field. |
protected JPanel |
createShortcutListPanel()
Create the panel that contains the shortcut JList. |
QuickFilterField |
getFilterField()
|
protected ResourceBundle |
getResourceBundle()
Gets the resource bundle for the ShortcutEditor. |
String |
getSelectedCommand()
|
ShortcutSchema |
getSelectedShortcutSchema()
|
ShortcutField |
getShortcutField()
Gets the ShortcutField. |
ShortcutSchemaManager |
getShortcutSchemaManager()
|
protected void |
initComponents()
|
protected void |
initData(boolean keepSelection)
|
boolean |
isConflictedShortcutsAllowed()
|
boolean |
isMultipleShortcutsAllowed()
|
boolean |
isNewShortcutOnTop()
Get the flag indicating if the new shortcut should be inserted in the first place of the list. |
protected void |
selectedCommandChanged(boolean selectLast)
This method is called when the selected command is changed. |
protected void |
selectedSchemaChanged()
This method is called when the selected schema is changed in the schema JList. |
void |
setConflictedShortcutsAllowed(boolean conflictedShortcutsAllowed)
|
void |
setNewShortcutOnTop(boolean newShortcutOnTop)
Set the flag indicating if the new shortcut should be inserted in the first place of the list. |
void |
setSelectedCommand(String selectedCommand)
|
void |
setSelectedShortcutSchema(ShortcutSchema selectedShortcutSchema)
|
protected void |
updateCommandList()
Updates the command list after the filtering in the filter field. |
protected void |
updateCommandListModel(QuickFilterField field)
Updates the command JList's list mode based on the filter field's filtered result. |
protected void |
updateEditable()
|
protected void |
updateFilterField(QuickFilterField field,
ListModel model)
Updates the filter field's list model from the command list. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected JList _schemaList
protected JButton _setActiveButton
protected JButton _copyButton
protected JButton _deleteButton
protected JLabel _parentSchemaLabel
protected QuickFilterField _filterField
protected JList _commandsList
protected JCheckBox _overriddenOnlyCheckBox
protected JComboBox _shortcutsComboBox
protected com.jidesoft.shortcut.ShortcutLabel _shortcutLabel
protected JButton _removeButton
protected ShortcutField _shortcutField
protected JButton _assignButton
protected JComboBox _contextComboBox
protected DefaultListModel _schemaListModel
Constructor Detail |
---|
public ShortcutEditor(ShortcutSchemaManager manager)
public ShortcutEditor(ShortcutSchemaManager manager, boolean allowMultipleShortcuts)
public ShortcutEditor(ShortcutSchemaManager manager, String[] contexts)
manager
- the ShortcutSchemaManagercontexts
- a list of contexts. Please note, the first context must be "Global". You can give it a different name if you want such as "Default". But it means if the short cut doesn't
explicitly specified a context, it defaults to this context. Null context in shortcut means this one too.public ShortcutEditor(ShortcutSchemaManager manager, String[] contexts, boolean multipleShortcutsAllowed)
manager
- the ShortcutSchemaManagercontexts
- a list of contexts. Please note, the first context must be "Global". You can give it a different name if you want such as "Default". But it means if the short
cut doesn't explicitly specified a context, it defaults to this context. Null context in shortcut means this one too.multipleShortcutsAllowed
- whether multiple shortcuts is allowed for each command.Method Detail |
---|
protected void initComponents()
protected JPanel createSchemaPanel()
protected void selectedSchemaChanged()
protected JPanel createShortcutFilterPanel()
protected QuickFilterField createFilterField()
protected void initData(boolean keepSelection)
protected void updateCommandList()
protected void updateCommandListModel(QuickFilterField field)
field
- the filter field.protected void updateFilterField(QuickFilterField field, ListModel model)
field
- the filter field.model
- the list model.protected JPanel createShortcutListPanel()
protected ListCellRenderer createListCellRenderer()
protected void selectedCommandChanged(boolean selectLast)
selectLast
- true to select the last command in the shortcutsCombobox.protected JPanel createExistingShortcutPanel()
protected JPanel createEditingShortcutPanel()
protected ShortcutField createShortcutField()
protected JPanel createConflictingShortcutPanel()
protected void updateEditable()
public ShortcutSchema getSelectedShortcutSchema()
public void setSelectedShortcutSchema(ShortcutSchema selectedShortcutSchema)
public String getSelectedCommand()
public void setSelectedCommand(String selectedCommand)
public QuickFilterField getFilterField()
public boolean isMultipleShortcutsAllowed()
public boolean isConflictedShortcutsAllowed()
public void setConflictedShortcutsAllowed(boolean conflictedShortcutsAllowed)
public ShortcutField getShortcutField()
public ShortcutSchemaManager getShortcutSchemaManager()
protected ResourceBundle getResourceBundle()
public boolean isNewShortcutOnTop()
setNewShortcutOnTop(boolean)
public void setNewShortcutOnTop(boolean newShortcutOnTop)
newShortcutOnTop
- the flag
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |