java.lang.Object
|
+--org.eclipse.ui.part.WorkbenchPart
|
+--org.eclipse.ui.part.ViewPart
|
+--com.ibm.jdg2e.swt.layouts.LayoutView
Demonstrates the use of all the SWT layout managers and their associated classes. These include: FillLayout, RowLayout, GridLayout, and FormLayout. All the layouts are imbedded in a StackLayout with a field to select which layout to display.
| Field Summary | |
(package private) org.eclipse.swt.widgets.Button |
b1
|
(package private) org.eclipse.swt.widgets.Button |
b2
|
(package private) org.eclipse.swt.widgets.Button |
b3
|
(package private) org.eclipse.swt.widgets.Button |
b4
|
(package private) org.eclipse.swt.widgets.Button |
b5
|
(package private) org.eclipse.swt.widgets.Button[] |
buttons
|
(package private) org.eclipse.swt.widgets.Text |
city
|
(package private) org.eclipse.swt.widgets.Label |
cityLbl
|
(package private) org.eclipse.swt.widgets.Button |
clearButton
|
(package private) static java.lang.String |
CLEARED
|
(package private) org.eclipse.swt.widgets.Button |
clearEntryButton
|
(package private) java.lang.String |
currentValue
|
(package private) org.eclipse.swt.widgets.Text |
displayLED
|
(package private) static int |
EXAMPLE_COUNT
|
(package private) org.eclipse.swt.widgets.Text |
firstName
|
(package private) org.eclipse.swt.widgets.Label |
firstNameLbl
|
(package private) static java.lang.String |
keyLabels
|
(package private) java.lang.String |
lastKey
|
(package private) org.eclipse.swt.widgets.Text |
lastName
|
(package private) org.eclipse.swt.widgets.Label |
lastNameLbl
|
(package private) static java.lang.String[] |
layoutList
|
(package private) static int |
line2offset
|
(package private) java.lang.String |
op
|
(package private) java.lang.String |
previousValue
|
(package private) static java.lang.String |
SAMPLE_FILL_LAYOUT1
|
(package private) static java.lang.String |
SAMPLE_FORM_LAYOUT1
|
(package private) static java.lang.String |
SAMPLE_GRID_LAYOUT1
|
(package private) static java.lang.String |
SAMPLE_GRID_LAYOUT2
|
(package private) static java.lang.String |
SAMPLE_ROW_LAYOUT1
|
(package private) org.eclipse.swt.widgets.Combo |
state
|
(package private) org.eclipse.swt.widgets.Label |
stateLbl
|
(package private) org.eclipse.swt.widgets.Text |
street
|
(package private) org.eclipse.swt.widgets.Label |
streetLbl
|
| Fields inherited from class org.eclipse.ui.part.ViewPart |
|
| Fields inherited from class org.eclipse.ui.part.WorkbenchPart |
|
| Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
| Constructor Summary | |
LayoutView()
|
|
| Method Summary | |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
Populate the view with the example layout managers. |
private void |
createStackContent(org.eclipse.swt.widgets.Composite[] stackLayoutContent)
|
void |
dispose()
|
protected void |
setButtons(org.eclipse.swt.widgets.Composite parent)
Define the buttons used by the row and grid layout managers. |
protected void |
setCheckBoxes(org.eclipse.swt.widgets.Composite parent)
Defines a set of checkbox style buttons used by FillLayout. |
protected void |
setFields(org.eclipse.swt.widgets.Composite group)
Define the fields used in the grid and form layout examples. |
protected void |
setFillLayout(org.eclipse.swt.widgets.Composite parent)
Creates a fill layout. |
void |
setFocus()
|
protected void |
setFormLayoutAddress(org.eclipse.swt.widgets.Composite parent)
Define a name and address form using a form layout. |
protected void |
setGridLayoutAddress(org.eclipse.swt.widgets.Composite parent)
Define a name and address form using a grid layout. |
protected void |
setGridLayoutButtons(org.eclipse.swt.widgets.Composite parent)
Layout buttons used by the first grid layout example. |
protected void |
setRowLayout(org.eclipse.swt.widgets.Composite parent)
Create a simple row layout of buttons. |
protected void |
setStackLayout(org.eclipse.swt.widgets.Composite parent)
Imbed all the layouts into a stack layout with a field to select the layout to display on top. |
| Methods inherited from class org.eclipse.ui.part.ViewPart |
getViewSite, init, init, saveState, setContentDescription, setInitializationData, setPartName |
| Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPropertyListener, firePropertyChange, getAdapter, getConfigurationElement, getContentDescription, getDefaultImage, getPartName, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener, setSite, setTitle, setTitleImage, setTitleToolTip, showBusy |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
| Field Detail |
org.eclipse.swt.widgets.Button b1
org.eclipse.swt.widgets.Button b2
org.eclipse.swt.widgets.Button b3
org.eclipse.swt.widgets.Button b4
org.eclipse.swt.widgets.Button b5
org.eclipse.swt.widgets.Button[] buttons
org.eclipse.swt.widgets.Text city
org.eclipse.swt.widgets.Label cityLbl
org.eclipse.swt.widgets.Button clearButton
static final java.lang.String CLEARED
org.eclipse.swt.widgets.Button clearEntryButton
java.lang.String currentValue
org.eclipse.swt.widgets.Text displayLED
static final int EXAMPLE_COUNT
org.eclipse.swt.widgets.Text firstName
org.eclipse.swt.widgets.Label firstNameLbl
static final java.lang.String keyLabels
java.lang.String lastKey
org.eclipse.swt.widgets.Text lastName
org.eclipse.swt.widgets.Label lastNameLbl
static java.lang.String[] layoutList
static final int line2offset
java.lang.String op
java.lang.String previousValue
static final java.lang.String SAMPLE_FILL_LAYOUT1
static final java.lang.String SAMPLE_FORM_LAYOUT1
static final java.lang.String SAMPLE_GRID_LAYOUT1
static final java.lang.String SAMPLE_GRID_LAYOUT2
static final java.lang.String SAMPLE_ROW_LAYOUT1
org.eclipse.swt.widgets.Combo state
org.eclipse.swt.widgets.Label stateLbl
org.eclipse.swt.widgets.Text street
org.eclipse.swt.widgets.Label streetLbl
| Constructor Detail |
public LayoutView()
| Method Detail |
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
createPartControl in interface org.eclipse.ui.IWorkbenchPartcreatePartControl in class org.eclipse.ui.part.WorkbenchPartIWorkbenchPart.createPartControl(Composite)private void createStackContent(org.eclipse.swt.widgets.Composite[] stackLayoutContent)
public void dispose()
dispose in interface org.eclipse.ui.IWorkbenchPartdispose in class org.eclipse.ui.part.WorkbenchPartprotected void setButtons(org.eclipse.swt.widgets.Composite parent)
protected void setCheckBoxes(org.eclipse.swt.widgets.Composite parent)
protected void setFields(org.eclipse.swt.widgets.Composite group)
protected void setFillLayout(org.eclipse.swt.widgets.Composite parent)
public void setFocus()
setFocus in interface org.eclipse.ui.IWorkbenchPartsetFocus in class org.eclipse.ui.part.WorkbenchPartWorkbenchPart.setFocus()protected void setFormLayoutAddress(org.eclipse.swt.widgets.Composite parent)
protected void setGridLayoutAddress(org.eclipse.swt.widgets.Composite parent)
protected void setGridLayoutButtons(org.eclipse.swt.widgets.Composite parent)
protected void setRowLayout(org.eclipse.swt.widgets.Composite parent)
protected void setStackLayout(org.eclipse.swt.widgets.Composite parent)
parent -