jnadjustmentevent.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 80 行
JAVA
80 行
package org.jnode.wt.events;
import org.jnode.wt.desktop.JNodeEvent;
/*
* Kishore.
*/
public class JNAdjustmentEvent extends JNodeEvent {
/**
* Marks the first integer id for the range of adjustment event ids.
*/
public static final int ADJUSTMENT_FIRST = 601;
/**
* Marks the last integer id for the range of adjustment event ids.
*/
public static final int ADJUSTMENT_LAST = 601;
/**
* The adjustment value changed event.
*/
public static final int ADJUSTMENT_VALUE_CHANGED = ADJUSTMENT_FIRST; //Event.SCROLL_LINE_UP
/**
* The unit increment adjustment type.
*/
public static final int UNIT_INCREMENT = 1;
/**
* The unit decrement adjustment type.
*/
public static final int UNIT_DECREMENT = 2;
/**
* The block decrement adjustment type.
*/
public static final int BLOCK_DECREMENT = 3;
/**
* The block increment adjustment type.
*/
public static final int BLOCK_INCREMENT = 4;
/**
* The absolute tracking adjustment type.
*/
public static final int TRACK = 5;
int value;
int adjustmentType;
/**
* AdjustmentEvent constructor comment.
*/
public JNAdjustmentEvent(Object source, int id) {
super(source, id);
}
public JNAdjustmentEvent(Object source, int id, int type, int value) {
super(source, id);
this.adjustmentType = type;
this.value = value;
}
public int getAdjustmentType() {
return adjustmentType;
}
public int getValue() {
return value;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?