|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
org.eclipse.swt.widgets.Composite
org.eclipse.swt.widgets.Tree
net.xoetrope.swt.XTree
public class XTree
A tree control, wraps JTree
Copyright (c) Xoetrope Ltd., 1998-2004
License: see license.txt $Revision: 2.4 $
| Field Summary | |
|---|---|
protected XModel |
model
|
protected boolean |
showAttrib
|
protected boolean |
updateModelSelection
|
protected boolean |
usesDatabase
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
|---|
handle |
| Constructor Summary | |
|---|---|
XTree(java.lang.Object parent)
Create a new Tree component |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
void |
databaseRefill()
Refill from the database |
XModel |
getModel()
Get the model |
java.lang.String |
getStyleName()
Get the style name |
java.lang.String |
getText(XModel xmodel,
int i)
Get the appropriate text inside the model |
java.lang.String |
getValueAt(int rowIndex,
int columnIndex)
Get the value of the indexes |
int |
setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
Set one or more attributes of the component. |
void |
setModel(XModel xmodel)
Set the XModel which we will be generating the table from |
void |
setStyle(java.lang.String style)
Set the tree style name |
void |
staticRefill()
Refill from static elements |
void |
update()
Update the tree |
| Methods inherited from class org.eclipse.swt.widgets.Tree |
|---|
addSelectionListener, addTreeListener, clear, clearAll, computeSize, deselectAll, getColumn, getColumnCount, getColumnOrder, getColumns, getGridLineWidth, getHeaderHeight, getHeaderVisible, getItem, getItem, getItemCount, getItemHeight, getItems, getLinesVisible, getParentItem, getSelection, getSelectionCount, getSortColumn, getSortDirection, getTopItem, indexOf, indexOf, removeAll, removeSelectionListener, removeTreeListener, selectAll, setColumnOrder, setFont, setHeaderVisible, setInsertMark, setItemCount, setLinesVisible, setRedraw, setSelection, setSelection, setSortColumn, setSortDirection, setTopItem, showColumn, showItem, showSelection |
| Methods inherited from class org.eclipse.swt.widgets.Composite |
|---|
changed, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList |
| Methods inherited from class org.eclipse.swt.widgets.Scrollable |
|---|
computeTrim, getClientArea, getHorizontalBar, getVerticalBar |
| Methods inherited from class org.eclipse.swt.widgets.Control |
|---|
addControlListener, addFocusListener, addHelpListener, addKeyListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addPaintListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getParent, getShell, getSize, getToolTipText, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeFocusListener, removeHelpListener, removeKeyListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removePaintListener, removeTraverseListener, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setEnabled, setForeground, setLayoutData, setLocation, setLocation, setMenu, setParent, setSize, setSize, setToolTipText, setVisible, toControl, toControl, toDisplay, toDisplay, traverse |
| Methods inherited from class org.eclipse.swt.widgets.Widget |
|---|
addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, setData, setData, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XModel model
protected boolean updateModelSelection
protected boolean usesDatabase
protected boolean showAttrib
| Constructor Detail |
|---|
public XTree(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
checkSubclass in class org.eclipse.swt.widgets.Tree
public int setAttribute(java.lang.String attribName,
java.lang.Object attribValue)
setAttribute in interface XAttributedComponentattribName - the name of the attributeattribValue - the value of the attribute
public void setStyle(java.lang.String style)
setStyle in interface XStyleComponentstyle - the style namepublic java.lang.String getStyleName()
public void setModel(XModel xmodel)
setModel in interface XModelHolderxmodel - the XModel of datapublic XModel getModel()
public void update()
update in interface XModelHolderupdate in class org.eclipse.swt.widgets.Controlpublic void databaseRefill()
public void staticRefill()
public java.lang.String getValueAt(int rowIndex,
int columnIndex)
rowIndex - row indexcolumnIndex - column index
public java.lang.String getText(XModel xmodel,
int i)
xmodel - parent modeli - index of the children
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||