com.supermap.desktop.core.Interface
接口 IBaseItem
-
public interface IBaseItem功能执行绑定的控件
-
-
方法概要
所有方法 实例方法 抽象方法 限定符和类型 方法和说明 ICtrlActiongetCtrlAction()获取或设置触发控件事件时所要运行的内容。java.lang.StringgetCustomProperty()获取自定义信息java.lang.StringgetID()获取控件的唯一标识名称。intgetIndex()获取控件的索引值,控件的索引值用来对处于同一层次内的 Ribbon 控件进行位置的排列。java.lang.StringgetText()获取文本信息com.supermap.desktop.core.ui.XMLCommandBasegetXMLCommand()获取对应的配置信息booleanisChecked()获取控件是否选中。booleanisEnabled()获取控件对象是否可用。booleanisIgnoreEvent()改变状态又不想触发事件时使用booleanisVisible()获取控件是否可见。voidsetChecked(boolean checked)设置控件是否选中voidsetCtrlAction(ICtrlAction ctrlAction)设置触发控件事件时所要运行的内容voidsetEnabled(boolean enabled)设置功能是否可用voidsetIgnoreEvent(boolean isIgnoreEvent)设置是否不响应事件voidsetIndex(int index)设置控件的索引值voidsetVisible(boolean visible)设置控件是否可见。
-
-
-
方法详细资料
-
isEnabled
boolean isEnabled()
获取控件对象是否可用。
-
setEnabled
void setEnabled(boolean enabled)
设置功能是否可用
-
isVisible
boolean isVisible()
获取控件是否可见。
-
setVisible
void setVisible(boolean visible)
设置控件是否可见。
-
isChecked
boolean isChecked()
获取控件是否选中。
-
setChecked
void setChecked(boolean checked)
设置控件是否选中
-
getIndex
int getIndex()
获取控件的索引值,控件的索引值用来对处于同一层次内的 Ribbon 控件进行位置的排列。
-
setIndex
void setIndex(int index)
设置控件的索引值- 参数:
index-
-
getID
java.lang.String getID()
获取控件的唯一标识名称。
-
getCtrlAction
ICtrlAction getCtrlAction()
获取或设置触发控件事件时所要运行的内容。
-
setCtrlAction
void setCtrlAction(ICtrlAction ctrlAction)
设置触发控件事件时所要运行的内容- 参数:
ctrlAction-
-
getText
java.lang.String getText()
获取文本信息
-
getCustomProperty
java.lang.String getCustomProperty()
获取自定义信息
-
isIgnoreEvent
boolean isIgnoreEvent()
改变状态又不想触发事件时使用
-
setIgnoreEvent
void setIgnoreEvent(boolean isIgnoreEvent)
设置是否不响应事件
-
getXMLCommand
com.supermap.desktop.core.ui.XMLCommandBase getXMLCommand()
获取对应的配置信息
-
-