com.bolour.sample.eclipse.service.ui
Class FunctionsGrid
java.lang.Object
|
+--com.bolour.sample.eclipse.service.ui.FunctionsGrid
- public class FunctionsGrid
- extends java.lang.Object
User interface grid for arithmetic functions.
Provides a function input and a function result field.
Allows user interface widgets (a button and an associated label) to be
made available to the user for invoking a configured function.
- Author:
- Azad
Constructor Summary |
FunctionsGrid(org.eclipse.swt.widgets.Composite parent)
Create the skeletal layout of the function invocation view. |
Method Summary |
void |
addFunction(IFunction function,
java.lang.String functionName,
java.lang.String label,
java.lang.Integer constant)
Add a new row to the functions grid for a member function. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FunctionsGrid
public FunctionsGrid(org.eclipse.swt.widgets.Composite parent)
- Create the skeletal layout of the function invocation view.
- Parameters:
parent
- The parent of the view.
addFunction
public void addFunction(IFunction function,
java.lang.String functionName,
java.lang.String label,
java.lang.Integer constant)
- Add a new row to the functions grid for a member function.
- Parameters:
function
- Reference to the function to call when
this row's button is selected.functionName
- The name of the function.label
- Text of the associated label.constant
- The constant of computation (for display only).