|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.tssap.util.ui.glpc.section.TreeSection
This is the base class for all tree sections with button support.
| Constructor Summary | |
TreeSection(javax.swing.tree.TreeModel treeModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons)
Creates a new TreeSection with non-equal column widths. |
|
TreeSection(javax.swing.tree.TreeModel treeModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled)
Creates a new TreeSection with non-equal column widths. |
|
| Method Summary | |
void |
addMenuProvider(IMenuProvider provider)
Adds a new IMenuProvider to the section tree. |
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Adds a new SelectionListener to the section tree. |
javax.swing.tree.TreeModel |
getTreeModel()
Getter method for the tree model used for this tree section. |
ISapTreeViewer |
getTreeViewer()
Getter method for the tree viewer used for this tree section. |
void |
initButtonedSection(IGridLayoutPane glp)
Initializes the section by adding a tree viewer on the left. |
void |
removeMenuProvider(IMenuProvider provider)
Removes a IMenuProvider to the section tree. |
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes a SelectionListener to the section tree. |
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 TreeSection(javax.swing.tree.TreeModel treeModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons)
TreeSection with non-equal column widths.treeModel - The Swing TreeModel to use for the
tree section.widgetFactory - The WidgetFactory to use.columns - The number of columns the client area should have.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 TreeSection(javax.swing.tree.TreeModel treeModel,
IWidgetFactory widgetFactory,
java.lang.String title,
java.lang.String description,
java.lang.String[] buttons,
boolean[] buttonsEnabled)
TreeSection with non-equal column widths.treeModel - The Swing TreeModel to use for the
tree 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 javax.swing.tree.TreeModel getTreeModel()
public ISapTreeViewer getTreeViewer()
public void initButtonedSection(IGridLayoutPane glp)
setTreeModel(TreeModel> 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 tree.listener - The listener to add.public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
SelectionListener to the section tree.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 tree.provider - The provider to add.public void removeMenuProvider(IMenuProvider provider)
IMenuProvider to the section tree.provider - The provider to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||