org.formaria.swt
Class DialogTable

java.lang.Object
  extended by Composite
      extended by org.formaria.swt.SwtPage
          extended by org.formaria.swt.Dialog
              extended by org.formaria.swt.DialogTable
All Implemented Interfaces:
ContentPane, DialogSupport, ExceptionHandler, PageSupport, PageSupport.IDialog, PersistentState
Direct Known Subclasses:
DialogTableAddColumn, DialogTableAddItem, DialogTableSetValueColumnItem

public abstract class DialogTable
extends Dialog

Abstract class which extends Dialog for the SWT Tables


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.formaria.aria.PageSupport
PageSupport.IDialog
 
Field Summary
protected  Label[] borders
           
static int H_GAP
           
protected  int height
           
static int HEIGHT_BUTTON
           
static int HEIGHT_FULL
           
static int HEIGHT_SPACING
           
static int V_GAP
           
protected  java.lang.String value
           
protected  int width
           
static int WIDTH_SPACING
           
protected  int widthLabel
           
protected  Button[] xbs
           
protected  Edit[] xes
           
protected  EditTable xet
           
protected  Label[] xls
           
 
Fields inherited from class org.formaria.swt.Dialog
CANCEL_CLICKED, CLOSE_CLICKED, closeButtonID, contentPanel, DEFAULT_PADDING, focusComponent, lastReturnValue, NO_CLICKED, NOTHING_CLICKED_YET, OK_CLICKED, padding, returnObject, returnValue, saveOnClose, shell, trueField, WIDTH_BORDER_CENTER
 
Fields inherited from class org.formaria.swt.SwtPage
adapter, componentFactory, COOLITEM, pageHelper, pageMgr, project, rootModel
 
Fields inherited from interface org.formaria.aria.PageSupport
ACTIVATED, ANNOTATEDIMAGE, ARIA_AWT_PACKAGE, ARIA_HTML_PACKAGE, ARIA_SWING_PACKAGE, ARIA_SWT_PACKAGE, BORDER_LAYOUT, BOX_LAYOUT, BUTTON, CARD_LAYOUT, CHECK, COLUMN_LAYOUT, COMBO, CREATED, DEACTIVATED, DISCARDED, DISPLAYED, EDIT, FLOW_LAYOUT, GRID_LAYOUT, GRIDBAG_LAYOUT, GROUP, GUIDE_LAYOUT, HOTSPOTIMAGE, IMAGE, IMAGEMAP, LABEL, LAYER_LAYOUT, LIST, LOADED, MENU, MENUBAR, MENUITEM, METACONTENT, NULL_LAYOUT, PANEL, PASSWORD, RADIO, SCALE_LAYOUT, SCROLLABLEMETACONTENT, SCROLLPANE, SPLITPANE, SPRING_LAYOUT, TABLE, TABPANEL, TEXTAREA, UNKNOWN, UNKNOWN_PAGE_STATE, WMF
 
Constructor Summary
DialogTable(EditTable xet, java.lang.String title, int nbLabels)
          Creates a new dialogtable.
 
Method Summary
 void addButtons(java.lang.String name, java.lang.String text)
          Add the buttons
 void cancel()
          Close the dialog
 void finalstep()
          Fill the content panel with all the components
abstract  void firststep()
          Do the first step of the dialog edition
abstract  void fourthstep()
          Do the fourth step of the dialog edition
 Label getBorder(int x, int y, int width, int height)
          Get a label which reprensent a border
 Edit getEdit(int x, int y, int width, int height, java.lang.String s)
          Get a edit
 Label getLabel(int x, int y, int width, int height, java.lang.String s)
          Get a label
 void init()
          Init the values
 void resetAll()
          Reset all the edit components
abstract  void secondstep()
          Do the second step of the dialog edition
 java.lang.String show()
          Show the dialog
abstract  void thirdstep()
          Do the third step of the dialog edition
 
Methods inherited from class org.formaria.swt.Dialog
cancelDlg, checkSubclass, closeDlg, getContentPane, getFocusComponent, getLastReturnValue, getMinimumSize, getPreferredSize, getReturnObject, pack, pageCreated, setBackground, setCaption, setFont, setForeground, setLocation, setModal, setResizable, setSaveOnClose, setSize, setUseNativeHeaders, showDialog, showDialog, showDialog, showModalWindow, SWTtoAWT, wasMouseClicked
 
Methods inherited from class org.formaria.swt.SwtPage
accumulateMessages, addBinding, addHandler, addHandler, addListener, addNestedPage, addValidation, addValidation, addValidation, checkValidations, clearValidations, doLayout, enterDataBindingContext, evaluateAttribute, evaluatePath, exitDataBindingContext, findComponent, findComponent, getAttribute, getAttribute, getBinding, getBinding, getBindings, getComponentFactory, getComponentName, getCurrentEvent, getDataBindingContext, getDataBindingContext, getEventAttribute, getEventHandler, getExtension, getName, getOwner, getPageSize, getProject, getStatus, getToolTip, getValidationHandler, handleEventHandlerException, handleException, isFocusChangeSuppressed, pageActivated, pageAdded, pageDeactivated, removeBinding, restoreState, saveBoundComponentValues, saveState, setAttribute, setAttribute, setClearPage, setComponentFactory, setEventHandler, setExceptionHandler, setExtension, setLayout, setName, setStatus, setToolTip, setValidationFactory, showComponents, showHandCursor, showMessage, showMessage, stripAttributeValues, translate, updateBinding, updateBindings, updateBoundComponentValues, validate, validationHandler, wasMouseDoubleClicked, wasMouseRightClicked
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.formaria.aria.PageSupport
accumulateMessages, addBinding, addHandler, addHandler, addListener, addNestedPage, addValidation, addValidation, addValidation, checkValidations, clearValidations, doLayout, enterDataBindingContext, evaluateAttribute, evaluatePath, exitDataBindingContext, findComponent, findComponent, getAttribute, getAttribute, getBinding, getBinding, getBindings, getComponentFactory, getComponentName, getCurrentEvent, getDataBindingContext, getDataBindingContext, getEventAttribute, getEventHandler, getExtension, getName, getOwner, getPageSize, getProject, getStatus, getValidationHandler, handleEventHandlerException, handleException, isFocusChangeSuppressed, pageActivated, pageAdded, pageDeactivated, removeBinding, saveBoundComponentValues, setAttribute, setClearPage, setComponentFactory, setEventHandler, setExceptionHandler, setExtension, setLayout, setLocation, setName, setStatus, setValidationFactory, setVisible, showComponents, showHandCursor, showMessage, showMessage, stripAttributeValues, translate, updateBinding, updateBindings, updateBoundComponentValues, validate, validationHandler, wasMouseDoubleClicked, wasMouseRightClicked
 
Methods inherited from interface org.formaria.aria.PersistentState
restoreState, saveState
 

Field Detail

HEIGHT_FULL

public static final int HEIGHT_FULL
See Also:
Constant Field Values

WIDTH_SPACING

public static final int WIDTH_SPACING
See Also:
Constant Field Values

HEIGHT_SPACING

public static final int HEIGHT_SPACING
See Also:
Constant Field Values

H_GAP

public static final int H_GAP
See Also:
Constant Field Values

V_GAP

public static final int V_GAP
See Also:
Constant Field Values

HEIGHT_BUTTON

public static final int HEIGHT_BUTTON
See Also:
Constant Field Values

xet

protected EditTable xet

xls

protected Label[] xls

borders

protected Label[] borders

xes

protected Edit[] xes

xbs

protected Button[] xbs

widthLabel

protected int widthLabel

width

protected int width

height

protected int height

value

protected java.lang.String value
Constructor Detail

DialogTable

public DialogTable(EditTable xet,
                   java.lang.String title,
                   int nbLabels)
Creates a new dialogtable.

Parameters:
xet - the table
title - the title of the dialog
nbLabels - the number of Label object in the dialog
Method Detail

show

public java.lang.String show()
Show the dialog


init

public void init()
Init the values

Overrides:
init in class Dialog

addButtons

public void addButtons(java.lang.String name,
                       java.lang.String text)
Add the buttons

Parameters:
name - name of the button
text - text of the button

finalstep

public void finalstep()
Fill the content panel with all the components


getBorder

public Label getBorder(int x,
                       int y,
                       int width,
                       int height)
Get a label which reprensent a border

Parameters:
x - x-coordinate
width - width of the label
height - height of the label
Returns:
the label created

getLabel

public Label getLabel(int x,
                      int y,
                      int width,
                      int height,
                      java.lang.String s)
Get a label

Parameters:
x - x-coordinate
width - width of the label
height - height of the label
s - text of the label
Returns:
the label created

getEdit

public Edit getEdit(int x,
                    int y,
                    int width,
                    int height,
                    java.lang.String s)
Get a edit

Parameters:
x - x-coordinate
width - width of the label
height - height of the label
s - text of the label
Returns:
the edit created

resetAll

public void resetAll()
Reset all the edit components


cancel

public void cancel()
Close the dialog


firststep

public abstract void firststep()
Do the first step of the dialog edition


secondstep

public abstract void secondstep()
Do the second step of the dialog edition


thirdstep

public abstract void thirdstep()
Do the third step of the dialog edition


fourthstep

public abstract void fourthstep()
Do the fourth step of the dialog edition