|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.tssap.util.ui.glpc.section.TableSection
This is the base class for all table sections with button support.
| Constructor Summary | |
TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons)
Creates a new TableSection with non-equal column widths. |
|
TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled)
Creates a new TableSection with non-equal column widths. |
|
TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled,
boolean singleSelection)
Creates a new TableSection with non-equal column widths. |
|
| Method Summary | |
void |
addFocusListener(org.eclipse.swt.events.FocusListener listener)
Adds a new FocusListener to the section table. |
void |
addMenuProvider(IMenuProvider provider)
Adds a new IMenuProvider to the section table. |
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds a new SelectionListener to the section table. |
int |
getSelectionIndex()
|
javax.swing.table.TableModel |
getTableModel()
Getter method for the table model used for this table section. |
ISapTableViewer |
getTableViewer()
Getter method for the table viewer used for this table section. |
void |
initButtonedSection(IGridLayoutPane glp)
Initializes the section by adding a table viewer on the left. |
void |
removeFocusListener(org.eclipse.swt.events.FocusListener listener)
Removes a FocusListener to the section table. |
void |
removeMenuProvider(IMenuProvider provider)
Removes a IMenuProvider to the section table. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes a SelectionListener to the section table. |
void |
setColumnWidths(int[] columnWidths)
|
void |
setSelectionIndex(int index)
|
void |
widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
Called when the default widget has been selected. |
void |
widgetSelected(org.eclipse.swt.events.SelectionEvent e)
Called when a selection event occured. |
| Methods inherited from interface com.tssap.util.ui.glpc.section.ISectionWithButtons |
addButtonClickedListener, removeButtonClickedListener |
| Methods inherited from interface com.tssap.util.ui.glpc.section.ISection |
initSection |
| Methods inherited from interface com.tssap.util.ui.glpc.ITitledGridLayoutPaneContainer |
getDescription, getTitle, setDescription, setTitle |
| Methods inherited from interface com.tssap.util.ui.glpc.IGridLayoutPaneContainer |
getUserGridNumOfColumns, initContainer, isUserGridEqualColSize |
| Methods inherited from interface com.tssap.util.ui.IEditable |
isEditable, setEditable |
| Constructor Detail |
public TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons)
TableSection with non-equal column widths.tableModel - The Swing TableModel to use for the
table section.widgetFactory - The WidgetFactory to use.title - The title of the section.description - The description of the section.buttons - Array of Strings with the texts of the buttons to be
displayed.
public TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled)
TableSection with non-equal column widths.tableModel - The Swing TableModel to use for the
table section.widgetFactory - The WidgetFactory to use.title - The title of the section.description - The description of the section.buttons - Array of Strings with the texts of the buttons to be
displayed.
public TableSection(javax.swing.table.TableModel tableModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled,
boolean singleSelection)
TableSection with non-equal column widths.tableModel - The Swing TableModel to use for the
table section.widgetFactory - The WidgetFactory to use.title - The title of the section.description - The description of the section.buttons - Array of Strings with the texts of the buttons to be
displayed.| Method Detail |
public void setColumnWidths(int[] columnWidths)
public javax.swing.table.TableModel getTableModel()
public ISapTableViewer getTableViewer()
public final void initButtonedSection(IGridLayoutPane glp)
setTableModel(TableModel> method must have been called before this
method is called by the framework.initButtonedSection in interface ISectionWithButtonsglp - The client area of the super class to be filled within the
section.public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener to the section table.addSelectionListener in interface ITableSectionlistener - The listener to add.public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener to the section table.removeSelectionListener in interface ITableSectionlistener - The listener to remove.public void addFocusListener(org.eclipse.swt.events.FocusListener listener)
FocusListener to the section table.listener - The listener to add.public void removeFocusListener(org.eclipse.swt.events.FocusListener listener)
FocusListener to the section table.listener - The listener to remove.public void widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent e)
widgetSelected(SelectionEvent).e - The selection event.public void widgetSelected(org.eclipse.swt.events.SelectionEvent e)
e - The selection event.public void addMenuProvider(IMenuProvider provider)
IMenuProvider to the section table.addMenuProvider in interface ITableSectionprovider - The provider to add.public void removeMenuProvider(IMenuProvider provider)
IMenuProvider to the section table.removeMenuProvider in interface ITableSectionprovider - The provider to remove.public int getSelectionIndex()
public void setSelectionIndex(int index)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||