Initial commit from SVN.

This commit is contained in:
wcrisman
2014-05-30 10:31:51 -07:00
commit b45e56b890
1968 changed files with 370949 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="/Foundation TCV"/>
<classpathentry kind="src" path="/Foundation TCV Client"/>
<classpathentry kind="src" path="/Foundation TCV Server"/>
<classpathentry kind="src" path="/SWT"/>
<classpathentry kind="src" path="/Common"/>
<classpathentry kind="src" path="/Foundation"/>
<classpathentry combineaccessrules="false" kind="src" path="/Foundation SWT"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="bin"/>
</classpath>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Foundation TCV SWT</name>
<comment></comment>
<projects>
<project>Common</project>
<project>Foundation</project>
<project>Foundation TCV</project>
<project>Foundation TCV Client</project>
<project>Foundation TCV Server</project>
<project>SWT</project>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>

View File

@@ -0,0 +1,48 @@
/*
* Copyright (c) 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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public class FillLayoutData extends LayoutData {
public int defaultWidth = org.eclipse.swt.SWT.DEFAULT;
public int defaultHeight = org.eclipse.swt.SWT.DEFAULT;
/**
* FillLayoutData constructor.
*/
public FillLayoutData() {
super();
}//FillLayoutData()//
/* (non-Javadoc)
* @see com.foundation.tcv.swt.LayoutData#createSwtLayoutData(com.foundation.tcv.swt.IControlLocator)
*/
public Object createSwtLayoutData(IControlLocator controlLocator) {
com.foundation.view.swt.layout.FillData data = new com.foundation.view.swt.layout.FillData();
data.defaultWidth = defaultWidth;
data.defaultHeight = defaultHeight;
return data;
}//createSwtLayoutData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
defaultWidth = in.readInt();
defaultHeight = in.readInt();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(defaultWidth);
out.writeInt(defaultHeight);
}//writeExternal()//
}//FillLayoutData//

View File

@@ -0,0 +1,59 @@
/*
* 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;
public class FormAttachment implements java.io.Externalizable {
public int numerator = 0;
public int denominator = 100;
public int offset = 0;
public int control = -1;
public int alignment = org.eclipse.swt.SWT.DEFAULT;
/**
* FormAttachment constructor.
*/
public FormAttachment() {
super();
}//FormAttachment()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException {
numerator = in.readInt();
denominator = in.readInt();
offset = in.readInt();
control = in.readInt();
alignment = in.readInt();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException {
out.writeInt(numerator);
out.writeInt(denominator);
out.writeInt(offset);
out.writeInt(control);
out.writeInt(alignment);
}//writeExternal()//
/**
* Creates an SWT form attachment object.
* @param controlLocator The locator capable of finding the SWT control for a given component number.
* @return The attachment object.
*/
public com.foundation.view.swt.layout.FormAttachment createSwtAttachment(IControlLocator controlLocator) {
com.foundation.view.swt.layout.FormAttachment attachment = null;
if(control != -1) {
attachment = new com.foundation.view.swt.layout.FormAttachment(controlLocator.getControl(control), offset, alignment);
}//if//
else {
attachment = new com.foundation.view.swt.layout.FormAttachment(numerator, denominator, offset);
}//else//
return attachment;
}//createSwtAttachment()//
}//FormAttachment//

View File

@@ -0,0 +1,60 @@
/*
* 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;
public class FormLayoutData extends LayoutData {
public int height = org.eclipse.swt.SWT.DEFAULT;
public int width = org.eclipse.swt.SWT.DEFAULT;
public FormAttachment left = null;
public FormAttachment right = null;
public FormAttachment top = null;
public FormAttachment bottom = null;
/**
* FormLayoutData constructor.
*/
public FormLayoutData() {
super();
}//FormLayoutData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException {
height = in.readInt();
width = in.readInt();
left = (FormAttachment) in.readObject();
right = (FormAttachment) in.readObject();
top = (FormAttachment) in.readObject();
bottom = (FormAttachment) in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException {
out.writeInt(height);
out.writeInt(width);
out.writeObject(left);
out.writeObject(right);
out.writeObject(top);
out.writeObject(bottom);
}//writeExternal()//
/* (non-Javadoc)
* @see com.foundation.tcv.swt.LayoutData#createSwtLayoutData(com.foundation.tcv.swt.IControlLocator)
*/
public Object createSwtLayoutData(IControlLocator controlLocator) {
com.foundation.view.swt.layout.FormData data = new com.foundation.view.swt.layout.FormData();
data.height = height;
data.width = width;
data.left = left == null ? null : left.createSwtAttachment(controlLocator);
data.right = right == null ? null : right.createSwtAttachment(controlLocator);
data.top = top == null ? null : top.createSwtAttachment(controlLocator);
data.bottom = bottom == null ? null : bottom.createSwtAttachment(controlLocator);
return data;
}//createSwtLayoutData()//
}//FormLayoutData//

View File

@@ -0,0 +1,115 @@
/*
* Copyright (c) 2004,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
public class GridLayoutData extends LayoutData {
public static final int CENTER = SWT.CENTER;
public static final int BEGINNING = SWT.BEGINNING;
public static final int END = SWT.END;
public static final int FILL = SWT.FILL;
public static final int FILL_BOTH = com.foundation.view.swt.layout.GridData.FILL_BOTH;
public static final int FILL_HORIZONTAL = com.foundation.view.swt.layout.GridData.FILL_HORIZONTAL;
public static final int FILL_VERTICAL = com.foundation.view.swt.layout.GridData.FILL_VERTICAL;
public static final int GRAB_HORIZONTAL = com.foundation.view.swt.layout.GridData.GRAB_HORIZONTAL;
public static final int GRAB_VERTICAL = com.foundation.view.swt.layout.GridData.GRAB_VERTICAL;
public static final int HORIZONTAL_ALIGN_BEGINNING = com.foundation.view.swt.layout.GridData.HORIZONTAL_ALIGN_BEGINNING;
public static final int HORIZONTAL_ALIGN_CENTER = com.foundation.view.swt.layout.GridData.HORIZONTAL_ALIGN_CENTER;
public static final int HORIZONTAL_ALIGN_END = com.foundation.view.swt.layout.GridData.HORIZONTAL_ALIGN_END;
public static final int HORIZONTAL_ALIGN_FILL = com.foundation.view.swt.layout.GridData.HORIZONTAL_ALIGN_FILL;
public static final int VERTICAL_ALIGN_BEGINNING = com.foundation.view.swt.layout.GridData.VERTICAL_ALIGN_BEGINNING;
public static final int VERTICAL_ALIGN_CENTER = com.foundation.view.swt.layout.GridData.VERTICAL_ALIGN_CENTER;
public static final int VERTICAL_ALIGN_END = com.foundation.view.swt.layout.GridData.VERTICAL_ALIGN_END;
public static final int VERTICAL_ALIGN_FILL = com.foundation.view.swt.layout.GridData.VERTICAL_ALIGN_FILL;
public int verticalAlignment = CENTER;
public int horizontalAlignment = com.foundation.view.swt.layout.GridData.BEGINNING;
public int widthHint = org.eclipse.swt.SWT.DEFAULT;
public int heightHint = org.eclipse.swt.SWT.DEFAULT;
/** A value of -1 would indicate that it should be the same as the hint. */
public int minimumWidth = 0;
/** A value of -1 would indicate that it should be the same as the hint. */
public int minimumHeight = 0;
public int horizontalIndent = 0;
public int horizontalSpan = 1;
public int verticalIndent = 0;
public int verticalSpan = 1;
public boolean grabExcessHorizontalSpace = false;
public boolean grabExcessVerticalSpace = false;
public boolean exclude = false;
/**
* GridLayoutData constructor.
*/
public GridLayoutData() {
super();
}//GridLayoutData()//
/* (non-Javadoc)
* @see com.foundation.tcv.swt.LayoutData#createSwtLayoutData(com.foundation.tcv.swt.IControlLocator)
*/
public Object createSwtLayoutData(IControlLocator controlLocator) {
com.foundation.view.swt.layout.GridData data = new com.foundation.view.swt.layout.GridData();
data.verticalAlignment = verticalAlignment;
data.horizontalAlignment = horizontalAlignment;
data.widthHint = widthHint;
data.heightHint = heightHint;
data.minimumWidth = minimumWidth;
data.minimumHeight = minimumHeight;
data.horizontalIndent = horizontalIndent;
data.horizontalSpan = horizontalSpan;
data.verticalSpan = verticalSpan;
data.grabExcessHorizontalSpace = grabExcessHorizontalSpace;
data.grabExcessVerticalSpace = grabExcessVerticalSpace;
data.exclude = exclude;
return data;
}//createSwtLayoutData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
in.readByte();
verticalAlignment = in.readInt();
horizontalAlignment = in.readInt();
widthHint = in.readInt();
heightHint = in.readInt();
minimumWidth = in.readInt();
minimumHeight = in.readInt();
horizontalIndent = in.readInt();
verticalIndent = in.readInt();
horizontalSpan = in.readInt();
verticalSpan = in.readInt();
grabExcessHorizontalSpace = in.readBoolean();
grabExcessVerticalSpace = in.readBoolean();
exclude = in.readBoolean();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeInt(verticalAlignment);
out.writeInt(horizontalAlignment);
out.writeInt(widthHint);
out.writeInt(heightHint);
out.writeInt(minimumWidth);
out.writeInt(minimumHeight);
out.writeInt(horizontalIndent);
out.writeInt(verticalIndent);
out.writeInt(horizontalSpan);
out.writeInt(verticalSpan);
out.writeBoolean(grabExcessHorizontalSpace);
out.writeBoolean(grabExcessVerticalSpace);
out.writeBoolean(exclude);
}//writeExternal()//
}//GridLayoutData//

View File

@@ -0,0 +1,35 @@
/*
* Copyright (c) 2003,2007 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 com.foundation.tcv.view.IAbstractRemoteViewComponent;
public interface IAbstractComponent extends IAbstractRemoteViewComponent {
public static final int MESSAGE_PING = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_INITIALIZE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_VIEW_INITIALIZE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_VIEW_INITIALIZE_ALL = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_VIEW_RELEASE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_VIEW_RELEASE_ALL = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_VIEW_REFRESH = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_VIEW_REFRESH_ALL = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_VIEW_SYNCHRONIZE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_VIEW_SYNCHRONIZE_ALL = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_ADD_DECORATION = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_REMOVE_DECORATION = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_VIEW_SUSPEND_RENDERING = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_VIEW_RESUME_RENDERING = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_VIEW_INITIALIZATION_COMPLETE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SUSPEND_REDRAW = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_RESUME_REDRAW = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LAST_MESSAGE_NUMBER = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LINK_TARGET_SYNCHRONIZE_ALL = 1;
public static final int LINK_TARGET_SYNCHRONIZE = 2;
public static final int LAST_LINK_TARGET = 2;
}//IAbstractComponent//

View File

@@ -0,0 +1,41 @@
/*
* Copyright (c) 2003,2007 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 IButton extends IComponent {
public static final int STYLE_ARROW = SWT.ARROW;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_PUSH = SWT.PUSH;
public static final int STYLE_RADIO = SWT.RADIO;
public static final int STYLE_TOGGLE = SWT.TOGGLE;
public static final int STYLE_FLAT = SWT.FLAT;
public static final int STYLE_LEFT = SWT.LEFT;
public static final int STYLE_RIGHT = SWT.RIGHT;
public static final int STYLE_CENTER = SWT.CENTER;
public static final int STYLE_UP = SWT.UP;
public static final int STYLE_DOWN = SWT.DOWN;
public static final int MESSAGE_SET_TEXT = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_IMAGE = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_ACCELERATOR = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_IS_SELECTED = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_ADD_SELECTION_LINK = IComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_BLOCK_ON_SELECTIONS = IComponent.LAST_MESSAGE_NUMBER + 10;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 10;
public static final int LINK_TARGET_SELECTION = IComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_IMAGE = IComponent.LAST_LINK_TARGET + 2;
public static final int LINK_TARGET_TEXT = IComponent.LAST_LINK_TARGET + 3;
public static final int LAST_LINK_TARGET = IComponent.LAST_LINK_TARGET + 3;
}//IButton//

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2007 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;
public interface ICardLayout extends ILayout {
public static final int MESSAGE_SET_MARGIN_HEIGHT = ILayout.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MARGIN_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_TOP_INDEX = ILayout.LAST_MESSAGE_NUMBER + 3;
public static final int LAST_MESSAGE_NUMBER = ILayout.LAST_MESSAGE_NUMBER + 3;
}//IFillLayout//

View File

@@ -0,0 +1,41 @@
/*
* 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;
public interface ICollectionComponent extends IScrollableComponent {
public static final int MESSAGE_SEND_DOUBLE_CLICK = IScrollableComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_HIDDEN_DATA_MULTI_SELECT_OPTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_ADD_HIDDEN_DATA = IScrollableComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_ADD_HIDDEN_DATA_LINK = IScrollableComponent.LAST_MESSAGE_NUMBER + 6;
/** The message data is the hidden data value, the message integer is the object identifier and the secondary message integer is the hidden data column index. */
public static final int MESSAGE_UPDATE_HIDDEN_DATA = IScrollableComponent.LAST_MESSAGE_NUMBER + 7;
/** The message data is the hidden data default value, the message integer is the object identifier and the secondary message integer is the hidden data column index. */
public static final int MESSAGE_UPDATE_HIDDEN_DATA_DEFAULT_VALUE = IScrollableComponent.LAST_MESSAGE_NUMBER + 8;
/** The parameters are specific to the subclass components. */
// public static final int MESSAGE_SET_ITEMS = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
/** The message data is the data specific to the control for the item, but will be null if the item has previously been added. The secondary message data is the hidden data object array, or null if there are no hidden data columns. The message integer is the object identifier and the secondary message integer is the optional (will be -1 if not valid) index of the row in the display. */
public static final int MESSAGE_ADD_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 10;
/** The message integer is the object identifier and the secondary message integer is the optional (-1 if not valid) index within the display. */
public static final int MESSAGE_REMOVE_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_REMOVE_ALL = IScrollableComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_ADD_SELECTION_LINK = IScrollableComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_PRE_CHANGE_COLLECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_POST_CHANGE_COLLECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 15;
public static final int LAST_MESSAGE_NUMBER = IScrollableComponent.LAST_MESSAGE_NUMBER + 15;
/** A multi-selection option that tells the hidden data linkage to always pass the default value when there are multiple selections. */
public static final int MULTI_SELECTION_OPTION_DEFAULT = 0;
/** A multi-selection option that tells the hidden data linkage to pass the selection's value if all selections resolve to the same value, otherwise pass the default value. */
public static final int MULTI_SELECTION_OPTION_COMMON = 1;
/** This multi-selection option is only usable for boolean hidden data. It performs a logical AND operation to receive a value. */
public static final int MULTI_SELECTION_OPTION_AND = 2;
/** This multi-selection option is only usable for boolean hidden data. It performs a logical OR operation to receive a value. */
public static final int MULTI_SELECTION_OPTION_OR = 3;
}//ICollectionComponent//

View File

@@ -0,0 +1,21 @@
/*
* 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 IComboBox extends IIndexedCollectionComponent {
public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN;
public static final int STYLE_READ_ONLY = SWT.READ_ONLY;
public static final int STYLE_SIMPLE = SWT.SIMPLE;
public static final int MESSAGE_SET_TEXT_LIMIT = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 1;
//public static final int MESSAGE_SET_ITEM = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 2;
//public static final int MESSAGE_DOUBLE_CLICK = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 3;
public static final int LAST_MESSAGE_NUMBER = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 1;
}//IComboBox//

View File

@@ -0,0 +1,94 @@
/*
* 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 java.io.IOException;
import org.eclipse.swt.SWT;
import com.common.io.IExternalizable;
import com.common.io.IObjectInputStream;
import com.common.io.IObjectOutputStream;
import com.foundation.tcv.swt.IAbstractComponent;
public interface IComponent extends IAbstractComponent {
public static final int STYLE_BORDER = SWT.BORDER;
public static final int STYLE_LEFT_TO_RIGHT = SWT.LEFT_TO_RIGHT;
public static final int STYLE_RIGHT_TO_LEFT = SWT.RIGHT_TO_LEFT;
public static final int MESSAGE_GET_BOUNDS = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_GET_LOCATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_GET_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_GET_IS_FOCUS_CONTROL = IAbstractComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_BOUNDS = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_LOCATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_FOCUS = IAbstractComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_IS_VISIBLE = IAbstractComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_IS_ENABLED = IAbstractComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_LAYOUT_DATA = IAbstractComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SET_TOOL_TIP_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_BACKGROUND_COLOR = IAbstractComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_FOREGROUND_COLOR = IAbstractComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_FONTS = IAbstractComponent.LAST_MESSAGE_NUMBER + 15;
/** Packs the component, and any children. Passes either null, or a Boolean indicating whether the children changed. */
public static final int MESSAGE_PACK = IAbstractComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_SET_DECIMAL_SCALE = IAbstractComponent.LAST_MESSAGE_NUMBER + 17;
public static final int MESSAGE_SET_CONTAINER_TITLE = IAbstractComponent.LAST_MESSAGE_NUMBER + 18;
public static final int MESSAGE_SET_CONTAINER_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 19;
public static final int MESSAGE_ADD_KEY_BINDING = IAbstractComponent.LAST_MESSAGE_NUMBER + 20;
public static final int MESSAGE_INVOKE_KEY_BINDING = IAbstractComponent.LAST_MESSAGE_NUMBER + 21;
public static final int MESSAGE_SET_BACKGROUND_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 22;
public static final int MESSAGE_SET_CHANGE_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 23;
public static final int MESSAGE_SET_CHANGE_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 24;
public static final int MESSAGE_SET_UPDATE_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 25;
public static final int MESSAGE_SET_UPDATE_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 26;
public static final int MESSAGE_SET_UPDATE_TIMEOUT = IAbstractComponent.LAST_MESSAGE_NUMBER + 27;
public static final int MESSAGE_DISPLAY_UPDATE_CONTROL_DECORATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 28;
public static final int MESSAGE_SET_NAME = IAbstractComponent.LAST_MESSAGE_NUMBER + 29; //Use for testing only.//
public static final int MESSAGE_USE_CUSTOM_BACKGROUND = IAbstractComponent.LAST_MESSAGE_NUMBER + 30;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 30;
public static final int LINK_TARGET_IS_VISIBLE = IAbstractComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_IS_ENABLED = IAbstractComponent.LAST_LINK_TARGET + 2;
public static final int LINK_TARGET_GAIN_FOCUS = IAbstractComponent.LAST_LINK_TARGET + 3;
public static final int LINK_TARGET_TOOL_TIP_TEXT = IAbstractComponent.LAST_LINK_TARGET + 4;
public static final int LINK_TARGET_BACKGROUND_COLOR = IAbstractComponent.LAST_LINK_TARGET + 5;
public static final int LINK_TARGET_FOREGROUND_COLOR = IAbstractComponent.LAST_LINK_TARGET + 6;
public static final int LINK_TARGET_FONT = IAbstractComponent.LAST_LINK_TARGET + 7;
public static final int LAST_LINK_TARGET = IAbstractComponent.LAST_LINK_TARGET + 7;
public class KeyBindingData implements IExternalizable {
private int modifiers = 0;
private Integer keyCode = null;
public KeyBindingData() {
}//KeyBindingData()//
public KeyBindingData(int modifiers, Integer keyCode) {
this.modifiers = modifiers;
this.keyCode = keyCode;
}//KeyBindingData()//
public int getModifiers() {
return modifiers;
}//getModifiers()//
public Integer getKeyCode() {
return keyCode;
}//getKeyCode()//
/* (non-Javadoc)
* @see com.common.io.IExternalizable#readExternal(com.common.io.IObjectInputStream)
*/
public Object readExternal(IObjectInputStream in) throws IOException, ClassNotFoundException {
return null;
}//readExternal()//
/* (non-Javadoc)
* @see com.common.io.IExternalizable#writeExternal(com.common.io.IObjectOutputStream)
*/
public void writeExternal(IObjectOutputStream out) throws IOException {
}//writeExternal()//
}//KeyBindingData//
}//IComponent//

View File

@@ -0,0 +1,30 @@
/*
* 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 IContainer extends IScrollableComponent {
public static final int STYLE_NO_BACKGROUND = SWT.NO_BACKGROUND;
public static final int STYLE_NO_FOCUS = SWT.NO_FOCUS;
public static final int STYLE_NO_MERGE_PAINTS = SWT.NO_MERGE_PAINTS;
public static final int STYLE_NO_REDRAW_RESIZE = SWT.NO_REDRAW_RESIZE;
public static final int STYLE_NO_RADIO_GROUP = SWT.NO_RADIO_GROUP;
public static final int STYLE_EMBEDDED = SWT.EMBEDDED;
public static final int STYLE_DOUBLE_BUFFERED = SWT.DOUBLE_BUFFERED;
public static final int INHERIT_NONE = 0;
public static final int INHERIT_DEFAULT = 1;
public static final int INHERIT_FORCE = 2;
public static final int MESSAGE_LAYOUT = IScrollableComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TAB_ORDER = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_CENTER = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_INHERIT_BACKGROUND = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
}//IContainer//

View File

@@ -0,0 +1,17 @@
/*
* 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;
public interface IControlLocator {
/**
* Locates an SWT control given a component number.
* @param componentNumber The view specific component number whose associated SWT control should be located.
* @return The SWT control.
*/
public org.eclipse.swt.widgets.Control getControl(int componentNumber);
}//IControlLocator//

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2006 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 ICoolBar extends IContainer {
public static final int STYLE_FLAT = SWT.FLAT;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 0;
public interface ICoolItem extends IAbstractComponent {
public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN;
public static final int MESSAGE_SET_PREFERRED_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MINIMUM_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_CONTROL = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_AUTO_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_IS_VISIBLE = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
}//ICoolItem//
}//ICoolBar//

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2007 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 IDateTime extends IComponent {
public static final int STYLE_DATE = SWT.DATE;
public static final int STYLE_TIME = SWT.TIME;
public static final int STYLE_CALENDAR = SWT.CALENDAR;
public static final int STYLE_SHORT = SWT.SHORT;
public static final int STYLE_MEDIUM = SWT.MEDIUM;
public static final int STYLE_LONG = SWT.LONG;
public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SEND_DOUBLE_CLICK = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_DOUBLE_CLICK = IComponent.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_LINK_TARGET = IComponent.LAST_LINK_TARGET + 0;
}//IDateTime//

View File

@@ -0,0 +1,15 @@
/*
* 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;
public interface IDialog extends IAbstractComponent {
public static final int MESSAGE_SET_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_OPEN = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_PRESSED_BUTTON = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
}//IDialog//

View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2007,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 IEnhancedList extends ITableComponent {
public static final int STYLE_SINGLE = SWT.SINGLE;
public static final int STYLE_MULTI = SWT.MULTI;
public static final int MESSAGE_SHOW_SELECTION = ITableComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TOP_INDEX = ITableComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SYNCHRONIZE_TOP_INDEX = ITableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_DOUBLE_CLICK = ITableComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = ITableComponent.LAST_MESSAGE_NUMBER + 4;
}//IEnhancedList//

View File

@@ -0,0 +1,22 @@
/*
* Copyright (c) 2006,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 IExpandBar extends IContainer {
public static final int STYLE_VERTICAL_SCROLL = SWT.V_SCROLL;
public static final int MESSAGE_ADD_ITEM = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_REMOVE_ITEM = IContainer.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_REPOSITION_ITEM = IContainer.LAST_MESSAGE_NUMBER + 3;
/** Requests the client sort a subset of the items. The first parameter is the index of the first sorted item. The second parameter is an integer array mapping to be used for the sort. */
public static final int MESSAGE_SORT_ITEMS = IContainer.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_SPACING = IContainer.LAST_MESSAGE_NUMBER + 5;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 5;
}//IExpandBar//

View File

@@ -0,0 +1,16 @@
/*
* Copyright (c) 2007 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;
public interface IFillLayout extends ILayout {
public static final int MESSAGE_SET_TYPE = ILayout.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MARGIN_HEIGHT = ILayout.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_MARGIN_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_SPACING = ILayout.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = ILayout.LAST_MESSAGE_NUMBER + 4;
}//IFillLayout//

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2006 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;
public interface IFontNameComboBox {
public static final int MESSAGE_SET_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_ADD_SELECTION_LINK = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int LINK_TARGET_SELECTION = IComponent.LAST_LINK_TARGET + 1;
public static final int LAST_LINK_TARGET = IComponent.LAST_LINK_TARGET + 1;
}//IFontNameComboBox//

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2006 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;
public interface IFontSizeComboBox {
public static final int MESSAGE_SET_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_ADD_SELECTION_LINK = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int LINK_TARGET_SELECTION = IComponent.LAST_LINK_TARGET + 1;
public static final int LAST_LINK_TARGET = IComponent.LAST_LINK_TARGET + 1;
}//IFontNameComboBox//

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2007 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;
public interface IFormLayout extends ILayout {
public static final int MESSAGE_SET_MARGIN_HEIGHT = ILayout.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MARGIN_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_SPACING = ILayout.LAST_MESSAGE_NUMBER + 3;
public static final int LAST_MESSAGE_NUMBER = ILayout.LAST_MESSAGE_NUMBER + 3;
}//IFillLayout//

View File

@@ -0,0 +1,44 @@
/*
* 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 IFrame extends IContainer {
public static final int STYLE_CLOSE = SWT.CLOSE;
public static final int STYLE_MIN = SWT.MIN;
public static final int STYLE_MAX = SWT.MAX;
public static final int STYLE_RESIZE = SWT.RESIZE;
public static final int STYLE_TITLE = SWT.TITLE;
public static final int STYLE_NO_TRIM = SWT.NO_TRIM;
public static final int STYLE_SHELL_TRIM = SWT.SHELL_TRIM;
public static final int STYLE_DIALOG_TRIM = SWT.DIALOG_TRIM;
public static final int STYLE_ON_TOP = SWT.ON_TOP;
public static final int STYLE_TOOL = SWT.TOOL;
/** Notifies the client that the server wants to know when the frame is closed. */
public static final int MESSAGE_REQUEST_CLOSED_NOTIFICATION = IContainer.LAST_MESSAGE_NUMBER + 1;
/** Notifies the server that the client frame has been activated or deactivated. */
public static final int MESSAGE_IS_ACTIVATED = IContainer.LAST_MESSAGE_NUMBER + 2;
/** Notifies the server that the client frame has been closed. */
public static final int MESSAGE_IS_CLOSED = IContainer.LAST_MESSAGE_NUMBER + 3;
/** Sets the frame to be (or not to be) minimized (passes a Boolean). */
public static final int MESSAGE_MINIMIZE = IContainer.LAST_MESSAGE_NUMBER + 4;
/** Sets the frame to be (or not to be) maximized (passes a Boolean). */
public static final int MESSAGE_MAXIMIZE = IContainer.LAST_MESSAGE_NUMBER + 5;
/** Tells the client whether it should send activated/deactivated event notifications. */
public static final int MESSAGE_SEND_ACTIVATED_EVENTS = IContainer.LAST_MESSAGE_NUMBER + 6;
/** Tells the client whether it should send minimized/maximized event notifications. */
public static final int MESSAGE_SEND_MIN_MAX_EVENTS = IContainer.LAST_MESSAGE_NUMBER + 7;
/** Notifies the client that a given button is the default button for the frame. */
public static final int MESSAGE_SET_DEFAULT_BUTTON = IContainer.LAST_MESSAGE_NUMBER + 8;
/** Shows the view by un-minimizing as necessary, sets the view to be visible, and the provides focus. */
public static final int MESSAGE_SHOW = IContainer.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_CONTAINER_IMAGES = IContainer.LAST_MESSAGE_NUMBER + 10;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 10;
}//IFrame//

View File

@@ -0,0 +1,18 @@
/*
* Copyright (c) 2007 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;
public interface IGridLayout extends ILayout {
public static final int MESSAGE_SET_NUM_COLUMNS = ILayout.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MARGIN_HEIGHT = ILayout.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_MARGIN_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_MAKE_COLUMNS_EQUAL_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_HORIZONTAL_SPACING = ILayout.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_VERTICAL_SPACING = ILayout.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_MESSAGE_NUMBER = ILayout.LAST_MESSAGE_NUMBER + 6;
}//IGridLayout//

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2007 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 IGroup extends IContainer {
public static final int STYLE_SHADOW_ETCHED_IN = SWT.SHADOW_ETCHED_IN;
public static final int STYLE_SHADOW_ETCHED_OUT = SWT.SHADOW_ETCHED_OUT;
public static final int STYLE_SHADOW_IN = SWT.SHADOW_IN;
public static final int STYLE_SHADOW_OUT = SWT.SHADOW_OUT;
public static final int STYLE_SHADOW_NONE = SWT.SHADOW_NONE;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 0;
}//IGroup//

View File

@@ -0,0 +1,18 @@
/*
* Copyright (c) 2003,2006 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;
public interface IIndexedCollectionComponent extends ICollectionComponent {
public static final int MESSAGE_ADD_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_REMOVE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_REMOVE_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_ITEM = ICollectionComponent.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_MESSAGE_NUMBER = ICollectionComponent.LAST_MESSAGE_NUMBER + 6;
}//IIndexedCollectionComponent//

View File

@@ -0,0 +1,27 @@
/*
* 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 ILabel extends IComponent {
public static final int STYLE_SEPARATOR = SWT.SEPARATOR;
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int STYLE_SHADOW_IN = SWT.SHADOW_IN;
public static final int STYLE_SHADOW_OUT = SWT.SHADOW_OUT;
public static final int STYLE_SHADOW_NONE = SWT.SHADOW_NONE;
public static final int STYLE_LEFT = SWT.LEFT;
public static final int STYLE_RIGHT = SWT.RIGHT;
public static final int STYLE_CENTER = SWT.CENTER;
public static final int STYLE_WRAP = SWT.WRAP;
public static final int MESSAGE_SET_TEXT = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_IMAGE = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 2;
}//ILabel//

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2007 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 com.foundation.tcv.view.IAbstractRemoteViewComponent;
public interface ILayout extends IAbstractRemoteViewComponent {
public static final int MESSAGE_INITIALIZE = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IAbstractRemoteViewComponent.LAST_MESSAGE_NUMBER + 1;
}//ILayout//

View File

@@ -0,0 +1,14 @@
/*
* Copyright (c) 2005,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;
public interface ILink extends IComponent {
public static final int MESSAGE_SET_TEXT = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 2;
}//ILink//

View File

@@ -0,0 +1,21 @@
/*
* Copyright (c) 2003,2007 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 IListBox extends IIndexedCollectionComponent {
public static final int STYLE_SINGLE = SWT.SINGLE;
public static final int STYLE_MULTI = SWT.MULTI;
public static final int MESSAGE_SHOW_SELECTION = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TOP_INDEX = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SYNCHRONIZE_TOP_INDEX = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_DOUBLE_CLICK = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = IIndexedCollectionComponent.LAST_MESSAGE_NUMBER + 4;
}//IListBox//

View File

@@ -0,0 +1,46 @@
/*
* 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 IMenu extends IAbstractComponent {
public static final int STYLE_BAR = 1 << 10;
public static final int STYLE_POPUP = 1 << 11;
//public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN; //Same as cascade.//
public static final int STYLE_RADIO = SWT.RADIO;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_PUSH = SWT.PUSH;
public static final int STYLE_SEPARATOR = SWT.SEPARATOR;
public static final int STYLE_CASCADE = SWT.CASCADE;
public static final int STYLE_RIGHT_TO_LEFT = SWT.RIGHT_TO_LEFT;
public static final int STYLE_LEFT_TO_RIGHT = SWT.LEFT_TO_RIGHT;
public static final int MESSAGE_CREATE_COMPONENT = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_IS_SELECTED = IAbstractComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_ACCELERATOR = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_LOCATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_IS_VISIBLE = IAbstractComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_IS_ENABLED = IAbstractComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IAbstractComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_VIEW_REFRESH_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_VIEW_REFRESH_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IAbstractComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_SYNCHRONOUS_SELECTION = IAbstractComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_ADD_SELECTION_LINK = IAbstractComponent.LAST_MESSAGE_NUMBER + 14;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 14;
public static final int LINK_TARGET_SELECTION = IAbstractComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_IS_VISIBLE = IAbstractComponent.LAST_LINK_TARGET + 2;
public static final int LINK_TARGET_IS_ENABLED = IAbstractComponent.LAST_LINK_TARGET + 3;
public static final int LINK_TARGET_IMAGE = IAbstractComponent.LAST_LINK_TARGET + 4;
public static final int LINK_TARGET_TEXT = IAbstractComponent.LAST_LINK_TARGET + 5;
public static final int LAST_LINK_TARGET = IAbstractComponent.LAST_LINK_TARGET + 5;
}//IMenu//

View File

@@ -0,0 +1,32 @@
/*
* 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 IMessageDialog extends IDialog {
public static final int STYLE_ICON_ERROR = SWT.ICON_ERROR;
public static final int STYLE_ICON_INFORMATION = SWT.ICON_INFORMATION;
public static final int STYLE_ICON_QUESTION = SWT.ICON_QUESTION;
public static final int STYLE_ICON_WARNING = SWT.ICON_WARNING;
public static final int STYLE_ICON_WORKING = SWT.ICON_WORKING;
public static final int STYLE_OK = SWT.OK;
public static final int STYLE_CANCEL = SWT.CANCEL;
public static final int STYLE_YES = SWT.YES;
public static final int STYLE_NO = SWT.NO;
public static final int STYLE_RETRY = SWT.RETRY;
public static final int STYLE_IGNORE = SWT.IGNORE;
public static final int STYLE_ABORT = SWT.ABORT;
public static final int STYLE_PRIMARY_MODAL = SWT.PRIMARY_MODAL;
/** The default setting for the dialog if none other is given. */
public static final int STYLE_APPLICATION_MODAL = SWT.APPLICATION_MODAL;
public static final int STYLE_SYSTEM_MODAL = SWT.SYSTEM_MODAL;
public static final int MESSAGE_SET_MESSAGE = IDialog.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IDialog.LAST_MESSAGE_NUMBER + 1;
}//IMessageDialog//

View File

@@ -0,0 +1,12 @@
/*
* Copyright (c) 2003,2007 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;
public interface IPanel extends IContainer {
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 0;
}//IPanel//

View File

@@ -0,0 +1,15 @@
/*
* Copyright (c) 2005,2006 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;
public interface IPanelViewer extends IContainer {
public static final int MESSAGE_BEGIN_CHANGE_CONTENTS = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_END_CHANGE_CONTENTS = IContainer.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_CHANGE_FOCUS = IContainer.LAST_MESSAGE_NUMBER + 3;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 3;
}//IPanelViewer//

View File

@@ -0,0 +1,23 @@
/*
* 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 IProgress extends IComponent {
public static final int STYLE_SMOOTH = SWT.SMOOTH;
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int STYLE_INDETERMINATE = SWT.INDETERMINATE;
public static final int MESSAGE_SET_MAXIMUM = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MINIMUM = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_PROGRESS = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_MULTIPLIER = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 4;
}//IProgress//

View File

@@ -0,0 +1,24 @@
/*
* Copyright (c) 2007 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;
public interface IRowLayout extends ILayout {
public static final int MESSAGE_SET_TYPE = ILayout.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MARGIN_HEIGHT = ILayout.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_MARGIN_WIDTH = ILayout.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_SPACING = ILayout.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_WRAP = ILayout.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_PACK = ILayout.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_ALIGNMENT = ILayout.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_JUSTIFY = ILayout.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_MARGIN_TOP = ILayout.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_MARGIN_BOTTOM = ILayout.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_MARGIN_LEFT = ILayout.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SET_MARGIN_RIGHT = ILayout.LAST_MESSAGE_NUMBER + 12;
public static final int LAST_MESSAGE_NUMBER = ILayout.LAST_MESSAGE_NUMBER + 12;
}//IFillLayout//

View File

@@ -0,0 +1,18 @@
/*
* 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 ISash extends IComponent {
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int MESSAGE_SET_ATTACHMENTS = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 1;
}//ISash//

View File

@@ -0,0 +1,19 @@
/*
* Copyright (c) 2005,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 ISashForm extends IContainer {
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int STYLE_SMOOTH = SWT.SMOOTH;
public static final int MESSAGE_SET_WEIGHTS = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 1;
}//ISashForm//

View File

@@ -0,0 +1,17 @@
/*
* Copyright (c) 2003,2007 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 IScrollableComponent extends IComponent {
public static final int STYLE_H_SCROLL = SWT.H_SCROLL;
public static final int STYLE_V_SCROLL = SWT.V_SCROLL;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 0;
}//IScrollableComponent//

View File

@@ -0,0 +1,96 @@
/*
* Copyright (c) 2005,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
public interface ISimpleTable extends ITableComponent {
public static final int STYLE_SINGLE = SWT.SINGLE;
public static final int STYLE_MULTI = SWT.MULTI;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_FULL_SELECTION = SWT.FULL_SELECTION;
public static final int STYLE_HIDE_SELECTION = SWT.HIDE_SELECTION;
public static final int STYLE_VIRTUAL = SWT.VIRTUAL;
public static final int ALIGNMENT_LEFT = 0;
public static final int ALIGNMENT_CENTER = 1;
public static final int ALIGNMENT_RIGHT = 2;
public static final int AUTO_FIT_NEVER = 0;
public static final int AUTO_FIT_MANUAL = 1;
public static final int AUTO_FIT_AUTO = 2;
public static final int MESSAGE_SYNCHRONIZE_TOP_INDEX = ITableComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TOP_INDEX = ITableComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_IN_VIEW_SORTING = ITableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SHOW_HEADERS = ITableComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SHOW_GRID_LINES = ITableComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_HEADER_RESIZEABLE = ITableComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_COLUMN_WIDTH = ITableComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_COLUMN_TOOL_TIP = ITableComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_COLUMN_MOVEABLE = ITableComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_COLUMN_ALIGNMENT = ITableComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SHOW_SELECTION = ITableComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_FILL = ITableComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_FIT = ITableComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_AUTO_FIT = ITableComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_FILL_ON_INITIALIZE = ITableComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SET_FILL_ON_RESIZE = ITableComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_SET_COLUMN_MINIMUM_WIDTH = ITableComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LAST_MESSAGE_NUMBER = ITableComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LINK_TARGET_FIT = ITableComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_FILL = ITableComponent.LAST_LINK_TARGET + 2;
public static final int LAST_LINK_TARGET = ITableComponent.LAST_LINK_TARGET + 2;
/**
* Encapsulates the data for a single cell.
*/
public class SimpleTableCellData extends ITableComponent.TableCellData {
/** The component id for the cell editor if there is one, otherwise -1. */
private int cellComponentId = -1;
/**
* SimpleTableCellData constructor.
*/
public SimpleTableCellData() {
}//SimpleTableCellData()//
/**
* Gets the component id for the cell editor.
* @return The component number for the cell editor, or -1 if no cell editor is associated with the cell.
*/
public int getCellComponentId() {
return cellComponentId;
}//getCellComponentId()//
/**
* Sets the component id for the cell editor.
* @param cellComponentId The component number for the cell editor, or -1 if no cell editor is associated with the cell.
*/
public void setCellComponentId(int cellComponentId) {
this.cellComponentId = cellComponentId;
}//setCellComponentId()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
super.readExternal(in);
cellComponentId = in.readInt();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
super.writeExternal(out);
out.writeInt(cellComponentId);
}//writeExternal()//
}//SimpleTableCellData//
}//ISimpleTable//

View File

@@ -0,0 +1,138 @@
/*
* Copyright (c) 2005,2007 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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
import com.foundation.view.JefColor;
import com.foundation.view.JefFont;
public interface ISimpleTreeTable extends ITreeComponent {
public static final int STYLE_SINGLE = SWT.SINGLE;
public static final int STYLE_MULTI = SWT.MULTI;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_FULL_SELECTION = SWT.FULL_SELECTION;
public static final int STYLE_HIDE_SELECTION = SWT.HIDE_SELECTION;
public static final int STYLE_VIRTUAL = SWT.VIRTUAL;
public static final int ALIGNMENT_LEFT = 0;
public static final int ALIGNMENT_CENTER = 1;
public static final int ALIGNMENT_RIGHT = 2;
public static final int AUTO_FIT_NEVER = 0;
public static final int AUTO_FIT_MANUAL = 1;
public static final int AUTO_FIT_AUTO = 2;
public static final int MESSAGE_IN_VIEW_SORTING = ITreeComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SHOW_HEADERS = ITreeComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SHOW_GRID_LINES = ITreeComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_HEADER_RESIZEABLE = ITreeComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_COLUMN_WIDTH = ITreeComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_COLUMN_ALIGNMENT = ITreeComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_COLUMN_TOOL_TIP = ITreeComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_COLUMN_MOVEABLE = ITreeComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SHOW_SELECTION = ITreeComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_SELECT_ON_OPEN = ITreeComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_FILL = ITreeComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_FIT = ITreeComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_ROW_HEIGHT = ITreeComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_AUTO_FIT = ITreeComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_FILL_ON_INITIALIZE = ITreeComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SET_FILL_ON_RESIZE = ITreeComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_SET_COLUMN_MINIMUM_WIDTH = ITreeComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LAST_MESSAGE_NUMBER = ITreeComponent.LAST_MESSAGE_NUMBER + 17;
public static final int LINK_TARGET_FIT = ITreeComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_FILL = ITreeComponent.LAST_LINK_TARGET + 2;
public static final int LAST_LINK_TARGET = ITreeComponent.LAST_LINK_TARGET + 2;
/**
* Encapsulates the data for a single cell.
*/
public static class SimpleTreeCellData implements java.io.Externalizable {
/** The cell's desired text, or null for the default text. */
private String text;
/** The cell's desired background color, or null for the default color. */
private JefColor background;
/** The cell's desired foreground color, or null for the default color. */
private JefColor foreground;
/** The cell's desired font, or null for the default font. */
private JefFont[] font;
/**
* SimpleTreeCellData constructor.
*/
public SimpleTreeCellData() {
}//SimpleTreeCellData()//
/**
* SimpleTreeCellData constructor.
* @param text The cell's desired text, or null for the default text.
* @param background The cell's desired background color, or null for the default color.
* @param foreground The cell's desired foreground color, or null for the default color.
* @param font The cell's desired font, or null for the default font.
*/
public SimpleTreeCellData(String text, JefColor background, JefColor foreground, JefFont[] font) {
this.text = text;
this.background = background;
this.foreground = foreground;
this.font = font;
}//SimpleTreeCellData()//
/**
* Gets the cell's desired text, or null for the default text.
* @return The cell's text.
*/
public String getText() {
return text;
}//getText()//
/**
* Gets the cell's desired background color, or null for the default color.
* @return The cell's background color.
*/
public JefColor getBackground() {
return background;
}//getBackground()//
/**
* Gets the cell's desired foreground color, or null for the default color.
* @return The cell's foreground color.
*/
public JefColor getForeground() {
return foreground;
}//getForeground()//
/**
* Gets the cell's desired font, or null for the default font.
* @return The cell's font.
*/
public JefFont[] getFont() {
return font;
}//getFont()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/*byte version = */in.readByte();
text = (String) in.readObject();
background = (JefColor) in.readObject();
foreground = (JefColor) in.readObject();
font = (JefFont[]) in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeObject(text);
out.writeObject(background);
out.writeObject(foreground);
out.writeObject(font);
}//writeExternal()//
}//SimpleTreeCellData//
}//ISimpleTreeTable//

View File

@@ -0,0 +1,26 @@
/*
* Copyright (c) 2006,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 ISlider extends IComponent {
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int MESSAGE_SET_MAXIMUM = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MINIMUM = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_INCREMENT = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_PAGE_INCREMENT = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_THUMB = IComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IComponent.LAST_MESSAGE_NUMBER + 9;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 9;
}//ISlider//

View File

@@ -0,0 +1,25 @@
/*
* Copyright (c) 2006,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 ISpinner extends IComponent {
public static final int STYLE_WRAP = SWT.WRAP;
public static final int STYLE_READ_ONLY = SWT.READ_ONLY;
public static final int MESSAGE_SET_MAXIMUM = IComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MINIMUM = IComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_INCREMENT = IComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_PAGE_INCREMENT = IComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IComponent.LAST_MESSAGE_NUMBER + 8;
public static final int LAST_MESSAGE_NUMBER = IComponent.LAST_MESSAGE_NUMBER + 8;
}//ISpinner//

View File

@@ -0,0 +1,13 @@
/*
* Copyright (c) 2005,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;
public interface IStackViewer extends IContainer {
public static final int MESSAGE_CHANGE_COMPONENT = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 1;
}//IStackViewer//

View File

@@ -0,0 +1,22 @@
/*
* Copyright (c) 2005,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 ITabPanel extends IContainer {
public static final int STYLE_TOP = SWT.TOP;
public static final int STYLE_BOTTOM = SWT.BOTTOM;
public static final int MESSAGE_ADD_TAB = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_REMOVE_TAB = IContainer.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_REPOSITION_TAB = IContainer.LAST_MESSAGE_NUMBER + 3;
/** Requests the client sort a subset of the tabs. The first parameter is the index of the first sorted tab. The second parameter is an integer array mapping to be used for the sort. */
public static final int MESSAGE_SORT_TABS = IContainer.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 4;
}//ITabPanel//

View File

@@ -0,0 +1,52 @@
/*
* Copyright (c) 2004,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;
public interface ITable extends IScrollableComponent {
//Sent to the client when the server view changes the visibility of a column component. Passes the component number (Integer) and the new value (Boolean) in that order.//
public static final int MESSAGE_SET_COLUMN_IS_VISIBLE = IScrollableComponent.LAST_MESSAGE_NUMBER + 1;
//Sent to the client when the server adds a column row. Passes the parent component number (Integer) and the insertion index (Integer) in that order.//
public static final int MESSAGE_ADD_COLUMN_ROW = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
//Sent to the client when the server adds a content column. Passes the parent component number (Integer), the insertion index (Integer), header renderer (IRenderer), and content renderer (IRenderer) in that order.//
public static final int MESSAGE_ADD_CONTENT_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
//Sent to the client when the server adds a group of other columns. Passes the parent component number (Integer) and the insertion index (Integer) and header renderer (IRenderer) in that order.//
public static final int MESSAGE_ADD_GROUP_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
//Sent to the client when the server adds a column of row columns. Passes the parent component number (Integer) and the insertion index (Integer) in that order.//
public static final int MESSAGE_ADD_ROWS_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 5;
//Sent to the client when the server sets a new row header column. Passes the content renderer (IRenderer).//
public static final int MESSAGE_SET_ROW_HEADER_COLUMN = IScrollableComponent.LAST_MESSAGE_NUMBER + 6;
//Sent to the client when the server removes any of the column components (and all sub-components). Passes the component number (Integer).//
public static final int MESSAGE_REMOVE_COLUMN_COMPONENT = IScrollableComponent.LAST_MESSAGE_NUMBER + 7;
//Sent to the client when the server view changes the content renderer of a column component. Passes the component number (Integer) and the new value (IRenderer) in that order.//
public static final int MESSAGE_SET_CONTENT_RENDERER = IScrollableComponent.LAST_MESSAGE_NUMBER + 8;
//Sent to the client when the server view changes the content renderer of a column component. Passes the component number (Integer) and the new value (IRenderer) in that order.//
public static final int MESSAGE_SET_HEADER_RENDERER = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
//Sent to the client when the server view changes models or for any reason requires the client to clear its cache and redraw. Passes nothing.//
public static final int MESSAGE_CLEAR_CACHE = IScrollableComponent.LAST_MESSAGE_NUMBER + 10;
/* TODO: Need to define the messages sent between the client and server.
//Called to clear the client cache of data.//
public static final int MESSAGE_CLEAR_CACHE = IScrollableComponent.LAST_MESSAGE_NUMBER + 1;
//Called to notify the client of the new estimated size of the collection.//
public static final int MESSAGE_SET_SIZE = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
//Sent to the server to request an item be opened. Opening the item should generate some add item messages.//
public static final int MESSAGE_OPEN_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_ADD_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_REMOVE_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_REMOVE_ALL = IScrollableComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_ITEM = IScrollableComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_ALLOW_USER_ITEMS = IScrollableComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_ALLOW_MULTI_SELECTION = IScrollableComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SEND_DOUBLE_CLICK = IScrollableComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_DOUBLE_CLICK = IScrollableComponent.LAST_MESSAGE_NUMBER + 13;
*/
public static final int LAST_MESSAGE_NUMBER = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
}//ITable//

View File

@@ -0,0 +1,297 @@
/*
* Copyright (c) 2004,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public interface ITableComponent extends ICollectionComponent {
public static final int MESSAGE_SET_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_ADD_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_REMOVE_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_ADD_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_REMOVE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_REMOVE_ALL_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_ADD_COLUMN = ICollectionComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_REMOVE_COLUMN = ICollectionComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_COLUMN_HEADER_TEXT = ICollectionComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_COLUMN_HEADER_IMAGE = ICollectionComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SET_CELL_TEXT = ICollectionComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_CELL_IMAGE = ICollectionComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_CELL_BACKGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_CELL_FOREGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SET_CELL_FONT = ICollectionComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_SET_ROW_FONT = ICollectionComponent.LAST_MESSAGE_NUMBER + 17;
public static final int MESSAGE_ORDER_ROWS = ICollectionComponent.LAST_MESSAGE_NUMBER + 18;
public static final int MESSAGE_SUSPEND_ROW_COLOR_UPDATES = ICollectionComponent.LAST_MESSAGE_NUMBER + 19;
public static final int MESSAGE_RESUME_ROW_COLOR_UPDATES = ICollectionComponent.LAST_MESSAGE_NUMBER + 20;
public static final int MESSAGE_SET_ROW_SELECTION_GRADIENT = ICollectionComponent.LAST_MESSAGE_NUMBER + 21;
public static final int MESSAGE_SET_ROW_BACKGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 22;
public static final int MESSAGE_SET_ROW_FOREGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 23;
public static final int MESSAGE_SET_ROW_BACKGROUND_COLOR_ALT = ICollectionComponent.LAST_MESSAGE_NUMBER + 24;
public static final int MESSAGE_SET_ROW_FOREGROUND_COLOR_ALT = ICollectionComponent.LAST_MESSAGE_NUMBER + 25;
public static final int MESSAGE_SET_ROW_CUSTOM_BACKGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 26;
public static final int MESSAGE_SET_ROW_CUSTOM_FOREGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 27;
public static final int MESSAGE_SET_ROW_HEIGHT = ICollectionComponent.LAST_MESSAGE_NUMBER + 28;
public static final int MESSAGE_ADD_ROW_HIGHLIGHT_DECORATION = ICollectionComponent.LAST_MESSAGE_NUMBER + 29;
public static final int MESSAGE_REMOVE_ROW_HIGHLIGHT_DECORATION = ICollectionComponent.LAST_MESSAGE_NUMBER + 30;
public static final int MESSAGE_ADD_ROW_IMAGE_DECORATION = ICollectionComponent.LAST_MESSAGE_NUMBER + 31;
public static final int MESSAGE_REMOVE_ROW_IMAGE_DECORATION = ICollectionComponent.LAST_MESSAGE_NUMBER + 32;
public static final int LAST_MESSAGE_NUMBER = ICollectionComponent.LAST_MESSAGE_NUMBER + 32;
/**
* Encapsulates one row of data which is associated with an object in the table.
* Note that an item can exist in the table in more than one place representing more than one row, all with the same object identifier.
*/
public static class TableRowData implements java.io.Externalizable {
/** The row's desired text, or null for the default text. This may be ignored by some tables. */
private String text;
/** The row's desired image, or null for the default image. */
private Object image;
/** The row's desired background color, or null for the default color. Note: This comes from the custom color association and it overrides any alternating or default coloring. */
private Object backgroundColor;
/** The row's desired foreground color, or null for the default color. Note: This comes from the custom color association and it overrides any alternating or default coloring. */
private Object foregroundColor;
/** The row's desired font, or null for the default font. Note: This comes from the font association and it overrides the component font. */
private Object font;
/** The data elements for the columns. This is normally an Object[], one element for each column. */
private TableCellData[] columnData;
/**
* TableRowData constructor.
*/
public TableRowData() {
}//TableRowData()//
/**
* TableRowData constructor.
* @param objectId The object identifier for the row being added.
* @param rowIndex The optional index of the row. A value of -1 indicates append to the end.
* @param columnData The data elements for the columns. This is normally an Object[], one element for each column.
* @param hiddenData The data elements for the hidden 'columns'.
*/
public TableRowData(TableCellData[] columnData) {
this.columnData = columnData;
}//TableRowData()//
/**
* Gets the row's desired text, or null for the default text.
* @return The row's text.
*/
public String getText() {
return text;
}//getText()//
/**
* Sets the row's desired text, or null for the default text.
* @param text The row's text.
*/
public void setText(String text) {
this.text = text;
}//setText()//
/**
* Gets the row's desired image, or null for the default image.
* @return The row's image (JefImage) or resource (ResourceReference).
*/
public Object getImage() {
return image;
}//getImage()//
/**
* Sets the row's desired image, or null for the default image.
* @param image The row's image (JefImage) or resource (ResourceReference).
*/
public void setImage(Object image) {
this.image = image;
}//setImage()//
/**
* Gets the row's desired background color, or null for the default color.
* @return The row's background color (JefColor), or resource (ResourceReference).
*/
public Object getBackgroundColor() {
return backgroundColor;
}//getBackgroundColor()//
/**
* Gets the row's desired background color, or null for the default color.
* @return The row's background color (JefColor), or resource (ResourceReference).
*/
public void setBackgroundColor(Object backgroundColor) {
this.backgroundColor = backgroundColor;
}//setBackgroundColor()//
/**
* Gets the row's desired foreground color, or null for the default color.
* @return The row's foreground color (JefColor), or resource (ResourceReference).
*/
public Object getForegroundColor() {
return foregroundColor;
}//getForegroundColor()//
/**
* Sets the row's desired foreground color, or null for the default color.
* @param foregroundColor The row's foreground color (JefColor), or resource (ResourceReference).
*/
public void setForegroundColor(Object foregroundColor) {
this.foregroundColor = foregroundColor;
}//setForegroundColor()//
/**
* Gets the row's desired font, or null for the default font.
* @return The row's font (JefFont[]), or resource (ResourceReference).
*/
public Object getFont() {
return font;
}//getFont()//
/**
* Sets the row's desired font, or null for the default font.
* @param font The row's font (JefFont[]), or resource (ResourceReference).
*/
public void setFont(Object font) {
this.font = font;
}//setFont()//
/**
* Gets the data elements for the columns.
* @return The data for all the columns.
*/
public TableCellData[] getColumnData() {
return columnData;
}//getColumnData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
text = in.readUTF();
image = in.readObject();
backgroundColor = in.readObject();
foregroundColor = in.readObject();
font = in.readObject();
columnData = (TableCellData[]) in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeUTF(text);
out.writeObject(image);
out.writeObject(backgroundColor);
out.writeObject(foregroundColor);
out.writeObject(font);
out.writeObject(columnData);
}//writeExternal()//
}//TableRowData//
/**
* Encapsulates the data for a single cell.
*/
public class TableCellData implements java.io.Externalizable {
/** The cell's desired text, or null for the default text. */
private String text;
/** The cell's desired image, or null for the default image. */
private Object image;
/** The cell's desired background color, or null for the default color. */
private Object backgroundColor;
/** The cell's desired foreground color, or null for the default color. */
private Object foregroundColor;
/** The cell's desired font, or null for the default font. */
private Object font;
/**
* TableCellData constructor.
*/
public TableCellData() {
}//TableCellData()//
/**
* Gets the cell's desired text, or null for the default text.
* @return The cell's text.
*/
public String getText() {
return text;
}//getText()//
/**
* Sets the cell's desired text, or null for the default text.
* @param text The cell's text.
*/
public void setText(String text) {
this.text = text;
}//setText()//
/**
* Gets the cell's desired image, or null for the default image.
* @return The cell's image (JefImage) or resource (ResourceReference).
*/
public Object getImage() {
return image;
}//getImage()//
/**
* Sets the cell's desired image, or null for the default image.
* @param image The cell's image (JefImage) or resource (ResourceReference).
*/
public void setImage(Object image) {
this.image = image;
}//setImage()//
/**
* Gets the cell's desired background color, or null for the default color.
* @return The cell's background color (JefColor), or resource (ResourceReference).
*/
public Object getBackgroundColor() {
return backgroundColor;
}//getBackgroundColor()//
/**
* Gets the cell's desired background color, or null for the default color.
* @return The cell's background color (JefColor), or resource (ResourceReference).
*/
public void setBackgroundColor(Object backgroundColor) {
this.backgroundColor = backgroundColor;
}//setBackgroundColor()//
/**
* Gets the cell's desired foreground color, or null for the default color.
* @return The cell's foreground color (JefColor), or resource (ResourceReference).
*/
public Object getForegroundColor() {
return foregroundColor;
}//getForegroundColor()//
/**
* Sets the cell's desired foreground color, or null for the default color.
* @param foregroundColor The cell's foreground color (JefColor), or resource (ResourceReference).
*/
public void setForegroundColor(Object foregroundColor) {
this.foregroundColor = foregroundColor;
}//setForegroundColor()//
/**
* Gets the cell's desired font, or null for the default font.
* @return The cell's font (JefFont[]), or resource (ResourceReference).
*/
public Object getFont() {
return font;
}//getFont()//
/**
* Sets the cell's desired font, or null for the default font.
* @param font The cell's font (JefFont[]), or resource (ResourceReference).
*/
public void setFont(Object font) {
this.font = font;
}//setFont()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
text = in.readUTF();
image = in.readObject();
backgroundColor = in.readObject();
foregroundColor = in.readObject();
font = in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeUTF(text);
out.writeObject(image);
out.writeObject(backgroundColor);
out.writeObject(foregroundColor);
out.writeObject(font);
}//writeExternal()//
}//TableCellData//
}//ITableComponent//

View File

@@ -0,0 +1,102 @@
/*
* 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//

View File

@@ -0,0 +1,63 @@
/*
* Copyright (c) 2006 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 IToolBar extends IContainer {
public static final int STYLE_FLAT = SWT.FLAT;
public static final int STYLE_RIGHT = SWT.RIGHT;
public static final int STYLE_WRAP = SWT.WRAP;
public static final int STYLE_HORIZONTAL = SWT.HORIZONTAL;
public static final int STYLE_VERTICAL = SWT.VERTICAL;
public static final int STYLE_SHADOW_OUT = SWT.SHADOW_OUT;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 0;
public interface IAbstractToolItem extends IAbstractComponent {
public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_PUSH = SWT.PUSH;
public static final int STYLE_RADIO = SWT.RADIO;
public static final int STYLE_SEPARATOR = SWT.SEPARATOR;
public static final int LINK_TARGET_TOOL_TIP_TEXT = IAbstractComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_IS_ENABLED = IAbstractComponent.LAST_LINK_TARGET + 2;
public static final int LAST_LINK_TARGET = IAbstractComponent.LAST_LINK_TARGET + 2;
public static final int MESSAGE_SET_IS_ENABLED = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TOOL_TIP_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
}//IAbstractToolItem//
public interface IToolItem extends IAbstractToolItem {
public static final int LINK_TARGET_SELECTION = IAbstractToolItem.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_TEXT = IAbstractToolItem.LAST_LINK_TARGET + 2;
public static final int LINK_TARGET_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 3;
public static final int LINK_TARGET_DISABLED_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 4;
public static final int LINK_TARGET_ROLLOVER_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 5;
public static final int LAST_LINK_TARGET = IAbstractToolItem.LAST_LINK_TARGET + 5;
public static final int MESSAGE_SET_IMAGE = IAbstractToolItem.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TEXT = IAbstractToolItem.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_IS_SELECTED = IAbstractToolItem.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = IAbstractToolItem.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_ADD_SELECTION_LINK = IAbstractToolItem.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_CONTROL = IAbstractToolItem.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_HOT_IMAGE = IAbstractToolItem.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_DISABLED_IMAGE = IAbstractToolItem.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_AUTO_SIZE = IAbstractToolItem.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_WIDTH = IAbstractToolItem.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_BLOCK_ON_SELECTIONS = IAbstractToolItem.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_MENU = IAbstractToolItem.LAST_MESSAGE_NUMBER + 15;
public static final int LAST_MESSAGE_NUMBER = IAbstractToolItem.LAST_MESSAGE_NUMBER + 15;
}//IToolItem//
}//IToolBar//

View File

@@ -0,0 +1,27 @@
/*
* Copyright (c) 2006 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 com.foundation.tcv.swt.IToolBar.IAbstractToolItem;
public interface IToolItemDropColor extends IAbstractToolItem {
public static final int LINK_TARGET_SELECTION = IAbstractToolItem.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_TEXT = IAbstractToolItem.LAST_LINK_TARGET + 2;
public static final int LINK_TARGET_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 3;
public static final int LINK_TARGET_DISABLED_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 4;
public static final int LINK_TARGET_ROLLOVER_IMAGE = IAbstractToolItem.LAST_LINK_TARGET + 5;
public static final int LAST_LINK_TARGET = IAbstractToolItem.LAST_LINK_TARGET + 5;
public static final int MESSAGE_SET_WIDTH = IAbstractToolItem.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_HEIGHT = IAbstractToolItem.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_REFRESH_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SYNCHRONIZE_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = IAbstractToolItem.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_ADD_COLOR_LINK = IAbstractToolItem.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_MESSAGE_NUMBER = IAbstractToolItem.LAST_MESSAGE_NUMBER + 6;
}//IToolItemDropColor//

View File

@@ -0,0 +1,24 @@
/*
* 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 com.foundation.tcv.swt.IAbstractComponent;
public interface ITrayItem extends IAbstractComponent {
public static final int MESSAGE_SET_IS_VISIBLE = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TOOL_TIP_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_IMAGE = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = IAbstractComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_ADD_SELECTION_LINK = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_SYNCHRONIZE_SELECTIONS = IAbstractComponent.LAST_MESSAGE_NUMBER + 6;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 6;
public static final int LINK_TARGET_IS_VISIBLE = IAbstractComponent.LAST_LINK_TARGET + 1;
public static final int LINK_TARGET_TOOL_TIP_TEXT = IAbstractComponent.LAST_LINK_TARGET + 2;
public static final int LAST_LINK_TARGET = IAbstractComponent.LAST_LINK_TARGET + 2;
}//ITrayItem//

View File

@@ -0,0 +1,246 @@
/*
* Copyright (c) 2005,2007 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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
public interface ITreeComponent extends ICollectionComponent {
/** Binds node data into the tree for a specific parent. This is separate from the add node since a node can have multiple parents. This message passes two ints in an array (new int[] {parentId, childId}) */
public static final int MESSAGE_ADD_NODE_LINK = ICollectionComponent.LAST_MESSAGE_NUMBER + 1;
/** Unbinds node data from the tree for a specific parent. This is separate from the remove node since a node can have multiple parents. This message passes two ints in an array (new int[] {parentId, childId}) */
public static final int MESSAGE_REMOVE_NODE_LINK = ICollectionComponent.LAST_MESSAGE_NUMBER + 2;
/** Sets the selection by passing an array of selected object identifiers. */
public static final int MESSAGE_SET_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_ADD_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_REMOVE_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_ADD_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_REMOVE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_REMOVE_ALL_SELECTIONS = ICollectionComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICollectionComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_ADD_COLUMN = ICollectionComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_REMOVE_COLUMN = ICollectionComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SET_COLUMN_HEADER_TEXT = ICollectionComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_COLUMN_HEADER_IMAGE = ICollectionComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_CELL_TEXT = ICollectionComponent.LAST_MESSAGE_NUMBER + 14;
public static final int MESSAGE_SET_CELL_IMAGE = ICollectionComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SET_CELL_BACKGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 16;
public static final int MESSAGE_SET_CELL_FOREGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 17;
public static final int MESSAGE_SET_CELL_FONT = ICollectionComponent.LAST_MESSAGE_NUMBER + 18;
public static final int MESSAGE_SET_ROW_BACKGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 19;
public static final int MESSAGE_SET_ROW_FOREGROUND_COLOR = ICollectionComponent.LAST_MESSAGE_NUMBER + 20;
public static final int MESSAGE_SET_ROW_FONT = ICollectionComponent.LAST_MESSAGE_NUMBER + 21;
public static final int MESSAGE_OPEN_NODE = ICollectionComponent.LAST_MESSAGE_NUMBER + 22;
public static final int MESSAGE_NODE_OPENED = ICollectionComponent.LAST_MESSAGE_NUMBER + 23;
/** Stores some basic information about the state of the view, such as the open nodes, in order to re-apply the state after rebuilding the view. */
public static final int MESSAGE_SAVE_VIEW_STATE = ICollectionComponent.LAST_MESSAGE_NUMBER + 24;
/** Restores the view state such that previously opened nodes will be re-opened where possible. */
public static final int MESSAGE_RESTORE_VIEW_STATE = ICollectionComponent.LAST_MESSAGE_NUMBER + 25;
public static final int LAST_MESSAGE_NUMBER = ICollectionComponent.LAST_MESSAGE_NUMBER + 25;
/**
* Encapsulates one cell of data for the purpose of updating selected cells.
* <p>This can be used to transmit header cell data as well by passing an objectId of -1.</p>
*/
public static class TreeCellData implements java.io.Externalizable {
/** The identifier that will determine which row(s) are affected. */
private int objectId;
/** The zero based index of the column whose data is being modified. */
private int columnIndex;
/** The new cell data. */
private Object data;
/**
* TreeCellData constructor.
*/
public TreeCellData() {
}//TreeCellData()//
/**
* TreeCellData constructor.
* @param objectId The identifier that will determine which row(s) are affected.
* @param columnIndex The zero based index of the column whose data is being modified.
* @param data The new cell data.
*/
public TreeCellData(int objectId, int columnIndex, Object data) {
this.objectId = objectId;
this.columnIndex = columnIndex;
this.data = data;
}//TreeCellData()//
/**
* Gets the object identifier which is tied to one or more rows in the table.
* @return The identifier of the object whose rows need updating.
*/
public int getObjectId() {
return objectId;
}//getObjectId()//
/**
* Gets the index of the column whose data is being updated.
* @return The zero based column index.
*/
public int getColumnIndex() {
return columnIndex;
}//getColumnIndex()//
/**
* Gets the data for the cell.
* @return The new cell data.
*/
public Object getData() {
return data;
}//getData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/*byte version = */in.readByte();
objectId = in.readInt();
columnIndex = in.readInt();
data = in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeInt(objectId);
out.writeInt(columnIndex);
out.writeObject(data);
}//writeExternal()//
}//TreeCellData//
/**
* Encapsulates one node of data which is associated with an object in the table.
*/
public static class TreeNodeData implements java.io.Externalizable {
/** The object identifier for the row being added. */
private int objectId;
/** The data for the node columns. */
private Object[] columnData;
/** The data elements for the hidden 'columns'. */
private Object[] hiddenData;
/** Whether the node could possibly have children. */
private boolean canHaveChildren = false;
/**
* TreeNodeData constructor.
*/
public TreeNodeData() {
}//TreeNodeData()//
/**
* TreeNodeData constructor.
* @param objectId The object identifier for the row being added.
* @param columnData The data for the node columns.
* @param hiddenData The data elements for the hidden 'columns'.
* @param canHaveChildren Whether the node could possibly have children.
*/
public TreeNodeData(int objectId, Object[] columnData, Object[] hiddenData, boolean canHaveChildren) {
this.objectId = objectId;
this.columnData = columnData;
this.canHaveChildren = canHaveChildren;
}//TreeNodeData()//
/**
* Gets the object identifier for the row.
* @return The object identifier which identifies the object that is associated with the row of data. Note that there can be more than one row per object id.
*/
public int getObjectId() {
return objectId;
}//getObjectId()//
/**
* Determines whether the node could possibly have children.
* @return Whether the node might have children.
*/
public boolean canHaveChildren() {
return canHaveChildren;
}//canHaveChildren()//
/**
* Gets the data used to display the node.
* @return The data for the node.
*/
public Object getColumnData() {
return columnData;
}//getColumnData()//
/**
* Gets the hidden data elements for the hidden columns.
* @return The hidden data for all the hidden columns.
*/
public Object[] getHiddenData() {
return hiddenData;
}//getHiddenData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
int length;
/*byte version = */in.readByte();
objectId = in.readInt();
length = in.readInt();
if(length > 0) {
columnData = new Object[length];
for(int index = 0; index < length; index++) {
columnData[index] = in.readObject();
}//for//
}//if//
else {
columnData = null;
}//else//
length = in.readInt();
if(length > 0) {
hiddenData = new Object[length];
for(int index = 0; index < length; index++) {
hiddenData[index] = in.readObject();
}//for//
}//if//
else {
hiddenData = null;
}//else//
canHaveChildren = in.readBoolean();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeInt(objectId);
if(columnData != null) {
out.writeInt(columnData.length);
for(int index = 0; index < columnData.length; index++) {
out.writeObject(columnData[index]);
}//for//
}//if//
else {
out.writeInt(0);
}//else//
if(hiddenData != null) {
out.writeInt(hiddenData.length);
for(int index = 0; index < hiddenData.length; index++) {
out.writeObject(hiddenData[index]);
}//for//
}//if//
else {
out.writeInt(0);
}//else//
out.writeBoolean(canHaveChildren);
}//writeExternal()//
}//TreeNodeData//
}//ITreeComponent//

View File

@@ -0,0 +1,13 @@
/*
* Copyright (c) 2007 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;
public interface IViewContainer extends IContainer {
public static final int MESSAGE_SET_CONTROLLER_CLASS_NAME = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 1;
}//IPanelViewer//

View File

@@ -0,0 +1,19 @@
/*
* 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 IWindow extends IFrame {
public static final int STYLE_MODELESS = SWT.MODELESS;
public static final int STYLE_PRIMARY_MODAL = SWT.PRIMARY_MODAL;
public static final int STYLE_APPLICATION_MODAL = SWT.APPLICATION_MODAL;
public static final int STYLE_SYSTEM_MODAL = SWT.SYSTEM_MODAL;
public static final int LAST_MESSAGE_NUMBER = IFrame.LAST_MESSAGE_NUMBER + 0;
}//IWindow//

View File

@@ -0,0 +1,13 @@
/*
* 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;
public interface IWizard extends IContainer {
public static final int MESSAGE_CHANGE_PAGE = IContainer.LAST_MESSAGE_NUMBER + 1;
public static final int LAST_MESSAGE_NUMBER = IContainer.LAST_MESSAGE_NUMBER + 1;
}//IWizard//

View File

@@ -0,0 +1,31 @@
/*
* 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;
public abstract class LayoutData implements java.io.Externalizable {
/**
* LayoutData constructor.
*/
public LayoutData() {
super();
}//LayoutData()//
/**
* Creates the SWT layout data.
* @param controlLocator A handler capable of locating an SWT control given a component number.
* @return The layout data object acceptable to SWT.
*/
public abstract Object createSwtLayoutData(IControlLocator controlLocator);
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public abstract void readExternal(java.io.ObjectInput in) throws java.io.IOException, ClassNotFoundException;
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public abstract void writeExternal(java.io.ObjectOutput out) throws java.io.IOException;
}//LayoutData//

View File

@@ -0,0 +1,63 @@
/*
* Copyright (c) 2004,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
public class RowLayoutData extends LayoutData {
public static final int CENTER = SWT.CENTER;
public static final int BEGINNING = SWT.BEGINNING;
public static final int END = SWT.END;
public static final int FILL = SWT.FILL;
public int width = org.eclipse.swt.SWT.DEFAULT;
public int height = org.eclipse.swt.SWT.DEFAULT;
public boolean exclude = false;
public int alignment = org.eclipse.swt.SWT.NONE;
/**
* RowLayoutData constructor.
*/
public RowLayoutData() {
super();
}//RowLayoutData()//
/* (non-Javadoc)
* @see com.foundation.tcv.swt.LayoutData#createSwtLayoutData(com.foundation.tcv.swt.IControlLocator)
*/
public Object createSwtLayoutData(IControlLocator controlLocator) {
com.foundation.view.swt.layout.RowData data = new com.foundation.view.swt.layout.RowData();
data.height = height;
data.width = width;
data.exclude = exclude;
data.alignment = alignment;
return data;
}//createSwtLayoutData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
width = in.readInt();
height = in.readInt();
exclude = in.readBoolean();
alignment = in.readInt();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeInt(width);
out.writeInt(height);
out.writeBoolean(exclude);
out.writeInt(alignment);
}//writeExternal()//
}//RowLayoutData//

View File

@@ -0,0 +1,154 @@
/*
* Copyright (c) 2005,2007 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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/*
* Encapsulates the data for a single cell.
*/
public class SimpleTreeTableCellData implements java.io.Externalizable {
/** The cell's desired text, or null for the default text. */
private Object text;
/** The cell's desired image, or null for the default image. */
private Object image;
/** The cell's desired background color, or null for the default color. */
private Object background;
/** The cell's desired foreground color, or null for the default color. */
private Object foreground;
/** The cell's desired font, or null for the default font. */
private Object font;
/** The component id for the cell editor if there is one, otherwise -1. */
private int cellComponentId = -1;
/**
* SimpleTreeTableCellData constructor.
*/
public SimpleTreeTableCellData() {
}//SimpleTreeTableCellData()//
/**
* SimpleTreeTableCellData constructor.
* @param text The cell's desired text, or null for the default text.
* @param image The cell's desired image, or null for the default image.
* @param background The cell's desired background color, or null for the default color.
* @param foreground The cell's desired foreground color, or null for the default color.
* @param font The cell's desired font, or null for the default font.
* @param cellComponentId The component id for the cell editor if there is one, otherwise -1.
*/
public SimpleTreeTableCellData(Object text, Object image, Object background, Object foreground, Object font, int cellComponentId) {
this.text = text;
this.image = image;
this.background = background;
this.foreground = foreground;
this.font = font;
this.cellComponentId = cellComponentId;
}//SimpleTreeTableCellData()//
/**
* Gets the cell's desired text, or null for the default text.
* @return The cell's text (String) or resource (ResourceReference).
*/
public Object getText() {
return text;
}//getText()//
/**
* Sets the cell's desired text, or null for the default text.
* @param text The cell's text (String) or resource (ResourceReference).
*/
public void setText(Object text) {
this.text = text;
}//setText()//
/**
* Gets the cell's desired image, or null for the default image.
* @return The cell's image (JefImage) or resource (ResourceReference).
*/
public Object getImage() {
return image;
}//getImage()//
/**
* Sets the cell's desired image, or null for the default image.
* @param image The cell's image (String) or resource (ResourceReference).
*/
public void setImage(Object image) {
this.image = image;
}//setImage()//
/**
* Gets the cell's desired background color, or null for the default color.
* @return The cell's background color (JefColor), or resource (ResourceReference).
*/
public Object getBackground() {
return background;
}//getBackground()//
/**
* Sets the cell's desired background, or null for the default background.
* @param background The cell's background (String) or resource (ResourceReference).
*/
public void setBackground(Object background) {
this.background = background;
}//setBackground()//
/**
* Gets the cell's desired foreground color, or null for the default color.
* @return The cell's foreground color (JefColor), or resource (ResourceReference).
*/
public Object getForeground() {
return foreground;
}//getForeground()//
/**
* Sets the cell's desired foreground, or null for the default foreground.
* @param foreground The cell's foreground (String) or resource (ResourceReference).
*/
public void setForeground(Object foreground) {
this.foreground = foreground;
}//setForeground()//
/**
* Gets the cell's desired font, or null for the default font.
* @return The cell's font (JefFont[]), or resource (ResourceReference).
*/
public Object getFont() {
return font;
}//getFont()//
/**
* Sets the cell's desired font, or null for the default font.
* @param font The cell's font (String) or resource (ResourceReference).
*/
public void setFont(Object font) {
this.font = font;
}//setFont()//
/**
* Gets the component id for the cell editor.
* @return The component number for the cell editor, or -1 if no cell editor is associated with the cell.
*/
public int getCellComponentId() {
return cellComponentId;
}//getCellComponentId()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/*byte version = */in.readByte();
text = in.readObject();
image = in.readObject();
background = in.readObject();
foreground = in.readObject();
font = in.readObject();
cellComponentId = in.readInt();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeObject(text);
out.writeObject(image);
out.writeObject(background);
out.writeObject(foreground);
out.writeObject(font);
out.writeInt(cellComponentId);
}//writeExternal()//
}//SimpleTreeTableCellData//

View File

@@ -0,0 +1,81 @@
/*
* Copyright (c) 2005,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/*
* Encapsulates one cell of data for the purpose of updating selected cells.
* <p>This can be used to transmit header cell data as well by passing an objectId of -1.</p>
*/
public class TreeCellData implements java.io.Externalizable {
/** The identifier that will determine which row(s) are affected. */
private int objectId;
/** The zero based index of the column whose data is being modified. */
private int columnIndex;
/** The new cell data. */
private Object data;
/**
* TreeCellData constructor.
*/
public TreeCellData() {
}//TreeCellData()//
/**
* TreeCellData constructor.
* @param objectId The identifier that will determine which row(s) are affected.
* @param columnIndex The zero based index of the column whose data is being modified.
* @param data The new cell data.
*/
public TreeCellData(int objectId, int columnIndex, Object data) {
this.objectId = objectId;
this.columnIndex = columnIndex;
this.data = data;
}//TreeCellData()//
/**
* Gets the object identifier which is tied to one or more rows in the table.
* @return The identifier of the object whose rows need updating.
*/
public int getObjectId() {
return objectId;
}//getObjectId()//
/**
* Gets the index of the column whose data is being updated.
* @return The zero based column index.
*/
public int getColumnIndex() {
return columnIndex;
}//getColumnIndex()//
/**
* Gets the data for the cell.
* @return The new cell data.
*/
public Object getData() {
return data;
}//getData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/*byte version = */in.readByte();
objectId = in.readInt();
columnIndex = in.readInt();
data = in.readObject();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeInt(objectId);
out.writeInt(columnIndex);
out.writeObject(data);
}//writeExternal()//
}//TreeCellData//

View File

@@ -0,0 +1,80 @@
/*
* Copyright (c) 2005,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 java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
/*
* Encapsulates one node of data which is associated with an object in the table.
*/
public class TreeNodeData implements java.io.Externalizable {
/** The object identifier for the row being added. */
private int objectId;
/** The data for the node. */
private Object data;
/** Whether the node could possibly have children. */
private boolean canHaveChildren = false;
/**
* TreeNodeData constructor.
*/
public TreeNodeData() {
}//TreeNodeData()//
/**
* TreeNodeData constructor.
* @param objectId The object identifier for the row being added.
* @param data The data for the node.
* @param canHaveChildren Whether the node could possibly have children.
*/
public TreeNodeData(int objectId, Object data, boolean canHaveChildren) {
this.objectId = objectId;
this.data = data;
this.canHaveChildren = canHaveChildren;
}//TreeNodeData()//
/**
* Gets the object identifier for the row.
* @return The object identifier which identifies the object that is associated with the row of data. Note that there can be more than one row per object id.
*/
public int getObjectId() {
return objectId;
}//getObjectId()//
/**
* Determines whether the node could possibly have children.
* @return Whether the node might have children.
*/
public boolean canHaveChildren() {
return canHaveChildren;
}//canHaveChildren()//
/**
* Gets the data used to display the node.
* @return The data for the node.
*/
public Object getData() {
return data;
}//getData()//
/* (non-Javadoc)
* @see java.io.Externalizable#readExternal(java.io.ObjectInput)
*/
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
/*byte version = */in.readByte();
objectId = in.readInt();
data = in.readObject();
canHaveChildren = in.readBoolean();
}//readExternal()//
/* (non-Javadoc)
* @see java.io.Externalizable#writeExternal(java.io.ObjectOutput)
*/
public void writeExternal(ObjectOutput out) throws IOException {
out.writeByte(0);
out.writeInt(objectId);
out.writeObject(data);
out.writeBoolean(canHaveChildren);
}//writeExternal()//
}//TreeNodeData//

View File

@@ -0,0 +1,39 @@
/*
* Copyright (c) 2006,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.cell;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
public interface ICellButton extends ICellComponent {
public static final int STYLE_ARROW = SWT.ARROW;
public static final int STYLE_CHECK = SWT.CHECK;
public static final int STYLE_PUSH = SWT.PUSH;
public static final int STYLE_RADIO = SWT.RADIO;
public static final int STYLE_TOGGLE = SWT.TOGGLE;
public static final int STYLE_FLAT = SWT.FLAT;
public static final int STYLE_LEFT = SWT.LEFT;
public static final int STYLE_RIGHT = SWT.RIGHT;
public static final int STYLE_CENTER = SWT.CENTER;
public static final int STYLE_UP = SWT.UP;
public static final int STYLE_DOWN = SWT.DOWN;
public static final int MESSAGE_SET_TEXT = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_IMAGE = ICellComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_ACCELERATOR = ICellComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_IS_SELECTED = ICellComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = ICellComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_BLOCK_ON_SELECTIONS = ICellComponent.LAST_MESSAGE_NUMBER + 9;
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 9;
}//ICellButton//

View File

@@ -0,0 +1,47 @@
/*
* Copyright (c) 2006,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.cell;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
import com.foundation.tcv.swt.IAbstractComponent;
public interface ICellComponent extends IAbstractComponent {
public static final int STYLE_BORDER = SWT.BORDER;
public static final int STYLE_LEFT_TO_RIGHT = SWT.LEFT_TO_RIGHT;
public static final int STYLE_RIGHT_TO_LEFT = SWT.RIGHT_TO_LEFT;
public static final int VERTICAL_ALIGN_TOP = SWT.TOP;
public static final int VERTICAL_ALIGN_CENTER = SWT.CENTER;
public static final int VERTICAL_ALIGN_BOTTOM = SWT.BOTTOM;
public static final int HORIZONTAL_ALIGN_LEFT = SWT.LEFT;
public static final int HORIZONTAL_ALIGN_CENTER = SWT.CENTER;
public static final int HORIZONTAL_ALIGN_RIGHT = SWT.RIGHT;
public static final int MESSAGE_GET_BOUNDS = IAbstractComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_GET_LOCATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_GET_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_GET_IS_FOCUS_CONTROL = IAbstractComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_BOUNDS = IAbstractComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_LOCATION = IAbstractComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_SIZE = IAbstractComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_FOCUS = IAbstractComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_IS_ENABLED = IAbstractComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_LAYOUT_DATA = IAbstractComponent.LAST_MESSAGE_NUMBER + 10;
public static final int MESSAGE_SET_TOOL_TIP_TEXT = IAbstractComponent.LAST_MESSAGE_NUMBER + 11;
public static final int MESSAGE_SET_BACKGROUND_COLOR = IAbstractComponent.LAST_MESSAGE_NUMBER + 12;
public static final int MESSAGE_SET_FOREGROUND_COLOR = IAbstractComponent.LAST_MESSAGE_NUMBER + 13;
public static final int MESSAGE_SET_FONTS = IAbstractComponent.LAST_MESSAGE_NUMBER + 14;
/** Packs the component, and any children. Passes either null, or a Boolean indicating whether the children changed. */
public static final int MESSAGE_PACK = IAbstractComponent.LAST_MESSAGE_NUMBER + 15;
public static final int MESSAGE_SET_DECIMAL_SCALE = IAbstractComponent.LAST_MESSAGE_NUMBER + 16;
public static final int LAST_MESSAGE_NUMBER = IAbstractComponent.LAST_MESSAGE_NUMBER + 16;
}//ICellComponent//

View File

@@ -0,0 +1,30 @@
/*
* Copyright (c) 2007,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.cell;
import org.eclipse.swt.SWT;
public interface ICellContainer extends ICellComponent {
public static final int STYLE_H_SCROLL = SWT.H_SCROLL;
public static final int STYLE_V_SCROLL = SWT.V_SCROLL;
public static final int STYLE_NO_BACKGROUND = SWT.NO_BACKGROUND;
public static final int STYLE_NO_FOCUS = SWT.NO_FOCUS;
public static final int STYLE_NO_MERGE_PAINTS = SWT.NO_MERGE_PAINTS;
public static final int STYLE_NO_REDRAW_RESIZE = SWT.NO_REDRAW_RESIZE;
public static final int STYLE_NO_RADIO_GROUP = SWT.NO_RADIO_GROUP;
public static final int STYLE_EMBEDDED = SWT.EMBEDDED;
public static final int STYLE_DOUBLE_BUFFERED = SWT.DOUBLE_BUFFERED;
public static final int INHERIT_NONE = 0;
public static final int INHERIT_DEFAULT = 1;
public static final int INHERIT_FORCE = 2;
public static final int MESSAGE_SET_INHERIT_BACKGROUND = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_TAB_ORDER = ICellContainer.LAST_MESSAGE_NUMBER + 2;
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 2;
}//ICellContainer//

View File

@@ -0,0 +1,25 @@
/*
* Copyright (c) 2006,2007 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.cell;
import org.eclipse.swt.SWT;
public interface ICellDateTime extends ICellComponent {
public static final int STYLE_DATE = SWT.DATE;
public static final int STYLE_TIME = SWT.TIME;
public static final int STYLE_CALENDAR = SWT.CALENDAR;
public static final int STYLE_SHORT = SWT.SHORT;
public static final int STYLE_MEDIUM = SWT.MEDIUM;
public static final int STYLE_LONG = SWT.LONG;
public static final int MESSAGE_VIEW_REFRESH_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = ICellComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 4;
}//ICellButton//

View File

@@ -0,0 +1,12 @@
/*
* Copyright (c) 2007,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.cell;
public interface ICellPanel extends ICellContainer {
public static final int LAST_MESSAGE_NUMBER = ICellContainer.LAST_MESSAGE_NUMBER + 0;
}//ICellPanel//

View File

@@ -0,0 +1,43 @@
/*
* Copyright (c) 2007 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.cell;
import org.eclipse.swt.SWT;
public interface IComboBox extends ICellComponent {
public static final int STYLE_DROP_DOWN = SWT.DROP_DOWN;
public static final int STYLE_READ_ONLY = SWT.READ_ONLY;
public static final int STYLE_SIMPLE = SWT.SIMPLE;
/** A multi-selection option that tells the hidden data linkage to always pass the default value when there are multiple selections. */
public static final int MULTI_SELECTION_OPTION_DEFAULT = 0;
/** A multi-selection option that tells the hidden data linkage to pass the selection's value if all selections resolve to the same value, otherwise pass the default value. */
public static final int MULTI_SELECTION_OPTION_COMMON = 1;
/** This multi-selection option is only usable for boolean hidden data. It performs a logical AND operation to receive a value. */
public static final int MULTI_SELECTION_OPTION_AND = 2;
/** This multi-selection option is only usable for boolean hidden data. It performs a logical OR operation to receive a value. */
public static final int MULTI_SELECTION_OPTION_OR = 3;
/** The only invalid value for an object identifier. */
public static final int INVALID_OBJECT_ID = -1;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_SELECTION_DELAY = ICellComponent.LAST_MESSAGE_NUMBER + 2;
/** The parameters are specific to the subclass components. */
public static final int MESSAGE_SET_ITEMS = ICellComponent.LAST_MESSAGE_NUMBER + 3;
/** The message data is the data specific to the control for the item, but will be null if the item has previously been added. The secondary message data is the hidden data object array, or null if there are no hidden data columns. The message integer is the object identifier and the secondary message integer is the optional (will be -1 if not valid) index of the row in the display. */
public static final int MESSAGE_ADD_ITEM = ICellComponent.LAST_MESSAGE_NUMBER + 4;
/** The message integer is the object identifier and the secondary message integer is the optional (-1 if not valid) index within the display. */
public static final int MESSAGE_REMOVE_ITEM = ICellComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_REMOVE_ALL = ICellComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_VIEW_SYNCHRONIZE_SELECTION = ICellComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_SET_TEXT_LIMIT = ICellComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_SET_ITEM_TEXT = ICellComponent.LAST_MESSAGE_NUMBER + 10;
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 10;
}//IComboBox//

View File

@@ -0,0 +1,16 @@
/*
* Copyright (c) 2007,2008 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.cell;
public interface IProgress extends ICellComponent {
public static final int MESSAGE_SET_PROGRESS = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_MAXIMUM = ICellComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_SET_MINIMUM = ICellComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_MULTIPLIER = ICellComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 4;
}//IProgress//

View File

@@ -0,0 +1,109 @@
/*
* Copyright (c) 2007,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.cell;
import java.io.IOException;
import java.io.ObjectInput;
import java.io.ObjectOutput;
import org.eclipse.swt.SWT;
import com.foundation.tcv.swt.IScrollableComponent;
public interface ITextField extends ICellComponent {
public static final int STYLE_H_SCROLL = SWT.H_SCROLL;
public static final int STYLE_V_SCROLL = SWT.V_SCROLL;
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 = ICellComponent.LAST_MESSAGE_NUMBER + 1;
public static final int MESSAGE_SET_VERIFY_VALUE = ICellComponent.LAST_MESSAGE_NUMBER + 2;
public static final int MESSAGE_VIEW_SYNCHRONIZE_VALUE = ICellComponent.LAST_MESSAGE_NUMBER + 3;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_VALUE = ICellComponent.LAST_MESSAGE_NUMBER + 4;
public static final int MESSAGE_SET_AUTO_SYNCHRONIZE_VALUE_DELAY = ICellComponent.LAST_MESSAGE_NUMBER + 5;
public static final int MESSAGE_SET_SHADOW_TEXT = ICellComponent.LAST_MESSAGE_NUMBER + 6;
public static final int MESSAGE_SET_SHADOW_TEXT_COLOR = ICellComponent.LAST_MESSAGE_NUMBER + 7;
public static final int MESSAGE_SET_SELECT_ON_FOCUS = ICellComponent.LAST_MESSAGE_NUMBER + 8;
public static final int MESSAGE_INITIALIZE_FORMAT = IScrollableComponent.LAST_MESSAGE_NUMBER + 9;
public static final int MESSAGE_FORMAT_MESSAGE = IScrollableComponent.LAST_MESSAGE_NUMBER + 10; //Pass the message to the format object using the secondary integer as the format's message number.//
public static final int LAST_MESSAGE_NUMBER = ICellComponent.LAST_MESSAGE_NUMBER + 10;
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_USE_NULL = ICellComponent.LAST_MESSAGE_NUMBER + 4;
public static final int LAST_MESSAGE_NUMBER = IFormat.LAST_MESSAGE_NUMBER + 4;
}//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_DEFAULT_VALUE = IFormat.LAST_MESSAGE_NUMBER + 13;
public static final int LAST_MESSAGE_NUMBER = IFormat.LAST_MESSAGE_NUMBER + 13;
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//