com.tensegrity.gui.swing.dock.core
Class TabModel

java.lang.Object
  extended bycom.tensegrity.gui.swing.dock.core.TabModel

public final class TabModel
extends java.lang.Object

Docking framework.

Version:
$Id: TabModel.java,v 1.4 2005/06/13 14:55:30 sr Exp $
Author:
srutz

Method Summary
 void addEntry(TabEntry entry)
          Adds an entry.
 void addListener(TabModelListener listener)
          Adds a model-listener.
 TabEntry getActiveEntry()
          Returns the active entry.
 TabEntry[] getEntries()
          Gets all entries.
 TabEntry getEntryAt(int i)
          Returns the entry at index.
 int getEntryCount()
          Returns the count of entries.
 int getIndexOfEntry(TabEntry entry)
          Returns the index of the given entry.
 void insertEntry(TabEntry entry, int index)
          Insets an entry.
 void removeEntry(TabEntry entry)
          Removes an entry.
 void removeListener(TabModelListener listener)
          Removes a model-listener.
 void setActiveEntry(TabEntry active)
          Sets the active entry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addListener

public void addListener(TabModelListener listener)
Adds a model-listener.

Parameters:
listener - the listener to add.

removeListener

public void removeListener(TabModelListener listener)
Removes a model-listener.

Parameters:
listener - the listener to remove.

setActiveEntry

public void setActiveEntry(TabEntry active)
Sets the active entry.

Parameters:
active - the entry to activate.

getActiveEntry

public TabEntry getActiveEntry()
Returns the active entry.

Returns:
the active entry.

getIndexOfEntry

public int getIndexOfEntry(TabEntry entry)
Returns the index of the given entry.

Parameters:
entry - the entry to look-up-
Returns:
the index of the given entry

addEntry

public void addEntry(TabEntry entry)
Adds an entry.

Parameters:
entry - the entry to add.

insertEntry

public void insertEntry(TabEntry entry,
                        int index)
Insets an entry.

Parameters:
entry - the entry to insert.
index - insert position.

removeEntry

public void removeEntry(TabEntry entry)
Removes an entry.

Parameters:
entry - the entry to remove.

getEntries

public TabEntry[] getEntries()
Gets all entries.

Returns:
all entries.

getEntryCount

public int getEntryCount()
Returns the count of entries.

Returns:
the count of entries.

getEntryAt

public TabEntry getEntryAt(int i)
Returns the entry at index.

Parameters:
i - the index.
Returns:
the entry at the index position.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.