public abstract class UpdateAction extends ShortCut implements javax.swing.Action
限定符和类型 | 类和说明 |
---|---|
static class |
UpdateAction.ComponentRemoveEvent |
static class |
UpdateAction.UseMenuItem
全局style的菜单
|
CURRENT_LEVEL, TEMPLATE_TREE
构造器和说明 |
---|
UpdateAction()
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
static UICheckBoxMenuItem |
createCheckBoxMenuItem(UpdateAction action) |
UIMenuItem |
createMenuItem()
Gets menu item.
|
UIMenuEastAttrItem |
createMenuItemEastAttr() |
javax.swing.JComponent |
createToolBarComponent()
Gets component on toolbar.
|
UpdateAction.UseMenuItem |
createUseMenuItem()
Gets menu item.
|
boolean |
equals(java.lang.Object object)
Equals
|
void |
generateAndSetSearchText(java.lang.String paneClass) |
javax.swing.KeyStroke |
getAccelerator()
Returns the key used for storing a
KeyStroke to be used as the
accelerator for the action. |
java.lang.String |
getComponentTexts(javax.swing.JPanel panel,
java.lang.String separator,
java.lang.StringBuffer text,
java.lang.StringBuffer pinyin,
java.lang.StringBuffer shortPinyin)
遍历面板中所有控件,获取text用于alphafine的action搜索,考虑分词,拼音,首字母检索
|
char |
getMnemonic()
Returns the mnemonic property setting.
|
java.lang.String |
getName()
Returns the name for the action, used for a menu or button.
|
java.lang.String |
getSearchText()
获取搜索匹配字符串
|
javax.swing.Icon |
getSmallIcon()
Returns the smallIcon property setting.
|
protected java.lang.String |
getToolTipText()
重写此方法,可以自定义 action 的提示文字
|
java.lang.Object |
getValue(java.lang.String key)
Gets the
Object associated with the specified key. |
int |
hashCode() |
void |
intoJPopupMenu(javax.swing.JPopupMenu menu)
将改菜单添加到menul里面去
|
void |
intoJToolBar(javax.swing.JToolBar toolBar)
将该菜单添加到工具栏里面去
|
boolean |
isEnabled()
Returns true if the action is enabled.
|
void |
putValue(java.lang.String key,
java.lang.Object newValue)
Sets the
Value associated with the specified key. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener) |
void |
setAccelerator(javax.swing.KeyStroke accelerator)
Sets the key used for storing a
KeyStroke to be used as the
accelerator for the action. |
void |
setEnabled(boolean newValue)
Enables or disables the action.
|
void |
setMnemonic(char mnemonic)
Sets the mnemonic property.
|
void |
setName(java.lang.String name)
Sets the name for the action, used for a menu or button.
|
void |
setSearchText(java.lang.String text) |
void |
setSmallIcon(javax.swing.Icon smallIcon)
Sets the smallIcon property.
|
void |
setSmallIcon(javax.swing.Icon[] smallIcon,
boolean white) |
void |
update()
update enable
|
asToolBarDef, currentAPILevel, getMenuKeySet, mark4Provider, notifyFromAuhtorityChange, setMenuKeySet
public boolean isEnabled()
public void setEnabled(boolean newValue)
setEnabled
在接口中 javax.swing.Action
setEnabled
在类中 ShortCut
newValue
- true to enable the action, false to
disable itAction.setEnabled(boolean)
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the name for the action.public javax.swing.Icon getSmallIcon()
public void setSmallIcon(javax.swing.Icon smallIcon)
smallIcon
- The small icon for the action.public void setSmallIcon(javax.swing.Icon[] smallIcon, boolean white)
public char getMnemonic()
public void setMnemonic(char mnemonic)
mnemonic
- The mnemonic character for the actionpublic javax.swing.KeyStroke getAccelerator()
KeyStroke
to be used as the
accelerator for the action.public void setAccelerator(javax.swing.KeyStroke accelerator)
KeyStroke
to be used as the
accelerator for the action.accelerator
- the key as the accelerator for the action.public void update()
public java.lang.Object getValue(java.lang.String key)
Object
associated with the specified key.getValue
在接口中 javax.swing.Action
key
- a string containing the specified key
Object
stored with this key; if there
are no keys, it will return null
Action.getValue(java.lang.String)
public void putValue(java.lang.String key, java.lang.Object newValue)
Value
associated with the specified key.putValue
在接口中 javax.swing.Action
key
- the String
that identifies the stored objectnewValue
- the Object
to store using this keyAction.putValue(java.lang.String, java.lang.Object)
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
在接口中 javax.swing.Action
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
removePropertyChangeListener
在接口中 javax.swing.Action
public UIMenuItem createMenuItem()
public UIMenuEastAttrItem createMenuItemEastAttr()
public javax.swing.JComponent createToolBarComponent()
protected java.lang.String getToolTipText()
public boolean equals(java.lang.Object object)
equals
在类中 AbstractProvider
public int hashCode()
hashCode
在类中 AbstractProvider
public void intoJPopupMenu(javax.swing.JPopupMenu menu)
ShortCut
intoJPopupMenu
在类中 ShortCut
menu
- 添加到的menupublic void intoJToolBar(javax.swing.JToolBar toolBar)
ShortCut
intoJToolBar
在类中 ShortCut
toolBar
- 工具栏public UpdateAction.UseMenuItem createUseMenuItem()
public static UICheckBoxMenuItem createCheckBoxMenuItem(UpdateAction action)
public void generateAndSetSearchText(java.lang.String paneClass)
public void setSearchText(java.lang.String text)
public java.lang.String getSearchText()
public java.lang.String getComponentTexts(javax.swing.JPanel panel, java.lang.String separator, java.lang.StringBuffer text, java.lang.StringBuffer pinyin, java.lang.StringBuffer shortPinyin)
panel
- separator
- text
- pinyin
- shortPinyin
-