102 lines
5.6 KiB
Java
102 lines
5.6 KiB
Java
/*
|
|
* Copyright (c) 2003,2009 Declarative Engineering LLC.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Declarative Engineering LLC
|
|
* verson 1 which accompanies this distribution, and is available at
|
|
* http://declarativeengineering.com/legal/DE_Developer_License_v1.txt
|
|
*/
|
|
package com.foundation.tcv.swt;
|
|
|
|
import org.eclipse.swt.SWT;
|
|
|
|
public interface ITextField extends IScrollableComponent {
|
|
public static final int STYLE_MULTI = SWT.MULTI;
|
|
public static final int STYLE_SINGLE = SWT.SINGLE;
|
|
public static final int STYLE_LEFT = SWT.LEFT;
|
|
public static final int STYLE_CENTER = SWT.CENTER;
|
|
public static final int STYLE_RIGHT = SWT.RIGHT;
|
|
public static final int STYLE_READ_ONLY = SWT.READ_ONLY;
|
|
public static final int STYLE_WRAP = SWT.WRAP;
|
|
|
|
public static final int MESSAGE_SET_VALUE = IScrollableComponent.LAST_MESSAGE_NUMBER + 1;
|
|
public static final int MESSAGE_SET_VERIFY_VALUE = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
|
|
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_VALUE = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
|
|
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_VALUE_DELAY = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
|
|
public static final int MESSAGE_SET_SHADOW_TEXT = IScrollableComponent.LAST_MESSAGE_NUMBER + 5;
|
|
public static final int MESSAGE_SET_SHADOW_TEXT_COLOR = IScrollableComponent.LAST_MESSAGE_NUMBER + 6;
|
|
public static final int MESSAGE_SET_SELECT_ON_FOCUS = IScrollableComponent.LAST_MESSAGE_NUMBER + 7;
|
|
public static final int MESSAGE_INITIALIZE_FORMAT = IScrollableComponent.LAST_MESSAGE_NUMBER + 8;
|
|
public static final int MESSAGE_FORMAT_MESSAGE = IScrollableComponent.LAST_MESSAGE_NUMBER + 9; //Pass the message to the format object using the secondary integer as the format's message number.//
|
|
public static final int LAST_MESSAGE_NUMBER = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
|
|
|
|
public static final int DATA_TYPE_STRING = 0;
|
|
public static final int DATA_TYPE_BOOLEAN = 1;
|
|
public static final int DATA_TYPE_BYTE = 2;
|
|
public static final int DATA_TYPE_SHORT = 3;
|
|
public static final int DATA_TYPE_INTEGER = 4;
|
|
public static final int DATA_TYPE_LONG = 5;
|
|
public static final int DATA_TYPE_FLOAT = 6;
|
|
public static final int DATA_TYPE_DOUBLE = 7;
|
|
public static final int DATA_TYPE_DATE = 8;
|
|
public static final int DATA_TYPE_BIG_DECIMAL = 9;
|
|
|
|
//The formats provided by text field.//
|
|
public static final int FORMAT_INTEGER = 0;
|
|
public static final int FORMAT_FLOAT = 1;
|
|
public static final int FORMAT_TEXT = 2;
|
|
public static final int FORMAT_CURRENCY = 3;
|
|
public static final int FORMAT_PERCENT = 4;
|
|
|
|
public interface IFormat {
|
|
public static final int LAST_MESSAGE_NUMBER = 0;
|
|
}//IFormat//
|
|
|
|
public interface ITextFormat extends IFormat {
|
|
public static final int MESSAGE_SET_ECHO_CHARACTER = IFormat.LAST_MESSAGE_NUMBER + 1;
|
|
public static final int MESSAGE_SYNCHRONIZE_VALUE = IFormat.LAST_MESSAGE_NUMBER + 2;
|
|
public static final int MESSAGE_SET_VALUE = IFormat.LAST_MESSAGE_NUMBER + 3;
|
|
public static final int MESSAGE_SET_ORIGINAL_VALUE = IFormat.LAST_MESSAGE_NUMBER + 4;
|
|
public static final int MESSAGE_SET_USE_NULL = IFormat.LAST_MESSAGE_NUMBER + 5;
|
|
public static final int LAST_MESSAGE_NUMBER = IFormat.LAST_MESSAGE_NUMBER + 6;
|
|
}//ITextFormat//
|
|
|
|
public interface IIntegerFormat extends IFormat {
|
|
public static final int MESSAGE_SYNCHRONIZE_VALUE = IFormat.LAST_MESSAGE_NUMBER + 1;
|
|
public static final int MESSAGE_SET_VALUE = IFormat.LAST_MESSAGE_NUMBER + 2;
|
|
public static final int MESSAGE_SET_LOCALE = IFormat.LAST_MESSAGE_NUMBER + 3;
|
|
public static final int MESSAGE_SET_MAX_INTEGER_DIGITS = IFormat.LAST_MESSAGE_NUMBER + 4;
|
|
public static final int MESSAGE_SET_MIN_INTEGER_DIGITS = IFormat.LAST_MESSAGE_NUMBER + 5;
|
|
public static final int MESSAGE_SET_GROUP = IFormat.LAST_MESSAGE_NUMBER + 6;
|
|
public static final int MESSAGE_SET_MODEL_TYPE = IFormat.LAST_MESSAGE_NUMBER + 7;
|
|
public static final int MESSAGE_SET_MAX_VALUE = IFormat.LAST_MESSAGE_NUMBER + 8;
|
|
public static final int MESSAGE_SET_MIN_VALUE = IFormat.LAST_MESSAGE_NUMBER + 9;
|
|
public static final int MESSAGE_SET_FORMAT = IFormat.LAST_MESSAGE_NUMBER + 10;
|
|
public static final int MESSAGE_SET_REALTIME = IFormat.LAST_MESSAGE_NUMBER + 11;
|
|
public static final int MESSAGE_SET_NEGATIVE_COLOR = IFormat.LAST_MESSAGE_NUMBER + 12;
|
|
public static final int MESSAGE_SET_ORIGINAL_VALUE = IFormat.LAST_MESSAGE_NUMBER + 13;
|
|
public static final int MESSAGE_SET_DEFAULT_VALUE = IFormat.LAST_MESSAGE_NUMBER + 14;
|
|
public static final int LAST_MESSAGE_NUMBER = IFormat.LAST_MESSAGE_NUMBER + 14;
|
|
|
|
public static final int DATA_TYPE_BYTE = 0;
|
|
public static final int DATA_TYPE_SHORT = 1;
|
|
public static final int DATA_TYPE_INTEGER = 2;
|
|
public static final int DATA_TYPE_LONG = 3;
|
|
public static final int DATA_TYPE_FLOAT = 4;
|
|
public static final int DATA_TYPE_DOUBLE = 5;
|
|
public static final int DATA_TYPE_BIG_DECIMAL = 6;
|
|
}//IIntegerFormat//
|
|
|
|
public interface IFloatFormat extends IIntegerFormat {
|
|
public static final int MESSAGE_SET_MAX_FRACTION_DIGITS = IIntegerFormat.LAST_MESSAGE_NUMBER + 1;
|
|
public static final int MESSAGE_SET_MIN_FRACTION_DIGITS = IIntegerFormat.LAST_MESSAGE_NUMBER + 2;
|
|
public static final int MESSAGE_SET_MULTIPLIER = IIntegerFormat.LAST_MESSAGE_NUMBER + 3;
|
|
public static final int LAST_MESSAGE_NUMBER = IIntegerFormat.LAST_MESSAGE_NUMBER + 3;
|
|
}//IFloatFormat//
|
|
|
|
public interface IPercentFormat extends IFloatFormat {
|
|
public static final int LAST_MESSAGE_NUMBER = IFloatFormat.LAST_MESSAGE_NUMBER + 0;
|
|
}//IPercentFormat//
|
|
|
|
public interface ICurrencyFormat extends IFloatFormat {
|
|
}//ICurrencyFormat//
|
|
}//ITextField// |