| |
|
| java.lang.Object org.millstone.base.ui.AbstractComponent org.millstone.base.ui.AbstractField org.millstone.base.ui.Select org.millstone.base.ui.Tree
Tree | public class Tree extends Select implements Container.Hierarchical,Action.Container(Code) | | MenuTree component.
MenuTree can be used to select an item (or multiple items)
from a hierarchical set of items.
author: IT Mill Ltd. version: 3.1.1 since: 3.0 |
Inner Class :public interface ExpandListener | |
Inner Class :public interface CollapseListener | |
Constructor Summary | |
public | Tree() | public | Tree(String caption) Create new empty tree with caption. | public | Tree(String caption, Container dataSource) Create new tree with caption and connect it to a Container. |
Tree | public Tree()(Code) | | Create new empty tree
|
Tree | public Tree(String caption)(Code) | | Create new empty tree with caption.
|
Tree | public Tree(String caption, Container dataSource)(Code) | | Create new tree with caption and connect it to a Container.
|
addActionHandler | public void addActionHandler(Action.Handler actionHandler)(Code) | | Adds an action handler.
See Also: org.millstone.base.event.Action.Container.addActionHandler(Action.Handler) |
addListener | public void addListener(ExpandListener listener)(Code) | | Add expand listener
Parameters: listener - Listener to be added. |
addListener | public void addListener(CollapseListener listener)(Code) | | Add collapse listener
Parameters: listener - Listener to be added. |
areChildrenAllowed | public boolean areChildrenAllowed(Object itemId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.areChildrenAllowed(Object) |
collapseItem | public boolean collapseItem(Object itemId)(Code) | | Collapse an item.
True iff the collapse operation succeeded |
collapseItemsRecursively | public boolean collapseItemsRecursively(Object startItemId)(Code) | | Collapse items recursively
Collapse all the children recursively starting from an item.
Operation succeeds only if all expandable items are collapsed.
True iff the collapse operation succeeded |
expandItem | public boolean expandItem(Object itemId)(Code) | | Expand an item.
True iff the expand operation succeeded |
expandItemsRecursively | public boolean expandItemsRecursively(Object startItemId)(Code) | | Expand items recursively
Expands all the children recursively starting from an item.
Operation succeeds only if all expandable items are expanded.
True iff the expand operation succeeded |
fireCollapseEvent | protected void fireCollapseEvent(Object itemId)(Code) | | Emit collapse event.
|
fireExpandEvent | protected void fireExpandEvent(Object itemId)(Code) | | Emit expand event.
|
getChildren | public Collection getChildren(Object itemId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.getChildren(Object) |
getParent | public Object getParent(Object itemId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.getParent(Object) |
hasChildren | public boolean hasChildren(Object itemId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.hasChildren(Object) |
isExpanded | public boolean isExpanded(Object itemId)(Code) | | Check is an item is expanded
true iff the item is expanded |
isRoot | public boolean isRoot(Object itemId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.isRoot(Object) |
isSelectable | public boolean isSelectable()(Code) | | Getter for property selectable.
The tree is selectable by default.
Value of property selectable. |
removeActionHandler | public void removeActionHandler(Action.Handler actionHandler)(Code) | | Removes an action handler.
See Also: org.millstone.base.event.Action.Container.removeActionHandler(Action.Handler) |
removeListener | public void removeListener(ExpandListener listener)(Code) | | Remove expand listener
Parameters: listener - Listener to be removed. |
removeListener | public void removeListener(CollapseListener listener)(Code) | | Remove collapse listener
Parameters: listener - Listener to be removed. |
rootItemIds | public Collection rootItemIds()(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.rootItemIds |
setChildrenAllowed | public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.setChildrenAllowed(Objectboolean) |
setContainerDataSource | public void setContainerDataSource(Container newDataSource)(Code) | | See Also: org.millstone.base.data.Container.Viewer.setContainerDataSource(Container) |
setParent | public boolean setParent(Object itemId, Object newParentId)(Code) | | See Also: org.millstone.base.data.Container.Hierarchical.setParent(ObjectObject) |
setSelectable | public void setSelectable(boolean selectable)(Code) | | Setter for property selectable.
The tree is selectable by default.
Parameters: selectable - New value of property selectable. |
Methods inherited from org.millstone.base.ui.AbstractComponent | public void addListener(RepaintRequestListener listener)(Code)(Java Doc) public void addListener(Class eventType, Object object, Method method)(Code)(Java Doc) public void addListener(Class eventType, Object object, String methodName)(Code)(Java Doc) public void addListener(Component.Listener listener)(Code)(Java Doc) public void attach()(Code)(Java Doc) public void changeVariables(Object source, Map variables)(Code)(Java Doc) public void childRequestedRepaint(Collection alreadyNotified)(Code)(Java Doc) public void dependsOn(VariableOwner depended)(Code)(Java Doc) public void detach()(Code)(Java Doc) protected void fireComponentErrorEvent()(Code)(Java Doc) protected void fireComponentEvent()(Code)(Java Doc) protected void fireEvent(Component.Event event)(Code)(Java Doc) public Application getApplication()(Code)(Java Doc) public String getCaption()(Code)(Java Doc) public ErrorMessage getComponentError()(Code)(Java Doc) public Object getData()(Code)(Java Doc) public String getDescription()(Code)(Java Doc) public Set getDirectDependencies()(Code)(Java Doc) public ErrorMessage getErrorMessage()(Code)(Java Doc) public Resource getIcon()(Code)(Java Doc) public Locale getLocale()(Code)(Java Doc) public Component getParent()(Code)(Java Doc) public String getStyle()(Code)(Java Doc) abstract public String getTag()(Code)(Java Doc) public Window getWindow()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public boolean isImmediate()(Code)(Java Doc) public boolean isReadOnly()(Code)(Java Doc) public boolean isVisible()(Code)(Java Doc) final public void paint(PaintTarget target) throws PaintException(Code)(Java Doc) public void paintContent(PaintTarget target) throws PaintException(Code)(Java Doc) public void removeDirectDependency(VariableOwner depended)(Code)(Java Doc) public void removeListener(RepaintRequestListener listener)(Code)(Java Doc) public void removeListener(Class eventType, Object target)(Code)(Java Doc) public void removeListener(Class eventType, Object target, Method method)(Code)(Java Doc) public void removeListener(Class eventType, Object target, String methodName)(Code)(Java Doc) public void removeListener(Component.Listener listener)(Code)(Java Doc) public void requestRepaint()(Code)(Java Doc) public void requestRepaintRequests()(Code)(Java Doc) public void setCaption(String caption)(Code)(Java Doc) public void setComponentError(ErrorMessage componentError)(Code)(Java Doc) public void setData(Object data)(Code)(Java Doc) public void setDescription(String description)(Code)(Java Doc) public void setEnabled(boolean enabled)(Code)(Java Doc) public void setIcon(Resource icon)(Code)(Java Doc) public void setImmediate(boolean immediate)(Code)(Java Doc) public void setLocale(Locale locale)(Code)(Java Doc) public void setParent(Component parent)(Code)(Java Doc) public void setReadOnly(boolean readOnly)(Code)(Java Doc) public void setStyle(String style)(Code)(Java Doc) public void setVisible(boolean visible)(Code)(Java Doc)
|
|
|
|