|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.swt.widgets.Tree
org.formaria.swt.Tree
public class Tree
A tree control, wraps JTree
Copyright (c) Formaria Ltd.,
License: see license.txt $Revision: 2.4 $
| Field Summary | |
|---|---|
protected DataModel |
model
|
protected boolean |
updateModelSelection
|
protected boolean |
usesDatabase
|
| Constructor Summary | |
|---|---|
Tree(java.lang.Object parent)
Create a new Tree component |
|
| Method Summary | |
|---|---|
protected void |
checkSubclass()
Suppress the subclassing exception |
void |
databaseRefill()
Refill from the database |
DataModel |
getModel()
Get the model |
java.lang.String |
getStyleName()
Get the style name |
java.lang.String |
getText(DataModel xmodel,
int i)
Get the appropriate text inside the model |
java.lang.String |
getToolTip()
Get the tooltip text |
java.lang.String |
getValueAt(int rowIndex,
int columnIndex)
Get the value of the indexes |
boolean |
isShowAttrib()
|
void |
setDataModel(DataModel xmodel)
Set the DataModel which we will be generating the table from |
void |
setShowAttrib(boolean showAttrib)
|
void |
setStyle(java.lang.String style)
Set the tree style name |
void |
setToolTip(java.lang.String text)
Set the tooltip text |
void |
staticRefill()
Refill from static elements |
void |
update()
Update the tree |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected DataModel model
protected boolean updateModelSelection
protected boolean usesDatabase
| Constructor Detail |
|---|
public Tree(java.lang.Object parent)
parent - parent object| Method Detail |
|---|
protected void checkSubclass()
public void setStyle(java.lang.String style)
setStyle in interface StyleComponentstyle - the style namepublic java.lang.String getStyleName()
public void setDataModel(DataModel xmodel)
setDataModel in interface ModelHolderxmodel - the DataModel of datapublic DataModel getModel()
public void update()
update in interface ModelHolderpublic void databaseRefill()
public void staticRefill()
public java.lang.String getValueAt(int rowIndex,
int columnIndex)
rowIndex - row indexcolumnIndex - column index
public java.lang.String getText(DataModel xmodel,
int i)
xmodel - parent modeli - index of the children
public boolean isShowAttrib()
public void setShowAttrib(boolean showAttrib)
public void setToolTip(java.lang.String text)
text - the new textpublic java.lang.String getToolTip()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||