org.zkoss.zul.ext
Interface Openable<E>

All Known Implementing Classes:
AbstractTreeModel, DefaultTreeModel

public interface Openable<E>

Indicate a openable collection or component. Generally used with TreeModel and Tree.

Author:
jimmyshiau
See Also:
TreeModel, Tree

Method Summary
 void clearOpen()
          Clear all open status.
 boolean isOpen(E obj)
          Returns whether the specified object be opened.
 void setOpen(E obj, boolean open)
          Sets the specified object into open.
 

Method Detail

setOpen

void setOpen(E obj,
             boolean open)
Sets the specified object into open.

Notice that this method is designed to be called by a component (such as Treeitem). If it is called by an application, the component's open status won't be changed.

Parameters:
obj - the object to be as open.
open - whether be opened

isOpen

boolean isOpen(E obj)
Returns whether the specified object be opened.

Parameters:
obj -

clearOpen

void clearOpen()
Clear all open status.

Notice that this method is designed to be called by a component (such as Tree). If it is called by an application, the component's open status won't be changed.



Copyright © 2011. All Rights Reserved.