lime.uga.edu.wsworkflow.layoutTester
Class FormLayoutTab

java.lang.Object
  extended by lime.uga.edu.wsworkflow.layoutTester.Tab
      extended by lime.uga.edu.wsworkflow.layoutTester.FormLayoutTab

 class FormLayoutTab
extends Tab

Copyright (c) 2000, 2003 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation


Nested Class Summary
 class FormLayoutTab.AttachDialog
          AttachDialog is the class that creates a dialog specific for this example.
 
Field Summary
(package private)  int BOTTOM_COL
           
(package private)  org.eclipse.swt.widgets.Button bottomAttach
           
(package private)  org.eclipse.swt.custom.TableEditor bottomEditor
           
(package private)  org.eclipse.swt.custom.CCombo combo
           
(package private)  int COMBO_COL
           
(package private)  org.eclipse.swt.custom.TableEditor comboEditor
           
(package private)  org.eclipse.swt.layout.FormLayout formLayout
           
(package private)  int HEIGHT_COL
           
(package private)  org.eclipse.swt.custom.TableEditor heightEditor
           
(package private)  org.eclipse.swt.widgets.Text heightText
           
(package private)  int LEFT_COL
           
(package private)  org.eclipse.swt.widgets.Button leftAttach
           
(package private)  org.eclipse.swt.custom.TableEditor leftEditor
           
(package private)  org.eclipse.swt.widgets.Combo marginHeight
           
(package private)  org.eclipse.swt.widgets.Combo marginWidth
           
(package private)  int MODIFY_COLS
           
(package private)  int RIGHT_COL
           
(package private)  org.eclipse.swt.widgets.Button rightAttach
           
(package private)  org.eclipse.swt.custom.TableEditor rightEditor
           
(package private)  int TOP_COL
           
(package private)  org.eclipse.swt.widgets.Button topAttach
           
(package private)  org.eclipse.swt.custom.TableEditor topEditor
           
(package private)  int TOTAL_COLS
           
(package private)  int WIDTH_COL
           
(package private)  org.eclipse.swt.custom.TableEditor widthEditor
           
(package private)  org.eclipse.swt.widgets.Text widthText
           
 
Fields inherited from class lime.uga.edu.wsworkflow.layoutTester.Tab
add, childGroup, children, clear, code, controlGroup, data, delete, index, instance, lastSelected, layoutComposite, layoutGroup, names, newItem, sash, selectionListener, size, tabFolderPage, table, traverseListener
 
Constructor Summary
FormLayoutTab(LayoutExample instance)
          Creates the Tab within a given instance of LayoutExample.
 
Method Summary
(package private)  int alignmentConstant(java.lang.String align)
          Returns the constant for the alignment for an attachment given a string.
(package private)  java.lang.String alignmentString(int align)
          Returns a string representing the alignment for an attachment given a constant.
(package private)  java.lang.String checkAttachment(java.lang.String oldAttach, org.eclipse.swt.layout.FormAttachment newAttach)
          Update the attachment field in case the type of control has changed.
(package private)  void createChildWidgets()
          Creates the widgets in the "child" group.
(package private)  void createControlWidgets()
          Creates the control widgets.
(package private)  void createLayout()
          Creates the example layout.
(package private)  void disposeEditors()
          Disposes the editors without placing their contents into the table.
(package private)  java.lang.StringBuffer generateLayoutCode()
          Generates code for the example layout.
(package private)  java.lang.String[] getLayoutDataFieldNames()
          Returns the layout data field names.
(package private)  java.lang.String getTabText()
          Gets the text for the tab folder item.
(package private)  void resetEditors()
          Takes information from TableEditors and stores it.
(package private)  void resetEditors(boolean tab)
           
(package private)  org.eclipse.swt.layout.FormAttachment setAttachment(java.lang.String attachment)
          Sets an attachment to the edge of a widget using the information in the table.
(package private)  void setLayoutData()
          Sets the layout data for the children of the layout.
(package private)  void setLayoutState()
          Sets the state of the layout.
 
Methods inherited from class lime.uga.edu.wsworkflow.layoutTester.Tab
createChildGroup, createComboEditor, createControlGroup, createLayoutComposite, createLayoutGroup, createTabFolderPage, createTextEditor, generateCode, getChildCode, refreshLayoutComposite
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

marginHeight

org.eclipse.swt.widgets.Combo marginHeight

marginWidth

org.eclipse.swt.widgets.Combo marginWidth

formLayout

org.eclipse.swt.layout.FormLayout formLayout

comboEditor

org.eclipse.swt.custom.TableEditor comboEditor

widthEditor

org.eclipse.swt.custom.TableEditor widthEditor

heightEditor

org.eclipse.swt.custom.TableEditor heightEditor

leftEditor

org.eclipse.swt.custom.TableEditor leftEditor

rightEditor

org.eclipse.swt.custom.TableEditor rightEditor

topEditor

org.eclipse.swt.custom.TableEditor topEditor

bottomEditor

org.eclipse.swt.custom.TableEditor bottomEditor

combo

org.eclipse.swt.custom.CCombo combo

widthText

org.eclipse.swt.widgets.Text widthText

heightText

org.eclipse.swt.widgets.Text heightText

leftAttach

org.eclipse.swt.widgets.Button leftAttach

rightAttach

org.eclipse.swt.widgets.Button rightAttach

topAttach

org.eclipse.swt.widgets.Button topAttach

bottomAttach

org.eclipse.swt.widgets.Button bottomAttach

COMBO_COL

final int COMBO_COL
See Also:
Constant Field Values

WIDTH_COL

final int WIDTH_COL
See Also:
Constant Field Values

HEIGHT_COL

final int HEIGHT_COL
See Also:
Constant Field Values

LEFT_COL

final int LEFT_COL
See Also:
Constant Field Values

RIGHT_COL

final int RIGHT_COL
See Also:
Constant Field Values

TOP_COL

final int TOP_COL
See Also:
Constant Field Values

BOTTOM_COL

final int BOTTOM_COL
See Also:
Constant Field Values

MODIFY_COLS

final int MODIFY_COLS
See Also:
Constant Field Values

TOTAL_COLS

final int TOTAL_COLS
See Also:
Constant Field Values
Constructor Detail

FormLayoutTab

FormLayoutTab(LayoutExample instance)
Creates the Tab within a given instance of LayoutExample.

Method Detail

alignmentConstant

int alignmentConstant(java.lang.String align)
Returns the constant for the alignment for an attachment given a string.


alignmentString

java.lang.String alignmentString(int align)
Returns a string representing the alignment for an attachment given a constant.


checkAttachment

java.lang.String checkAttachment(java.lang.String oldAttach,
                                 org.eclipse.swt.layout.FormAttachment newAttach)
Update the attachment field in case the type of control has changed.


createChildWidgets

void createChildWidgets()
Creates the widgets in the "child" group.

Overrides:
createChildWidgets in class Tab

createControlWidgets

void createControlWidgets()
Creates the control widgets.

Overrides:
createControlWidgets in class Tab

createLayout

void createLayout()
Creates the example layout.

Overrides:
createLayout in class Tab

disposeEditors

void disposeEditors()
Disposes the editors without placing their contents into the table.

Overrides:
disposeEditors in class Tab

generateLayoutCode

java.lang.StringBuffer generateLayoutCode()
Generates code for the example layout.

Overrides:
generateLayoutCode in class Tab

getLayoutDataFieldNames

java.lang.String[] getLayoutDataFieldNames()
Returns the layout data field names.

Overrides:
getLayoutDataFieldNames in class Tab

getTabText

java.lang.String getTabText()
Gets the text for the tab folder item.

Overrides:
getTabText in class Tab

resetEditors

void resetEditors()
Takes information from TableEditors and stores it.

Overrides:
resetEditors in class Tab

resetEditors

void resetEditors(boolean tab)
Overrides:
resetEditors in class Tab

setAttachment

org.eclipse.swt.layout.FormAttachment setAttachment(java.lang.String attachment)
Sets an attachment to the edge of a widget using the information in the table.


setLayoutData

void setLayoutData()
Sets the layout data for the children of the layout.

Overrides:
setLayoutData in class Tab

setLayoutState

void setLayoutState()
Sets the state of the layout.

Overrides:
setLayoutState in class Tab