cz.cuni.pogamut.shed.widget
Interface IShedEnvelope<T>

Package class diagram package IShedEnvelope
Type Parameters:
T - Type of widgets this envelope contains.
All Known Implementing Classes:
AbstractShedEnvelope, ShedActionsEnvelope, ShedDrivesEnvelope, ShedChoicesEnvelope, ShedTriggerEnvelope

public interface IShedEnvelope<T>

Interface for envelopes containing only one type of widgets inside.

Author:
HonzaH

Method Summary
 void add(T widget, int position)
          Add widget to the envelope at the specified position.
 void move(int index, T widget)
          Move the widget relative to the other widgets.
 void remove(T widget)
          Remove widget from the envelope.
 

Method Detail

add

void add(T widget,
         int position)
Add widget to the envelope at the specified position.

Parameters:
widget - widget to add
position - where to put widget

move

void move(int index,
          T widget)
Move the widget relative to the other widgets.

Parameters:
absoluteIndex - New index of the widget in the envelope. Once move is done, the index of the @widget is @absoluteIndex and the rest of widgets change their position in a way that will keep the order they were in before move, while having the widget at its new position.
widget - widget to move

remove

void remove(T widget)
Remove widget from the envelope.

Parameters:
widget - widget to remove from the envelope.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.