bibliothek.gui.dock.station.stack
Interface CombinedHandler<T>

Type Parameters:
T - the kind of item whose visibility is changed

public interface CombinedHandler<T>

A handler to change and read the visibility state and the z order of some item. This handler is attached to some other component, the visibility state and the z order depend not only on the item put also on internal states of the other items.

Author:
Benjamin Sigg

Method Summary
 int getZOrder(T item)
          Gets the z order of item.
 boolean isVisible(T item)
          Tells whether item is visible or not.
 void setVisible(T item, boolean visible)
          Sets the visibility of item.
 void setZOrder(T item, int order)
          Sets the z order of item, items with lower z order are painted first.
 

Method Detail

setVisible

void setVisible(T item,
                boolean visible)
Sets the visibility of item.

Parameters:
item - some item
visible - its new visibility state
Throws:
IllegalArgumentException - if item does not belong to the component this handler is attached to

isVisible

boolean isVisible(T item)
Tells whether item is visible or not.

Parameters:
item - some item
Returns:
true if visible, false otherwise
Throws:
IllegalArgumentException - if item does not belong to the component this handler is attached to

setZOrder

void setZOrder(T item,
               int order)
Sets the z order of item, items with lower z order are painted first.

Parameters:
item - some item
order - its z order

getZOrder

int getZOrder(T item)
Gets the z order of item.

Parameters:
item - the item
Returns:
the z order
Throws:
IllegalArgumentException - if item does not belong to the component this handler is attached to