net.mlw.gfw.ext.card
Interface HandModel

All Superinterfaces:
EventHandler, EventHandlerContainer
All Known Implementing Classes:
DefaultHandModel

public interface HandModel
extends EventHandler, EventHandlerContainer

Version:
$Revision: 1.5 $ $Date: 2004/06/29 20:32:54 $
Author:
Matthew L. Wilson

Method Summary
 void addCard(net.mlw.gfw.ext.card.Card card)
          Add a Card to the hand.
 void fireChange()
           
 net.mlw.gfw.ext.card.Card getCard(int index)
          Peek at a card in the hand.
 net.mlw.gfw.ext.card.Card[] getCards()
          Get all the cards.
 net.mlw.gfw.ext.card.CardSelectionBehavior getCardSelectionBehavior()
          Gets the CardSelectionBehavior currently set.
 int getMaxNumberOfCards()
          The max amount of cards this hand can hold.
 boolean isSelected(net.mlw.gfw.ext.card.Card card)
           
 void removeCard(net.mlw.gfw.ext.card.Card card)
          Pop a card out of the hand.
 void setCardSelectionBehavior(net.mlw.gfw.ext.card.CardSelectionBehavior cardSelectionBehavior)
           
 
Methods inherited from interface net.mlw.gfw.event.EventHandler
onEvent
 
Methods inherited from interface net.mlw.gfw.event.EventHandlerContainer
addEventHandler, removeEventHandler
 

Method Detail

addCard

public void addCard(net.mlw.gfw.ext.card.Card card)
Add a Card to the hand.

Parameters:
card - The card to add.

getCard

public net.mlw.gfw.ext.card.Card getCard(int index)
Peek at a card in the hand.

Parameters:
index - The location of the card.
Returns:
The Card.

removeCard

public void removeCard(net.mlw.gfw.ext.card.Card card)
Pop a card out of the hand.

Parameters:
card - The card to remove.

getCards

public net.mlw.gfw.ext.card.Card[] getCards()
Get all the cards.

Returns:
The Card(s).

getMaxNumberOfCards

public int getMaxNumberOfCards()
The max amount of cards this hand can hold.

Returns:
The max amount of cards this hand can hold.

isSelected

public boolean isSelected(net.mlw.gfw.ext.card.Card card)

getCardSelectionBehavior

public net.mlw.gfw.ext.card.CardSelectionBehavior getCardSelectionBehavior()
Gets the CardSelectionBehavior currently set.

Returns:
Returns the cardSelectionBehavior.

setCardSelectionBehavior

public void setCardSelectionBehavior(net.mlw.gfw.ext.card.CardSelectionBehavior cardSelectionBehavior)

fireChange

public void fireChange()


Copyright © 2003-2004 mlavilson. All Rights Reserved.