|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.geeboss.view.PatchTree
public class PatchTree
This is the Tree that holds the bank and patch items.
Field Summary | |
---|---|
static java.lang.String |
BANK_INDENT
The String to use to seperate banks |
Constructor Summary | |
---|---|
PatchTree(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.widgets.Shell shell,
org.eclipse.swt.custom.SashForm contentPane,
MainView geebossGui,
EventManager eventManager)
Instantiate a new PatchTree |
Method Summary | |
---|---|
void |
addBank(java.lang.String name,
Effect parentCat)
Add a new bank to the Tree |
boolean |
addBank(java.lang.String name,
Effect parent,
java.lang.String subscriptionUrl)
Add a new bank to the Tree |
void |
buildPatchTree()
Build the complete ptach tree. |
org.eclipse.swt.widgets.Tree |
getPatchTree()
Let other objects access this controll (for example to focus on it) |
PatchTreeDnd |
getPatchTreeDnd()
Get the DND class that allows drag and drop on this patch tree |
Effect |
getSelectedBank()
Get the selected bank |
Effect |
getSelectedBank(java.lang.String path)
Get the selected bank from the given path |
java.lang.String |
getTreePath(boolean skipPatch)
Return the TreePath of the selected TreeItem |
java.lang.String |
getTreePath(org.eclipse.swt.widgets.TreeItem selectedTree,
boolean skipPatch)
Return the TreePath of the selected TreeItem |
void |
handleTreeItemSelect(boolean isSingleClick)
|
void |
updateFonts()
|
void |
updateHeaderColor()
Update the color of the header |
void |
updateI18N()
Update all controlls text with i18n |
void |
updateTreeItemIcon(org.eclipse.swt.widgets.TreeItem treeItem,
boolean isError)
Update the icon on a TreeItem in dependance of the "isError" flag. |
void |
updateTreeReadStatus(org.eclipse.swt.widgets.TreeItem treeItem)
Recursivly update all parent bank of the given TreeItem to set / unset the unread status, which is indicated by a slightly different bank icon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String BANK_INDENT
Constructor Detail |
---|
public PatchTree(org.eclipse.swt.widgets.Display display, org.eclipse.swt.widgets.Shell shell, org.eclipse.swt.custom.SashForm contentPane, MainView geebossGui, EventManager eventManager)
display
- The displayshell
- The shellcontentPane
- The Sashform where to add the URL-TreegeebossGui
- Access some methods of the main controllereventManager
- The event managerMethod Detail |
---|
public void addBank(java.lang.String name, Effect parentCat)
name
- Name of the bankparentCat
- The parent bankpublic boolean addBank(java.lang.String name, Effect parent, java.lang.String subscriptionUrl)
name
- Name of the bankparent
- Parent banksubscriptionUrl
- URL to the subscription
public void buildPatchTree()
public org.eclipse.swt.widgets.Tree getPatchTree()
public PatchTreeDnd getPatchTreeDnd()
public Effect getSelectedBank()
public Effect getSelectedBank(java.lang.String path)
path
- Path to the bank (e.g. "Test > Sub1 > Sub2")
public java.lang.String getTreePath(boolean skipPatch)
skipPatch
- true if a patch does not count as selection in the path
public java.lang.String getTreePath(org.eclipse.swt.widgets.TreeItem selectedTree, boolean skipPatch)
selectedTree
- The selected TreeItemskipPatch
- true if a patch does not count as selection in the path
public void handleTreeItemSelect(boolean isSingleClick)
isSingleClick
- if true, the selection was made with a single clickpublic void updateFonts()
public void updateHeaderColor()
public void updateI18N()
updateI18N
in interface Translatable
public void updateTreeItemIcon(org.eclipse.swt.widgets.TreeItem treeItem, boolean isError)
treeItem
- The TreeItem to updateisError
- true if the treeitem should display an warningpublic void updateTreeReadStatus(org.eclipse.swt.widgets.TreeItem treeItem)
treeItem
- The starting point TreeItem
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |