public class hiActionEvent extends ActionEvent
| 修飾子とタイプ | フィールドと説明 |
|---|---|
HashMap<String,Object> |
additional_attributes
追加属性
|
Object |
additional_info
追加情報
|
String[] |
additional_strs
追加文字列情報
|
ACTION_FIRST, ACTION_LAST, ACTION_PERFORMED, ALT_MASK, CTRL_MASK, META_MASK, SHIFT_MASKACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK| コンストラクタと説明 |
|---|
hiActionEvent(ActionEvent original_,
HashMap<String,Object> attributes_)
追加属性付きのActionEvent.
|
hiActionEvent(ActionEvent original_,
Object info_)
追加情報付きのActionEvent.
|
hiActionEvent(ActionEvent original_,
String[] strs_)
追加文字列情報付きのActionEvent.
|
hiActionEvent(Object source,
int id,
String command) |
hiActionEvent(Object source_,
int id_,
String command_,
HashMap<String,Object> attributes_)
追加属性付きのActionEvent.
|
hiActionEvent(Object source,
int id,
String command,
int modifiers) |
hiActionEvent(Object source,
int id,
String command,
long when,
int modifiers) |
hiActionEvent(Object source_,
int id_,
String command_,
Object info_)
追加情報付きのActionEvent.
|
hiActionEvent(Object source_,
int id_,
String command_,
String[] strs_)
追加文字列情報付きのActionEvent.
|
hiActionEvent(String command_,
ActionEvent e_)
command名を変更した、追加文字列情報付きのActionEvent.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static HashMap<String,Object> |
getAttrs(ActionEvent event_)
追加文字列情報取得.
|
static Object |
getInfo(ActionEvent event_)
追加情報取得.
|
static String[] |
getStrings(ActionEvent event_)
追加文字列情報取得.
|
getActionCommand, getModifiers, getWhen, paramStringgetSourcepublic Object additional_info
public String[] additional_strs
public hiActionEvent(Object source_, int id_, String command_, Object info_)
source_ - イベントの発生源id_ - id:ただし制限なしなのでidentifierの約はなさないcommand_ - イベントに関連付けられるコマンドinfo_ - 付加情報public hiActionEvent(ActionEvent original_, Object info_)
元となるeventの内、sourceとid,commandが取り込まれます
original_ - 元となるeventinfo_ - 追加情報public hiActionEvent(Object source_, int id_, String command_, String[] strs_)
source_ - イベントの発生源id_ - id:ただし制限なしなのでidentifierの約はなさないcommand_ - イベントに関連付けられるコマンドstrs_ - 追加文字列public hiActionEvent(String command_, ActionEvent e_)
command_ - コマンドe_ - 元となるeventpublic hiActionEvent(ActionEvent original_, String[] strs_)
元となるeventの内、sourceとid,commandが取り込まれます
original_ - 元となるeventstrs_ - 追加文字列public hiActionEvent(Object source_, int id_, String command_, HashMap<String,Object> attributes_)
source_ - イベントの発生源id_ - id:ただし制限なしなのでidentifierの約はなさないcommand_ - イベントに関連付けられるコマンドattributes_ - 追加属性public hiActionEvent(ActionEvent original_, HashMap<String,Object> attributes_)
元となるeventの内、sourceとid,commandが取り込まれます
original_ - 元となるeventattributes_ - 追加属性public static Object getInfo(ActionEvent event_)
ActionEventから追加情報を取得します。
hiActionEventであった場合情報が取得できます。
hiActionEventでない場合nullがとなります。
class MyListener implements ActionListener{
@Override // ActionListener
public void actionPerformed(ActionEvent e_){
if( "myCommand".equals(e_.getActionCommand() ){
Object _info=e_.getInfo();
if( _info!=null ){
if( _info instanceof MyInfo ){
MyInfo _myInfo=(MyInfo)_info;
// どうしたこうした
}
}
}
// なんだかんだ
}
}
event_ - イベントpublic static String[] getStrings(ActionEvent event_)
ActionEventから追加情報を取得します。
hiActionEventであった場合情報が取得できます。
hiActionEventでない場合nullがとなります。
class MyListener implements ActionListener{
@Override // ActionListener
public void actionPerformed(ActionEvent e_){
if( "selectFiles".equals(e_.getActionCommand() ){
String[] _files=e_.getStrings();
if( _files!=null ){
// どうしたこうした
}
}
}
}
event_ - イベントpublic static HashMap<String,Object> getAttrs(ActionEvent event_)
ActionEventから追加情報を取得します。
hiActionEventであった場合情報が取得できます。
hiActionEventでない場合nullがとなります。
class MyListener implements ActionListener{
@Override // ActionListener
public void actionPerformed(ActionEvent e_){
if( "someCommand".equals(e_.getActionCommand() ){
HashMap<String,Object> _attrs=e_.getAttrs();
if( _attrs!=null ){
// どうしたこうした
}
}
}
}
event_ - イベント